diff options
author | 2025-02-09 01:37:14 -0500 | |
---|---|---|
committer | 2025-02-09 01:37:14 -0500 | |
commit | 40e178874e129545c7de06f9f63a8ba15b93d1a2 (patch) | |
tree | d5c3d3a2f7c04e2f05e5bf994a95dd62bde92db6 /vite.config.js | |
parent | 316c025ae86b4fdee2777e95ce950b11a5c1f73b (diff) |
set up flask proxy
Diffstat (limited to 'vite.config.js')
-rw-r--r-- | vite.config.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/vite.config.js b/vite.config.js index 8b0f57b..df070a7 100644 --- a/vite.config.js +++ b/vite.config.js @@ -3,5 +3,10 @@ import react from '@vitejs/plugin-react' // https://vite.dev/config/ export default defineConfig({ - plugins: [react()], + plugins: [react()], + server: { + proxy: { + '/api': 'http://localhost:5000', + }, + }, }) |