Files
chat/frontend/vite.config.ts

22 lines
386 B
TypeScript

import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import path from 'node:path';
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
'@': path.resolve(__dirname, 'src'),
},
},
server: {
port: 5175,
proxy: {
'/api': {
target: 'http://localhost:3000',
changeOrigin: true
}
},
},
});