Skip to content

Commit 36ef38a

Browse files
authored
fix(backend): use updated IS_DEV when creating Collections (#211)
this was previously using the old path, which resulted in collections always falling back to their default (prod) values, rather than using the expected values in dev
1 parent a6cb22e commit 36ef38a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/backend/src/common/constants/collections.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { IS_DEV } from "@backend/common/constants/env.constants";
1+
import { IS_DEV } from "./env.constants";
22

33
export const Collections = {
44
CALENDARLIST: IS_DEV ? "_dev.calendarlist" : "calendarlist",

packages/backend/src/common/constants/env.constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if (!Object.values(NodeEnv).includes(_nodeEnv)) {
1010
throw new Error(`Invalid NODE_ENV value: '${_nodeEnv}'`);
1111
}
1212

13-
const IS_DEV = isDev(_nodeEnv);
13+
export const IS_DEV = isDev(_nodeEnv);
1414

1515
const EnvSchema = z
1616
.object({

0 commit comments

Comments
 (0)