Skip to content

Commit

Permalink
feat: add vercel types
Browse files Browse the repository at this point in the history
Signed-off-by: Griko Nibras <[email protected]>
  • Loading branch information
grikomsn committed Nov 3, 2023
1 parent f6f62f3 commit abfe959
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions vercel.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
// https://vercel.com/docs/projects/environment-variables/system-environment-variables

declare namespace NodeJS {
interface ProcessEnv {
readonly VERCEL?: "1";
readonly CI?: "1";

/** @see https://vercel.com/docs/edge-network/regions#region-list */
readonly VERCEL_REGION?:
| "arn1"
| "bom1"
| "cdg1"
| "cle1"
| "cpt1"
| "dub1"
| "fra1"
| "gru1"
| "hkg1"
| "hnd1"
| "iad1"
| "icn1"
| "kix1"
| "lhr1"
| "pdx1"
| "sfo1"
| "sin1"
| "syd1"
| "dev1";

readonly VERCEL_ENV?: "production" | "preview" | "development";
readonly VERCEL_URL?: string;
readonly VERCEL_BRANCH_URL?: string;
readonly VERCEL_AUTOMATION_BYPASS_SECRET?: string;
readonly VERCEL_GIT_PROVIDER?: string;
readonly VERCEL_GIT_REPO_SLUG?: string;
readonly VERCEL_GIT_REPO_OWNER?: string;
readonly VERCEL_GIT_REPO_ID?: string;
readonly VERCEL_GIT_COMMIT_REF?: string;
readonly VERCEL_GIT_COMMIT_SHA?: string;
readonly VERCEL_GIT_COMMIT_MESSAGE?: string;
readonly VERCEL_GIT_COMMIT_AUTHOR_LOGIN?: string;
readonly VERCEL_GIT_COMMIT_AUTHOR_NAME?: string;
readonly VERCEL_GIT_PREVIOUS_SHA?: string;
readonly VERCEL_GIT_PULL_REQUEST_ID?: string;

readonly NEXT_PUBLIC_VERCEL_ENV?: "production" | "preview" | "development";
readonly NEXT_PUBLIC_VERCEL_URL?: string;
readonly NEXT_PUBLIC_VERCEL_BRANCH_URL?: string;
readonly NEXT_PUBLIC_VERCEL_AUTOMATION_BYPASS_SECRET?: string;
readonly NEXT_PUBLIC_VERCEL_GIT_PROVIDER?: string;
readonly NEXT_PUBLIC_VERCEL_GIT_REPO_SLUG?: string;
readonly NEXT_PUBLIC_VERCEL_GIT_REPO_OWNER?: string;
readonly NEXT_PUBLIC_VERCEL_GIT_REPO_ID?: string;
readonly NEXT_PUBLIC_VERCEL_GIT_COMMIT_REF?: string;
readonly NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA?: string;
readonly NEXT_PUBLIC_VERCEL_GIT_COMMIT_MESSAGE?: string;
readonly NEXT_PUBLIC_VERCEL_GIT_COMMIT_AUTHOR_LOGIN?: string;
readonly NEXT_PUBLIC_VERCEL_GIT_COMMIT_AUTHOR_NAME?: string;
readonly NEXT_PUBLIC_VERCEL_GIT_PULL_REQUEST_ID?: string;
}
}

0 comments on commit abfe959

Please sign in to comment.