Secrets during pages / workers build process?

I have a pages project and I’d like to have a secret available to the build. For example, I have a personal access token for github that allows me to use npm to install a private package.

I’d like to set up that token as a secret / environment variable for the BUILD process, so NPM can install the package from the repository during the build process.

Note: This is different than secrets at RUN time. It’s secrets at BUILD time.

Environment variables set in the dashboard are available at build time.

3 Likes

Ah, a bad assumption on my part that they’re not. Thanks.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.