A Nuxt.js application that displays random City of Chicago employees from a Supabase database.
Install dependencies:
npm installStart the development server:
npm run devBuild for production:
npm run buildPreview production build:
npm run previewSupabase credentials are configured as server-only environment variables to prevent exposure in client bundles.
Create a .env file with the following Supabase connection variables:
SUPABASE_URL=your_supabase_url
SUPABASE_KEY=your_supabase_anon_key
Add these Supabase connection variables in your Netlify project settings (Site settings → Environment variables):
SUPABASE_URL=your_supabase_url
SUPABASE_KEY=your_supabase_anon_key
Important: Do NOT use the NUXT_ prefix for these variables, as variables with that prefix are exposed to the client by default. These credentials are accessed via process.env and are server-only.