NTP_V2/web/vite.config.ts

17 lines
411 B
TypeScript

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import { fileURLToPath, URL } from 'node:url';
export default defineConfig({
plugins: [react()],
resolve: {
alias: { '@': fileURLToPath(new URL('./src', import.meta.url)) },
},
server: {
port: 5173,
proxy: {
'/api': { target: 'https://localhost:7180', changeOrigin: true, secure: false },
},
},
});