// https://nuxt.com/docs/api/configuration/nuxt-config export default defineNuxtConfig({ compatibilityDate: '2024-09-01', devtools: { enabled: false }, modules: ['@nuxtjs/tailwindcss'], css: ['~/assets/css/main.css'], app: { head: { title: 'GuestGuard', meta: [ { charset: 'utf-8' }, { name: 'viewport', content: 'width=device-width, initial-scale=1' }, { name: 'description', content: 'Real-time fraud detection for event RSVPs.' }, ], // Tier 2 Block D — preload the curated branding-font allowlist so // the host's font picker actually changes how the RSVP page looks. // Without these, every choice silently falls back to the system // default font. preconnect cuts ~150ms off the first paint. link: [ { rel: 'preconnect', href: 'https://fonts.googleapis.com' }, { rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: '' }, { rel: 'stylesheet', href: 'https://fonts.googleapis.com/css2' + '?family=Playfair+Display:wght@400;600;700' + '&family=Cormorant+Garamond:wght@400;500;600' + '&family=Lora:wght@400;500;600' + '&family=DM+Sans:wght@400;500;600' + '&family=Manrope:wght@400;500;600' + '&display=swap', }, ], }, }, runtimeConfig: { public: { // For local dev across origins. In prod this should be empty so all // requests go through same-origin via an ingress proxy. apiBase: process.env.NUXT_PUBLIC_API_BASE || 'http://localhost:8080', wsBase: process.env.NUXT_PUBLIC_WS_BASE || 'ws://localhost:8080', }, }, })