#295 #295 #295 #295 #295 #295 #295 Co-authored-by: miteruzo <miteruzo@naver.com> Reviewed-on: #296
19 行
593 B
TypeScript
19 行
593 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import path from 'path'
|
|
|
|
|
|
// https://vite.dev/config/
|
|
export default defineConfig ({
|
|
plugins: [react()],
|
|
resolve: { alias: { '@': path.resolve (__dirname, './src') } },
|
|
server: { host: true,
|
|
port: 5173,
|
|
strictPort: true,
|
|
allowedHosts: ['hub.nizika.monster', 'localhost', 'nico-dev.test'],
|
|
proxy: { '/api': { target: 'http://localhost:3002',
|
|
changeOrigin: true,
|
|
secure: false } },
|
|
watch: { usePolling: true,
|
|
interval: 100 } } })
|