Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

fix

Steven Teyb687ad995b73
diff --git a/lib/constants/index.ts b/lib/constants/index.ts
index 30af25bb54..f65cfa6a3b 100644
--- a/lib/constants/index.ts
+++ b/lib/constants/index.ts
@@ -31,14 +31,14 @@ export const FADE_IN_ANIMATION_SETTINGS = {
transition: { duration: 0.2 },
};
-export const HOME_HOSTNAMES = new Set(["home.localhost:8888", "dub.sh"]);
-
/*
NOTE: We're using home.localhost:8888 for HOME_DOMAIN and localhost:8888 for APP_DOMAIN
in local development because Google OAuth doesn't allow subdomain localhost (e.g. app.localhost:8888)
as the callback URL.
*/
+export const HOME_HOSTNAMES = new Set(["home.localhost:8888", "dub.sh"]);
+
export const HOME_DOMAIN =
process.env.NEXT_PUBLIC_VERCEL_ENV === "production"
? "https://dub.sh"