-
Does anybody know if you can setup vervel environment variables to use other variables? As an example of what I try to achieve, could I use the This does work locally in your .env.local file, but it does not seem to work on Vercel. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
The nextjs documentation has what I need but apparently this does not work on Vercel. Ideas are welcome 😅
If you are trying to use a variable with a
Source: environment variable expansion |
Beta Was this translation helpful? Give feedback.
-
Hey 👋 The original solution is still valid, but I want to share an update with links to some related docs. Next.js, and some other frameworks, will automatically expand There are likely many possible ways to reach the same goal. If the recommended strategy doesn't work for your particular app or workflow, you can try some of the other ideas shared in vercel/next.js#16429. If you find a different solution, let us know what worked best for you! |
Beta Was this translation helpful? Give feedback.
Hey 👋 The original solution is still valid, but I want to share an update with links to some related docs. Next.js, and some other frameworks, will automatically expand
$
variables in your.env*
files.There are likely many possible ways to reach the same goal. If the recommended strategy doesn't work for your particular app or workflow, you can try some of the other ideas shared in vercel/next.js#16429. If you find a different solution, let us know what worked best for you!