File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 11import { defineConfig } from "vite" ;
2- // import path from "path"; // Removed because 'path' is not available in browser environments
3- // import { fileURLToPath } from 'url';
4- // import { dirname, resolve } from 'path';
5- // const __filename = fileURLToPath(import.meta.url);
6- // const __dirname = dirname(__filename);
7- export default defineConfig ( ( { mode } : { mode : string } ) => ( {
8- base : "/" ,
2+ import path from "path" ; // Removed because 'path' is not available in browser environments
3+ import { fileURLToPath } from 'url' ;
4+ import { dirname , resolve } from 'path' ;
5+ const __filename = fileURLToPath ( import . meta. url ) ;
6+ const __dirname = dirname ( __filename ) ;
7+ export default defineConfig ( {
8+ base : '/java-fundamentals-for-spring/' , // <-- use your repo name here
99 server : {
1010 host : "::" ,
1111 port : 8080 ,
@@ -15,4 +15,4 @@ export default defineConfig(({ mode }: { mode: string }) => ({
1515 "@" : "/src" ,
1616 } ,
1717 } ,
18- } ) ) ;
18+ } ) ;
You can’t perform that action at this time.
0 commit comments