Skip to content

Commit

Permalink
feat(lib): create webserver constanst for export things like host
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfg7 committed Jun 15, 2023
1 parent e511aa6 commit dd12303
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/shared/lib/webserver-constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const isProduction = process.env.NODE_ENV === 'production'

export const host = isProduction
? `https://${process.env.VERCEL_URL}`
: 'http://localhost:3000'

0 comments on commit dd12303

Please sign in to comment.