Skip to content

Commit

Permalink
Merge pull request #7 from agoda-com/joeldickson-patch-1
Browse files Browse the repository at this point in the history
Add defaults if env var is not set
  • Loading branch information
Vedmax authored Sep 25, 2024
2 parents 658435b + 46333bf commit d8ef5f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ export const getCommonMetadata = (

const getEndpointFromType = (type: string) => {
return {
webpack: process.env.WEBPACK_ENDPOINT,
vite: process.env.VITE_ENDPOINT,
webpack: process.env.WEBPACK_ENDPOINT || "http://compilation-metrics/webpack",
vite: process.env.VITE_ENDPOINT || "http://compilation-metrics/vite",
}[type];
};

Expand Down

0 comments on commit d8ef5f8

Please sign in to comment.