Skip to content

Commit d8ef5f8

Browse files
authored
Merge pull request #7 from agoda-com/joeldickson-patch-1
Add defaults if env var is not set
2 parents 658435b + 46333bf commit d8ef5f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ export const getCommonMetadata = (
5858

5959
const getEndpointFromType = (type: string) => {
6060
return {
61-
webpack: process.env.WEBPACK_ENDPOINT,
62-
vite: process.env.VITE_ENDPOINT,
61+
webpack: process.env.WEBPACK_ENDPOINT || "http://compilation-metrics/webpack",
62+
vite: process.env.VITE_ENDPOINT || "http://compilation-metrics/vite",
6363
}[type];
6464
};
6565

0 commit comments

Comments
 (0)