Skip to content

Commit

Permalink
fix: staging not using the right app url
Browse files Browse the repository at this point in the history
  • Loading branch information
codingki committed Apr 16, 2024
1 parent d24bc4c commit 96ba77b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/constants/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion vercel.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 96ba77b

Please sign in to comment.