adds render.com url constant (#6287)
* adds render.com url constant * fixes webapp_url constant Co-authored-by: Peer Richelsen <peeroke@gmail.com>pull/6312/head
parent
6b6eed66eb
commit
010f39a7a4
|
@ -1,11 +1,13 @@
|
||||||
const VERCEL_URL = process.env.VERCEL_URL ? `https://${process.env.VERCEL_URL}` : "";
|
const VERCEL_URL = process.env.VERCEL_URL ? `https://${process.env.VERCEL_URL}` : "";
|
||||||
const RAILWAY_STATIC_URL = process.env.RAILWAY_STATIC_URL ? `https://${process.env.RAILWAY_STATIC_URL}` : "";
|
const RAILWAY_STATIC_URL = process.env.RAILWAY_STATIC_URL ? `https://${process.env.RAILWAY_STATIC_URL}` : "";
|
||||||
const HEROKU_URL = process.env.HEROKU_APP_NAME ? `https://${process.env.HEROKU_APP_NAME}.herokuapp.com` : "";
|
const HEROKU_URL = process.env.HEROKU_APP_NAME ? `https://${process.env.HEROKU_APP_NAME}.herokuapp.com` : "";
|
||||||
|
const RENDER_URL = process.env.RENDER_EXTERNAL_URL ? `https://${process.env.RENDER_EXTERNAL_URL}` : "";
|
||||||
export const WEBAPP_URL =
|
export const WEBAPP_URL =
|
||||||
process.env.NEXT_PUBLIC_WEBAPP_URL ||
|
process.env.NEXT_PUBLIC_WEBAPP_URL ||
|
||||||
VERCEL_URL ||
|
VERCEL_URL ||
|
||||||
RAILWAY_STATIC_URL ||
|
RAILWAY_STATIC_URL ||
|
||||||
HEROKU_URL ||
|
HEROKU_URL ||
|
||||||
|
RENDER_URL ||
|
||||||
"http://localhost:3000";
|
"http://localhost:3000";
|
||||||
/** @deprecated use `WEBAPP_URL` */
|
/** @deprecated use `WEBAPP_URL` */
|
||||||
export const BASE_URL = WEBAPP_URL;
|
export const BASE_URL = WEBAPP_URL;
|
||||||
|
|
|
@ -210,6 +210,7 @@
|
||||||
"$ZOOM_CLIENT_ID",
|
"$ZOOM_CLIENT_ID",
|
||||||
"$ZOOM_CLIENT_SECRET",
|
"$ZOOM_CLIENT_SECRET",
|
||||||
"$HEROKU_APP_NAME",
|
"$HEROKU_APP_NAME",
|
||||||
|
"$RENDER_EXTERNAL_URL",
|
||||||
"$HOSTED_CAL_FEATURES",
|
"$HOSTED_CAL_FEATURES",
|
||||||
"$HUBSPOT_CLIENT_ID",
|
"$HUBSPOT_CLIENT_ID",
|
||||||
"$HUBSPOT_CLIENT_SECRET",
|
"$HUBSPOT_CLIENT_SECRET",
|
||||||
|
|
Loading…
Reference in New Issue