We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bcd6408 commit 6374a9aCopy full SHA for 6374a9a
1 file changed
vite.config.ts
@@ -6,10 +6,11 @@ import { createServer } from "./server";
6
// https://vitejs.dev/config/
7
export default defineConfig(({ mode }) => {
8
// For GitHub Pages deployment, set base to repo name (if deploying to /reponame/)
9
- // Leave as "/" for user/organization pages or local development
+ // For local development, use "/"
10
+ // Change "/ProxyTest/" to "/" if deploying to a user/organization GitHub Pages
11
const isProduction = mode === "production";
- //const base = isProduction ? "/" : "/";
12
-const base = "/ProxyTest/";
+ const base = isProduction ? "/ProxyTest/" : "/";
13
+
14
return {
15
base,
16
server: {
0 commit comments