Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: staging not using the right app url #254

Merged
merged 2 commits into from
Apr 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy-testnet-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
name: Checkout
uses: actions/checkout@v3
with:
ref: testnet
ref: testnet-dev

- id: pull-staging
name: Pull latest 'staging'
Expand Down
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
Loading