Skip to content

Mapbox Access Token Env Variable - No More Hard Code#32

Open
HieuNgoGH wants to merge 1 commit into
mainfrom
31-set-environment-variables-to-avoid-hard-coding-them-in-codebase
Open

Mapbox Access Token Env Variable - No More Hard Code#32
HieuNgoGH wants to merge 1 commit into
mainfrom
31-set-environment-variables-to-avoid-hard-coding-them-in-codebase

Conversation

@HieuNgoGH

Copy link
Copy Markdown
Collaborator

Because we can't access environment variables in client-side Javascript (eg. process.env.ApiKey). We can however set an endpoint in server.js that grabs the environment variable and return it to the caller. This is called in our tagscript.js file.

@HieuNgoGH HieuNgoGH linked an issue Jun 24, 2026 that may be closed by this pull request
@HieuNgoGH HieuNgoGH requested a review from RobertLRead June 24, 2026 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Set Environment Variables to Avoid Hard Coding Them in Codebase

1 participant