Skip to content

Commit

Permalink
feat(lib): set host based on HOST env variabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfg7 committed Jun 16, 2023
1 parent 3ede537 commit f713625
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/shared/lib/webserver-constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
const isDevelopment = process.env.NODE_ENV === 'development'

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

0 comments on commit f713625

Please sign in to comment.