davidepanza's picture
Update vite.config.js
a150921 verified
raw
history blame contribute delete
325 Bytes
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
server: {
proxy: {
'/api': {
target: 'http://localhost:8000',
changeOrigin: true,
}
}
},
build: {
outDir: 'dist'
}
})