diff --git a/src/constants/api.ts b/src/constants/api.ts index 7b486736..8ba75bf3 100644 --- a/src/constants/api.ts +++ b/src/constants/api.ts @@ -3,7 +3,7 @@ export const API_URL = process.env.NEXT_PUBLIC_API_URL || "https://api.skip.mone export const APP_URL = process.env.APP_URL; export const appUrl = - process.env.NEXT_PUBLIC_VERCEL_ENV === "preview" + process.env.NEXT_PUBLIC_VERCEL_ENV === "preview" || process.env.NEXT_PUBLIC_VERCEL_ENV === "staging" ? typeof window !== "undefined" ? `https://${window.location.hostname}` : process.env.NEXT_PUBLIC_VERCEL_URL diff --git a/vercel.d.ts b/vercel.d.ts index a726c39a..812eb1e1 100644 --- a/vercel.d.ts +++ b/vercel.d.ts @@ -43,7 +43,7 @@ declare namespace NodeJS { 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_ENV?: "production" | "preview" | "development" | "staging"; readonly NEXT_PUBLIC_VERCEL_URL?: string; readonly NEXT_PUBLIC_VERCEL_BRANCH_URL?: string; readonly NEXT_PUBLIC_VERCEL_AUTOMATION_BYPASS_SECRET?: string;