Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

fix: sign in with google on vercel previews #2460

Merged
merged 1 commit into from
Oct 23, 2023
Merged
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
6 changes: 5 additions & 1 deletion packages/app/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,11 @@ export function formatClaimNumber(number: number) {
export const OAUTH_REDIRECT_URI = Platform.select({
web: __DEV__
? "http://localhost:3000/magic-oauth-redirect"
: `https://${process.env.NEXT_PUBLIC_WEBSITE_DOMAIN}/magic-oauth-redirect`,
: `https://${
typeof window !== "undefined"
? window.location.host
: process.env.NEXT_PUBLIC_WEBSITE_DOMAIN
}/magic-oauth-redirect`,
default: `io.showtime${__DEV__ ? ".development" : ""}://magic-oauth-redirect`,
});

Expand Down
Loading