cashier-frontend/vite.config.ts
2025-12-18 22:14:11 +01:00

26 lines
545 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,
},
},
},
})