This project checks whether Vercel system environment variables (like VERCEL
) are available in different build script scenarios.
- If
VERCEL
is available in an npmpostbuild
script. - If
VERCEL
is available when the postbuild script is chained directly in thebuild
command.
- Deploy this project to Vercel.
- Check the build logs for the output of
postbuild.js
:- First, with
postbuild
as an npm lifecycle script. - Then, by chaining it in the
build
command:
"build": "next build && node postbuild.js"
- First, with
To determine the most reliable way to access Vercel system environment variables during the build process.