20 lines
425 B
TypeScript
20 lines
425 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import viteTsconfigPaths from 'vite-tsconfig-paths'
|
|
|
|
export default defineConfig({
|
|
base: '',
|
|
plugins: [react(), viteTsconfigPaths()],
|
|
build: {
|
|
sourcemap: true,
|
|
},
|
|
server: {
|
|
open: true,
|
|
host: '0.0.0.0',
|
|
port: 3000,
|
|
proxy: {
|
|
'/api': 'http://localhost:3001',
|
|
}
|
|
},
|
|
})
|