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.
12 lines
396 B
JavaScript
12 lines
396 B
JavaScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react-swc'
|
|
|
|
// The app is served at /crdc-demo/ on pages.civilytics.org.
|
|
// Set base to the subdirectory so asset paths resolve correctly.
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: { port: 5173 },
|
|
build: { outDir: 'dist' },
|
|
base: '/crdc-demo/', // Required for subdirectory deployment on git-pages
|
|
})
|