Skip to content

Commit

Permalink
Merge pull request #25 from brunotot/hotfix-port-env
Browse files Browse the repository at this point in the history
chore: hotfix port env
  • Loading branch information
brunotot authored Oct 1, 2024
2 parents 42c4f69 + 77a15cb commit b1449a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/mern-sample-app/app-node-express/src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,11 @@ function parseEnvironmentVars() {
throw new Error(error);
}

const PORT = process.env.PORT ?? process.env.SERVER_PORT;

return {
...parsedResults.data,
SERVER_URL: `${process.env.SERVER_DOMAIN!}:${process.env.SERVER_PORT!}`,
SERVER_URL: `${process.env.SERVER_DOMAIN!}:${PORT!}`,
} as const;
}

Expand Down

0 comments on commit b1449a9

Please sign in to comment.