From 40e178874e129545c7de06f9f63a8ba15b93d1a2 Mon Sep 17 00:00:00 2001 From: Silas Bartha Date: Sun, 9 Feb 2025 01:37:14 -0500 Subject: set up flask proxy --- vite.config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'vite.config.js') 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', + }, + }, }) -- cgit v1.2.3