diff --git a/.env.production b/.env.production new file mode 100644 index 0000000..927bdd8 --- /dev/null +++ b/.env.production @@ -0,0 +1 @@ +VITE_API_BASE=https://gahusb.synology.me diff --git a/vite.config.js b/vite.config.js index 8b0f57b..3ecd99d 100644 --- a/vite.config.js +++ b/vite.config.js @@ -4,4 +4,16 @@ import react from '@vitejs/plugin-react' // https://vite.dev/config/ export default defineConfig({ plugins: [react()], + server: { + host: '127.0.0.1', + port: 3007, + strictPort: false, + proxy: { + '/api': { + target: 'https://gahusb.synology.me', + changeOrigin: true, + secure: true, + }, + }, + }, })