Skip to content

Commit

Permalink
Add internal render hostname to app url variants
Browse files Browse the repository at this point in the history
  • Loading branch information
Allypost committed Aug 14, 2023
1 parent 73fc2cf commit 23d548e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/utils/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ export const getAppUrl = () => {
if (process.env.INTERNAL_ADDRESS) {
return `http://${process.env.INTERNAL_ADDRESS}:${process.env.PORT ?? 3000}`;
}
if (process.env.RENDER_INTERNAL_HOSTNAME) {
// reference for render.com
return `http://${process.env.RENDER_INTERNAL_HOSTNAME}:${
process.env.PORT ?? 3000
}`;
}
if (process.env.APP_URL) {
return process.env.APP_URL;
}
Expand Down

0 comments on commit 23d548e

Please sign in to comment.