fix: google analytics only on production

This commit is contained in:
2026-10-04 10:51:53 +05:00
parent 1db83d12ff
commit e1fc11cb54
7 changed files with 26 additions and 20 deletions
+2
View File
@@ -11,6 +11,8 @@ const base: "" | `/${string}` =
: (`/${rawBase.replace(/^\/+/, "").replace(/\/+$/, "")}` as `/${string}`);
export default defineConfig({
// PUBLIC_* попадают в import.meta.env — флаги окружения вроде GA.
envPrefix: ["VITE_", "PUBLIC_"],
ssr: {
noExternal: ["@lucide/svelte"],
},