mandant-crm/frontend/nuxt.config.ts
Tim Stollberg e5e0be57da feat(frontend): scaffold Nuxt 3 CSR SPA with full auth + client/history UI
- Nuxt 3 CSR (ssr:false), @nuxtjs/tailwindcss, dev proxy to backend
- useAuth composable: CSRF cookie, XSRF token, login/logout/fetchUser
- auth middleware: redirects to /login if no session
- Login page, client list with search + create modal
- Client detail with editable name, dynamic notes (JSON), history feed
- History form with type select, inline edit/delete per entry
- Print layout at /clients/:id/print (calls window.print on mount)
- TypeScript interfaces: User, Client, HistoryEntry, PaginatedResponse
- German UI labels throughout

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-23 17:33:39 +07:00

27 lines
495 B
TypeScript

export default defineNuxtConfig({
ssr: false,
modules: ['@nuxtjs/tailwindcss'],
devServer: {
port: 3000,
host: '0.0.0.0',
},
nitro: {
devProxy: {
'/api': {
target: 'http://backend:8000',
changeOrigin: true,
prependPath: false,
},
'/sanctum': {
target: 'http://backend:8000',
changeOrigin: true,
prependPath: false,
},
},
},
runtimeConfig: {
public: {
apiBase: '/api',
},
},
})