From aa21bdd79a95955632f7c88524e5aa244e2e537d Mon Sep 17 00:00:00 2001 From: Pete Johanson Date: Wed, 5 Aug 2020 14:43:59 -0400 Subject: [PATCH] Tweak for dynamic invite URL for deploys. --- docs/docusaurus.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/docusaurus.config.js b/docs/docusaurus.config.js index a24f395d..2704b65d 100644 --- a/docs/docusaurus.config.js +++ b/docs/docusaurus.config.js @@ -54,7 +54,9 @@ module.exports = { // }, { label: "Discord", - href: "https://zmkfirmware.dev/community/discord/invite", + href: + (process.env.DEPLOY_URL || "https://zmkfirmware.dev") + + "/community/discord/invite", }, { label: "Twitter",