16 lines
405 B
JavaScript
16 lines
405 B
JavaScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
// Don't watch or serve /api — those are Vercel serverless functions, not frontend code
|
|
watch: { ignored: ['**/api/**'] },
|
|
fs: { deny: ['api'] },
|
|
},
|
|
optimizeDeps: {
|
|
// Don't pre-bundle serverless function files
|
|
exclude: ['api'],
|
|
},
|
|
})
|