diff --git a/vite.config.ts b/vite.config.ts index 5c45e1d9..acf37696 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -12,5 +12,15 @@ export default defineConfig({ alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) } + }, + server: { + port: 3001, + proxy: process.env.NEKO_HOST ? { + '/api': { + target: 'http://' + process.env.NEKO_HOST + ':' + process.env.NEKO_PORT + '/', + changeOrigin: true, + ws: true + } + } : undefined } })