diff options
Diffstat (limited to 'vite.config.ts')
-rw-r--r-- | vite.config.ts | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/vite.config.ts b/vite.config.ts new file mode 100644 index 0000000..5e62e9a --- /dev/null +++ b/vite.config.ts @@ -0,0 +1,17 @@ +import { defineConfig } from 'vite'; +import react from '@vitejs/plugin-react'; + +// https://vitejs.dev/config/ +export default defineConfig({ + plugins: [react()], + server: { + proxy: { + // Proxy /api requests to the backend server (running on port 3001 by default) + '/api': { + target: 'http://localhost:3001', // Default backend port, adjust if needed + changeOrigin: true, // Recommended for virtual hosted sites + secure: false, // Don't verify SSL certs if backend uses self-signed cert in dev + }, + }, + }, +});
\ No newline at end of file |