fix: vynechani .env souboru pri kopirovani do dist

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-12 20:52:43 +01:00
parent bfa297fc61
commit 1d27d19157

View File

@@ -4,11 +4,16 @@ import { defineConfig } from 'vite'
import { execSync } from 'child_process'
import { resolve, join } from 'path'
const COPY_SKIP = new Set(['.env', '.env.local', '.env.production'])
function copyFolderSync(src, dest) {
mkdirSync(dest, { recursive: true })
const entries = readdirSync(src)
for (const entry of entries) {
if (COPY_SKIP.has(entry)) {
continue
}
const srcPath = join(src, entry)
const destPath = join(dest, entry)