29 lines
559 B
TypeScript
29 lines
559 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import { TanStackRouterVite } from '@tanstack/router-vite-plugin'
|
|
import path from 'path'
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
TanStackRouterVite()
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
'@': path.resolve(__dirname, './src')
|
|
}
|
|
},
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:3000',
|
|
changeOrigin: true
|
|
},
|
|
'/auth': {
|
|
target: 'http://localhost:3000',
|
|
changeOrigin: true
|
|
}
|
|
}
|
|
}
|
|
})
|