0

I have two branches - main and development - and the following environment variables:

api_username=*****
api_secret=***************

It is deployed on vercel, now the thing is it is working properly on the main deployed branch but not on the development branch.

enter image description here

1 Answer 1

0

Can you make sure if you are using the same project for both environments, Since environment variables are per project in Vercel.

Also, can you check if there is a mismatch between the branch for the development environments and the domain assigned to that branch?

Since you can use environments variables per environment and per branch at the same time.

enter image description here

This is also mentioned in their docs:

When you add a Preview Environment Variable, you can choose to apply to all Preview branches or you can select a specific branch

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.