diff options
| author | Paweł Bernaciak <pawelbernaciak@zohomail.eu> | 2023-10-27 16:09:31 +0200 |
|---|---|---|
| committer | Paweł Bernaciak <pawelbernaciak@zohomail.eu> | 2023-10-27 16:09:31 +0200 |
| commit | 33d1d72d5e7f2e8e7f846bbf8651d7f128765c64 (patch) | |
| tree | 1b45b9cf6380a7910fa2d37c723af6a1432d5de3 /frontend/vite.config.ts | |
| parent | 842aaba2300b295f6e046bfaf9f34cb556e203b8 (diff) | |
New frontend project
Diffstat (limited to 'frontend/vite.config.ts')
| -rw-r--r-- | frontend/vite.config.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts new file mode 100644 index 0000000..dd8afab --- /dev/null +++ b/frontend/vite.config.ts @@ -0,0 +1,16 @@ +import { defineConfig } from 'vite' +import react from '@vitejs/plugin-react' + +// https://vitejs.dev/config/ +export default defineConfig({ + server: { + proxy: { + '/api': { + target: 'http://localhost:5102', + changeOrigin: true, + rewrite: (path) => path.replace(/^\/api/, ''), + } + } + }, + plugins: [react()], +}) |
