Skip to content

Commit e39605f

Browse files
committed
config for github
1 parent bac1a6f commit e39605f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

vite.config.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { defineConfig } from 'vite'
2-
import { svelte } from '@sveltejs/vite-plugin-svelte'
1+
import { defineConfig } from "vite";
2+
import { svelte } from "@sveltejs/vite-plugin-svelte";
33

4-
// https://vite.dev/config/
4+
// https://vitejs.dev/config/
55
export default defineConfig({
66
plugins: [svelte()],
7-
base: "./",
8-
})
7+
base: process.env.NODE_ENV === "production" ? "/world-of-wikipedia/" : "/",
8+
});

0 commit comments

Comments
 (0)