Files
issuer/vite.config.ts
zeekayandHanzo Dev 8b7280b6fa chore: initial commit — tree had no git at all
@luxfi/issuer. No history, no remote, not on GitHub, unpublished.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-28 11:56:00 -07:00

28 lines
825 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
import { resolve } from 'path'
// Standalone issuer console. Mirrors the proven bank-admin build: Tailwind v4
// via the vite plugin, and a hard dedupe of react/react-dom because @hanzo/iam
// ships its own React (otherwise "Invalid hook call — more than one copy").
export default defineConfig({
plugins: [react(), tailwindcss()],
resolve: {
alias: { '@': resolve(__dirname, 'src') },
dedupe: ['react', 'react-dom'],
},
optimizeDeps: {
include: ['@hanzo/iam/browser', '@hanzo/iam/react'],
},
server: {
port: 3000,
proxy: {
'/v1': {
target: process.env.VITE_BANK_API_URL || 'https://api.lux.financial',
changeOrigin: true,
},
},
},
})