File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,16 +30,16 @@ export default defineConfig({
3030 } ,
3131 } ,
3232 build : {
33- // reproducibility: disable non-deterministic options
33+
3434 cssCodeSplit : false ,
3535 sourcemap : false ,
3636 rollupOptions : {
3737 output : {
38- // using content hash for deterministic chunk names
38+
3939 chunkFileNames : "assets/[name]-[hash].js" ,
4040 entryFileNames : "assets/[name]-[hash].js" ,
4141 assetFileNames : "assets/[name]-[hash][extname]" ,
42- // ensure consistent chunk ordering by grouping node_modules
42+
4343 manualChunks : ( id ) => {
4444 if ( id . includes ( "node_modules" ) ) {
4545 return "vendor" ;
@@ -55,7 +55,7 @@ export default defineConfig({
5555 changeOrigin : true ,
5656 secure : false ,
5757 configure : ( proxy ) => {
58- // Only log in development mode
58+
5959 if ( process . env . NODE_ENV === "development" ) {
6060 proxy . on ( "error" , ( err ) => {
6161 console . error ( "Proxy error:" , err )
@@ -64,7 +64,7 @@ export default defineConfig({
6464 const target =
6565 process . env . VITE_POLARIS_API_URL || "http://localhost:8181"
6666 console . log (
67- "📤 Proxying:" ,
67+ "Proxying:" ,
6868 req . method ,
6969 req . url ,
7070 "→" ,
@@ -96,7 +96,7 @@ export default defineConfig({
9696 const target =
9797 process . env . VITE_POLARIS_API_URL || "http://localhost:8181"
9898 console . log (
99- "📤 Proxying:" ,
99+ "Proxying:" ,
100100 req . method ,
101101 req . url ,
102102 "→" ,
You can’t perform that action at this time.
0 commit comments