Files
alert-message-center/apps/web/vite.config.ts
2026-01-13 21:22:45 +08:00

26 lines
552 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
server: {
proxy: {
'/api': {
target: process.env.VITE_API_URL || 'http://localhost:3000',
changeOrigin: true,
},
'/webhook': {
target: process.env.VITE_API_URL || 'http://localhost:3000',
changeOrigin: true,
}
}
}
})