Skip to content

Commit

Permalink
adding fix for dev login env (#895)
Browse files Browse the repository at this point in the history
  • Loading branch information
Rayahhhmed authored Oct 3, 2024
1 parent e57d16f commit 64c828b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions server/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ export default registerAs('app', () => ({
auto: `${process.env.AUTO_SERVER_HOST_NAME}:${process.env.AUTO_SERVER_HOST_PORT}`,
client: `${process.env.CLIENT_HOST_NAME}:${process.env.CLIENT_HOST_PORT}`,
redirectLink:
process.env.NODE_ENV === 'dev'
? `http://`
: `https://` +
`${process.env.CLIENT_HOST_NAME}:${process.env.CLIENT_HOST_PORT}`,
(process.env.NODE_ENV === 'dev' ? `http://` : `https://`) +
`${process.env.CLIENT_HOST_NAME}:${process.env.CLIENT_HOST_PORT}`,
}));

0 comments on commit 64c828b

Please sign in to comment.