Disable source map generation for cleaner production builds
Deploy to git-pages / deploy (push) Successful in 17s

Source maps cause harmless but noisy 404 errors in browser dev tools when deployed to git-pages, since the hashed filenames change between local and CI builds. Disabling them eliminates these warnings without affecting app functionality.
This commit is contained in:
2026-08-10 12:23:27 -04:00
parent dd69bb6f8f
commit 26f72da6db
+1 -1
View File
@@ -6,6 +6,6 @@ import react from '@vitejs/plugin-react-swc'
export default defineConfig({
plugins: [react()],
server: { port: 5173 },
build: { outDir: 'dist', sourcemap: true },
build: { outDir: 'dist' },
base: '/crdc-demo/', // Required for subdirectory deployment on git-pages
})