cashier-frontend/vite.config.ts
2025-12-29 15:58:31 +01:00

26 lines
551 B
TypeScript

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react-swc';
import path from 'path';
import { fileURLToPath } from 'url';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
server: {
proxy: {
'/api': {
target: 'https://cashier-backend.brgoperations.com',
changeOrigin: true,
secure: true,
},
},
},
});