Current Setup
I load my Mapbox access token into my next.js
app as process.env.NEXT_PUBLIC_MAPBOX_TOKEN
. The token is stored in my .env.local
file as NEXT_PUBLIC_MAPBOX_TOKEN
and also in the s3
QA server config.
Problem
The Mapbox token is read when I'm in local development and loads the map, but when I visit the live QA link, it isn't read and the map doesn't load.
What are the possible causes for this problem?