File tree Expand file tree Collapse file tree 1 file changed +16
-7
lines changed
Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -5,18 +5,27 @@ import { componentTagger } from "lovable-tagger";
55
66// https://vitejs.dev/config/
77export 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+ } ) ) ;
You can’t perform that action at this time.
0 commit comments