+3
-1
@@ -2,12 +2,14 @@ import { defineConfig } from 'vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
|
||||
export default defineConfig({
|
||||
base: '/manual/',
|
||||
plugins: [react()],
|
||||
server: {
|
||||
proxy: {
|
||||
'/api': {
|
||||
'/manual/api': {
|
||||
target: 'http://localhost:4500',
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/manual/, ''),
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user