Skip to content

Commit dea87e9

Browse files
committed
fix: only use env for db config
1 parent 4a1a0e0 commit dea87e9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

apps/insights/src/config/server.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,8 @@ export const AMPLITUDE_API_KEY = defaultInProduction(
4646
"6faa78c51eff33087eb19f0f3dc76f33",
4747
);
4848
export const CLICKHOUSE = {
49-
url:
50-
process.env.CLICKHOUSE_URL ??
51-
"https://oxcuvjrqq7.eu-west-2.aws.clickhouse.cloud:8443",
52-
username: process.env.CLICKHOUSE_USERNAME ?? "insights",
49+
url: demand("CLICKHOUSE_URL"),
50+
username: demand("CLICKHOUSE_USERNAME"),
5351
password: demand("CLICKHOUSE_PASSWORD"),
5452
};
5553

0 commit comments

Comments
 (0)