Browse Source

fix: only use env for db config

Alexandru Cambose 3 months ago
parent
commit
dea87e94be
1 changed files with 2 additions and 4 deletions
  1. 2 4
      apps/insights/src/config/server.ts

+ 2 - 4
apps/insights/src/config/server.ts

@@ -46,10 +46,8 @@ export const AMPLITUDE_API_KEY = defaultInProduction(
   "6faa78c51eff33087eb19f0f3dc76f33",
 );
 export const CLICKHOUSE = {
-  url:
-    process.env.CLICKHOUSE_URL ??
-    "https://oxcuvjrqq7.eu-west-2.aws.clickhouse.cloud:8443",
-  username: process.env.CLICKHOUSE_USERNAME ?? "insights",
+  url: demand("CLICKHOUSE_URL"),
+  username: demand("CLICKHOUSE_USERNAME"),
   password: demand("CLICKHOUSE_PASSWORD"),
 };