Skip to content

Commit c386235

Browse files
Update vite.config.ts
1 parent 8d6869a commit c386235

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

vite.config.ts

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,27 @@ import { componentTagger } from "lovable-tagger";
55

66
// https://vitejs.dev/config/
77
export default defineConfig(({ mode }) => ({
8-
server: {
9-
host: "::",
10-
port: 8080,
11-
},
8+
// Set the base path for GitHub Pages.
9+
// The value should be the name of your repository.
10+
base: "/jaystack.dev/",
11+
1212
plugins: [
1313
react(),
14-
mode === 'development' &&
15-
componentTagger(),
14+
// This conditional plugin now works correctly because `mode` is
15+
// properly destructured from the function arguments.
16+
// It will only be active during development (`vite dev`).
17+
mode === "development" && componentTagger(),
1618
].filter(Boolean),
19+
1720
resolve: {
1821
alias: {
1922
"@": path.resolve(__dirname, "./src"),
2023
},
2124
},
22-
}));
25+
26+
// The server config is for local development and doesn't affect the build.
27+
server: {
28+
host: "::",
29+
port: 8080,
30+
},
31+
}));

0 commit comments

Comments
 (0)