Skip to content

OpenPanel is an open-source web and product analytics platform, an open-source alternative to Mixpanel with optional self-hosting.

fix(self-hosting): replace `COOKIE_SECRET` variable and not name (#119)

Fred KISSIEfe14163fd672
diff --git a/self-hosting/quiz.ts b/self-hosting/quiz.ts
index 06c445bc1..70ab4fe25 100644
--- a/self-hosting/quiz.ts
+++ b/self-hosting/quiz.ts
@@ -123,7 +123,7 @@ function writeEnvFile(envs: {
const envTemplate = fs.readFileSync(envTemplatePath, 'utf-8');
const newEnvFile = envTemplate
- .replace('COOKIE_SECRET', envs.COOKIE_SECRET)
+ .replace('$COOKIE_SECRET', envs.COOKIE_SECRET)
.replace('$CLICKHOUSE_URL', envs.CLICKHOUSE_URL)
.replace('$REDIS_URL', envs.REDIS_URL)
.replace('$DATABASE_URL', envs.DATABASE_URL)