20 lines
402 B
JavaScript
20 lines
402 B
JavaScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import contentPlugin from './plugins/vite-plugin-content.js'
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), contentPlugin()],
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:3003',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
test: {
|
|
environment: 'jsdom',
|
|
globals: true,
|
|
},
|
|
})
|