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
Jeff Loiselle 2023-01-07 05:28:02 -05:00 committed by GitHub
parent 6b6eed66eb
commit 010f39a7a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 0 deletions

View File

@ -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;

View File

@ -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",