22 lines
439 B
TypeScript
Executable File
22 lines
439 B
TypeScript
Executable File
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
allowedHosts: ["costco.nicosaya.com", "www.costco.nicosaya.com"],
|
|
watch: {
|
|
usePolling: true,
|
|
},
|
|
host: true,
|
|
strictPort: true,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:5000',
|
|
changeOrigin: true,
|
|
secure: false,
|
|
},
|
|
},
|
|
},
|
|
})
|