Next.js Vercel Environment Variables

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

Next.js Environment Variables
NEXT_PUBLIC_VERCEL_ENVproduction
NEXT_PUBLIC_VERCEL_TARGET_ENVproduction
NEXT_PUBLIC_VERCEL_URLiamakulov-com-tools-q5698z0de-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_SHA910eaa4c94861c76458927233102a53275050ae1
NEXT_PUBLIC_VERCEL_GIT_COMMIT_MESSAGEUp deps
NEXT_PUBLIC_VERCEL_GIT_COMMIT_AUTHOR_LOGINiamakulov
NEXT_PUBLIC_VERCEL_GIT_COMMIT_AUTHOR_NAMEIvan Akulov
NEXT_PUBLIC_VERCEL_GIT_PULL_REQUEST_IDundefined
Variable Descriptions

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)