Next.js Vercel Environment Variables

All NEXT_PUBLIC_ environment variables provided by Vercel for Next.js projects. Based on the official Vercel documentation.

Note: These variables are accessible on the client side and are automatically populated by Vercel during deployment.

Next.js Environment Variables
15 environment variables available for Next.js projects
NEXT_PUBLIC_VERCEL_ENVproduction
NEXT_PUBLIC_VERCEL_TARGET_ENVproduction
NEXT_PUBLIC_VERCEL_URLiamakulov-com-tools-nw1am92gu-ivan-akulovs-projects.vercel.app
NEXT_PUBLIC_VERCEL_BRANCH_URLiamakulov-com-tools-git-main-ivan-akulovs-projects.vercel.app
NEXT_PUBLIC_VERCEL_PROJECT_PRODUCTION_URLtools.iamakulov.com
NEXT_PUBLIC_VERCEL_GIT_PROVIDERgithub
NEXT_PUBLIC_VERCEL_GIT_REPO_SLUGiamakulov-com-tools
NEXT_PUBLIC_VERCEL_GIT_REPO_OWNERiamakulov
NEXT_PUBLIC_VERCEL_GIT_REPO_ID918815195
NEXT_PUBLIC_VERCEL_GIT_COMMIT_REFmain
NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA6a6b82063326c0b68cac6275348ebe0430889797
NEXT_PUBLIC_VERCEL_GIT_COMMIT_MESSAGEHydration playground
NEXT_PUBLIC_VERCEL_GIT_COMMIT_AUTHOR_LOGINiamakulov
NEXT_PUBLIC_VERCEL_GIT_COMMIT_AUTHOR_NAMEIvan Akulov
NEXT_PUBLIC_VERCEL_GIT_PULL_REQUEST_IDundefined
Variable Descriptions
What each Next.js Vercel environment variable contains
NEXT_PUBLIC_VERCEL_ENV: The environment that the app is being deployed to (production, preview, development)
NEXT_PUBLIC_VERCEL_TARGET_ENV: The target environment for the deployment (production or preview)
NEXT_PUBLIC_VERCEL_URL: The URL of the deployment (e.g., my-app-git-main-team.vercel.app)
NEXT_PUBLIC_VERCEL_BRANCH_URL: The URL specific to the Git branch
NEXT_PUBLIC_VERCEL_PROJECT_PRODUCTION_URL: The production URL of the project
NEXT_PUBLIC_VERCEL_GIT_*: Git-related information (provider, repo, commit details, etc.)
NEXT_PUBLIC_VERCEL_GIT_PULL_REQUEST_ID: The ID of the pull request (only available for preview deployments)