mirror of
https://github.com/luxfi/bank.git
synced 2026-11-02 12:37:36 +00:00
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
21 lines
467 B
TypeScript
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,
|
|
},
|
|
},
|
|
},
|
|
})
|