We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bac1a6f commit e39605fCopy full SHA for e39605f
vite.config.js
@@ -1,8 +1,8 @@
1
-import { defineConfig } from 'vite'
2
-import { svelte } from '@sveltejs/vite-plugin-svelte'
+import { defineConfig } from "vite";
+import { svelte } from "@sveltejs/vite-plugin-svelte";
3
4
-// https://vite.dev/config/
+// https://vitejs.dev/config/
5
export default defineConfig({
6
plugins: [svelte()],
7
- base: "./",
8
-})
+ base: process.env.NODE_ENV === "production" ? "/world-of-wikipedia/" : "/",
+});
0 commit comments