diff --git a/packages/lib/constants.ts b/packages/lib/constants.ts index 1034db6d0df947..1de85d4fcb97d0 100644 --- a/packages/lib/constants.ts +++ b/packages/lib/constants.ts @@ -5,6 +5,7 @@ const RENDER_URL = process.env.RENDER_EXTERNAL_URL ? `https://${process.env.REND export const CALCOM_ENV = process.env.CALCOM_ENV || process.env.NODE_ENV; export const IS_PRODUCTION = CALCOM_ENV === "production"; export const IS_PRODUCTION_BUILD = process.env.NODE_ENV === "production"; +const IS_DEV = CALCOM_ENV === "development"; /** https://app.cal.com */ export const WEBAPP_URL = @@ -17,7 +18,7 @@ export const WEBAPP_URL = // OAuth needs to have HTTPS(which is not generally setup locally) and a valid tld(*.local isn't a valid tld) // So for development purpose, we would stick to localhost only -export const WEBAPP_URL_FOR_OAUTH = IS_PRODUCTION ? WEBAPP_URL : "http://localhost:3000"; +export const WEBAPP_URL_FOR_OAUTH = IS_PRODUCTION || IS_DEV ? WEBAPP_URL : "http://localhost:3000"; /** @deprecated use `WEBAPP_URL` */ export const BASE_URL = WEBAPP_URL;