First, install the dependencies:
pnpm iSecond, run the development server:
pnpm devOpen http://localhost:3000 with your browser to see the result.
Pull environment variables from your Vercel project into a local .env.local and access them via process.env.
- Link this folder to your Vercel project (skip if
.vercel/project.jsonexists):
pnpm dlx vercel@latest link- Pull the env variables into a local file:
pnpm dlx vercel@latest env pull .env.local- Choose which set to pull (Development/Preview/Production) when prompted.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
- Move to a local first approach, and sync with Supabase database
- then do SQL queries and such for filtering rather than JavaScript (save bandwidth).