bigbossmonster commited on
Commit
7faeecf
·
verified ·
1 Parent(s): 9810c30

Update vite.config.js

Browse files
Files changed (1) hide show
  1. vite.config.js +19 -9
vite.config.js CHANGED
@@ -1,10 +1,20 @@
1
- import { defineConfig } from 'vite'
2
- import react from '@vitejs/plugin-react'
3
-
4
- // https://vitejs.dev/config/
5
- export default defineConfig({
6
- plugins: [react()],
7
- build: {
8
- outDir: 'dist',
9
- }
 
 
 
 
 
 
 
 
 
 
10
  })
 
1
+ import { defineConfig } from 'vite'
2
+ import react from '@vitejs/plugin-react'
3
+
4
+ // https://vitejs.dev/config/
5
+ export default defineConfig({
6
+ plugins: [react()],
7
+ build: {
8
+ outDir: 'dist',
9
+ },
10
+ server: {
11
+ proxy: {
12
+ // Proxy API requests to the Python Backend during development
13
+ '/api': {
14
+ target: 'http://127.0.0.1:7860',
15
+ changeOrigin: true,
16
+ secure: false,
17
+ }
18
+ }
19
+ }
20
  })