From 1d27d1915793022a62c10810231f9b6ed34760cc Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 12 Mar 2026 20:52:43 +0100 Subject: [PATCH] fix: vynechani .env souboru pri kopirovani do dist Co-Authored-By: Claude Opus 4.6 --- vite.config.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vite.config.js b/vite.config.js index ed0b453..d2d0553 100644 --- a/vite.config.js +++ b/vite.config.js @@ -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)