·조회수 126

Vercel team environment variables and project environment variables

Team-level environment variables?

When developing, there are special values that cannot be stored in the code for security reasons. Passwords and Access Tokens are examples of this. So, you can store them as environment variables and retrieve the values when deploying. I thought there were only project-level environment variables, but there are also team-level environment variables. Storing in team-level environment variables allows access to the values in all projects included in the team, which was useful for management.

To use environment variables, you can go to Project -> Settings -> Environment Variables as shown below to store environment variables to be used in the project.

The problem is that this value can only be used in one project. If the same value is needed in another project, it must be created again. I stored a token to access Github package here, and with 5 projects, I had to create the same environment variable 5 times. The bigger issue was the worry of having to change each stored environment variable in each project when the token expires and needs to be updated.

Official documentation is also shared. You can find more details here.

김지식
김지식
웹, 앱 개발자입니다.

댓글

댓글을 불러오는 중...