Skip to content

Commit

Permalink
fix: use correct env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
oae committed Nov 6, 2022
1 parent 239e86d commit 579d8d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/trpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ function getBaseUrl() {

if (process.env.RENDER_INTERNAL_HOSTNAME)
// reference for render.com
return `http://${process.env.RENDER_INTERNAL_HOSTNAME}:${process.env.PORT}`;
return `http://${process.env.RENDER_INTERNAL_HOSTNAME}:${process.env.KAIZOKU_PORT}`;

// assume localhost
return `http://localhost:${process.env.PORT ?? 3000}`;
return `http://localhost:${process.env.KAIZOKU_PORT ?? 3000}`;
}

export const trpc = createTRPCNext<AppRouter>({
Expand Down

0 comments on commit 579d8d0

Please sign in to comment.