Files
bank/app/dash/vite.config.ts
zeekay 998ae0c3b2 fix: all routes under /v1/bank/* — canonical path pattern
Custom routes: /v1/ -> /v1/bank/
Webhooks: /webhooks/* -> /v1/bank/webhooks/*
Health: /health -> /v1/bank/health
Legacy: /api/v1/account/summary -> /v1/bank/account/summary
Dashboard client: /api/collections/* -> /v1/base/collections/*
Vite proxy: removed stale /api proxy rule
2026-04-09 17:46:40 -07:00

21 lines
467 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
import { resolve } from 'path'
export default defineConfig({
plugins: [react(), tailwindcss()],
resolve: {
alias: { '@': resolve(__dirname, 'src') },
},
server: {
port: 3000,
proxy: {
'/v1': {
target: process.env.VITE_BANK_API_URL || 'http://localhost:8070',
changeOrigin: true,
},
},
},
})