From 79fd9489c6a6712570803b25035b60836f0093d1 Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Mon, 13 Nov 2023 21:41:55 +0700 Subject: [PATCH] Added default value on posthog and gtm env --- docs/docusaurus.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index 498d12ebf..a176b98fd 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -51,8 +51,8 @@ const config = { [ "posthog-docusaurus", { - apiKey: process.env.POSTHOG_PROJECT_API_KEY, - appUrl: process.env.POSTHOG_APP_URL, // optional + apiKey: process.env.POSTHOG_PROJECT_API_KEY || "XXX", + appUrl: process.env.POSTHOG_APP_URL || "XXX", // optional enableInDevelopment: false, // optional }, ], @@ -93,7 +93,7 @@ const config = { }, // GTM is always inactive in development and only active in production to avoid polluting the analytics statistics. googleTagManager: { - containerId: process.env.GTM_ID, + containerId: process.env.GTM_ID || "XXX", }, // Will be passed to @docusaurus/plugin-content-pages (false to disable) // pages: {},