adds render.com url constant (#6287)

* adds render.com url constant

* fixes webapp_url constant

Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
Jeff LoiselleandPeer Richelsen authored and GitHub committed 2023-01-07 10:28:02 +00:00
1 parent 6b6eed66eb
commit 010f39a7a4
2 files changed
+3

No files matched your search

+2
View File
@@ -1,11 +1,13 @@
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 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 =
process.env.NEXT_PUBLIC_WEBAPP_URL ||
VERCEL_URL ||
RAILWAY_STATIC_URL ||
HEROKU_URL ||
RENDER_URL ||
"http://localhost:3000";
/** @deprecated use `WEBAPP_URL` */
export const BASE_URL = WEBAPP_URL;