21 lines
405 B
TypeScript
21 lines
405 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
envPrefix: ['VITE_', 'ROMM_'],
|
|
server: {
|
|
watch: {
|
|
usePolling: true,
|
|
},
|
|
proxy: {
|
|
'/assets/romm': {
|
|
target: 'https://retro.chieflix.com',
|
|
changeOrigin: true,
|
|
secure: false,
|
|
}
|
|
}
|
|
},
|
|
})
|