27 lines
650 B
JavaScript
27 lines
650 B
JavaScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
host: true,
|
|
allowedHosts: ['study.necloud.us', 'localhost', 'study.versebyversewithnate.us'],
|
|
// Proxy /api calls to the Express backend during development
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:3001',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
test: {
|
|
environment: 'jsdom',
|
|
globals: true,
|
|
setupFiles: './src/test-setup.js',
|
|
coverage: {
|
|
provider: 'v8',
|
|
reporter: ['text', 'html'],
|
|
include: ['src/**/*.{js,jsx}'],
|
|
},
|
|
},
|
|
}); |