diamond-in commited on
Commit
8a5e328
·
verified ·
1 Parent(s): 27fc162

Create vite.config.ts

Browse files
Files changed (1) hide show
  1. frontend/vite.config.ts +16 -0
frontend/vite.config.ts ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import { defineConfig } from 'vite'
2
+ import react from '@vitejs/plugin-react'
3
+
4
+ export default defineConfig({
5
+ plugins: [react()],
6
+ build: {
7
+ outDir: 'dist',
8
+ emptyOutDir: true,
9
+ },
10
+ server: {
11
+ port: 3000,
12
+ proxy: {
13
+ '/api': 'http://localhost:7860'
14
+ }
15
+ }
16
+ })