davidepanza commited on
Commit
a150921
·
verified ·
1 Parent(s): 511072a

Update vite.config.js

Browse files
Files changed (1) hide show
  1. vite.config.js +13 -2
vite.config.js CHANGED
@@ -1,7 +1,18 @@
1
  import { defineConfig } from 'vite'
2
  import react from '@vitejs/plugin-react'
3
 
4
- // https://vite.dev/config/
5
  export default defineConfig({
6
  plugins: [react()],
7
- })
 
 
 
 
 
 
 
 
 
 
 
 
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
+ server: {
8
+ proxy: {
9
+ '/api': {
10
+ target: 'http://localhost:8000',
11
+ changeOrigin: true,
12
+ }
13
+ }
14
+ },
15
+ build: {
16
+ outDir: 'dist'
17
+ }
18
+ })