This is a Next.js project bootstrapped with create-next-app
.
Install the NPM packages
yarn install
Add Secrets to .env.local
$ touch .env.local
$ echo "NEXT_PUBLIC_MAPBOX_GL_ACCESS_TOKEN=..."
Run the development server
yarn dev
Go to http://localhost:3000 in your browser to see the site locally
Run ESLint
yarn run lint
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.
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.
Steps to deploy:
- Add your environment variables in your Project Settings
- Deploy your production build
vercel --prod
(* you cannot redeploy to Production from the Dashboard if it wasn't created via Git)
Check out Live demo