Add Mapbox token instructions to README

This commit is contained in:
Tyler Hallada 2022-08-20 01:49:16 -04:00 committed by GitHub
parent db5fd884b0
commit 329c6f8afd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,7 +30,15 @@ First, install the dependencies:
npm install npm install
``` ```
Then, run the dev server: Then create a file named `.env` at the root of the project with the contents:
```
NEXT_PUBLIC_MAPBOX_TOKEN=tokengoeshere
```
You can get a Mapbox token by [creating a mapbox account and generating a token on the access token page](https://docs.mapbox.com/help/glossary/access-token/).
Now, run the dev server:
```bash ```bash
npm run dev npm run dev