fix: vynechani .env souboru pri kopirovani do dist
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user