Skip to content

Is it possible to add custom prefixes to system environment variables? #227

Answered by samcx
acrobertson asked this question in Help
Discussion options

You must be logged in to vote

@acrobertson Curious, have you tried adding the process.env part here → SANITY_STUDIO_VERCEL_GIT_COMMIT_REF=${process.env.VERCEL_GIT_COMMIT}. If this doesn't work, you can use a next.config.js file → https://github.com/vercel/next.js/blob/canary/examples/with-env-from-next-config-js/next.config.js (we don't recommend this method over the Environment Variables UI unless necessary).

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@acrobertson
Comment options

@acrobertson
Comment options

Answer selected by samcx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants