- A Supabase project
- A Mapbox token
You need to create a local .env
file with the following variables:
# for Client Components
NEXT_PUBLIC_SUPABASE_URL=<your supabase url>
NEXT_PUBLIC_SUPABASE_ANON_KEY=<your supabase anon key>
NEXT_PUBLIC_MAPBOX_TOKEN=<your mapbox token>
NEXT_PUBLIC_MAPBOX_USERNAME=mapbox
NEXT_PUBLIC_MAPBOX_STYLE=outdoors-v12
# for Server Components
MAPBOX_TOKEN=<your mapbox token>
MAPBOX_USERNAME=mapbox
MAPBOX_STYLE=outdoors-v12
npm run dev
npm run build
npm run start