From 4a17225b745b2db8bf62c5def5976d0eeedd32d1 Mon Sep 17 00:00:00 2001 From: Matthew Hand Date: Tue, 5 Nov 2024 21:45:16 +0000 Subject: [PATCH] Update docusaurus.config.ts to use BASE_URL and SITE_URL env vars with defaults --- docusaurus.config.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docusaurus.config.ts b/docusaurus.config.ts index ad581fe..5d670fb 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -8,11 +8,11 @@ const config: Config = { tagline: "ChatGPT-Style WebUI for LLMs (Formerly Ollama WebUI)", favicon: "img/favicon.png", - // Set the production url of your site here - url: "https://openwebui.com", - // Set the // pathname under which your site is served - // For GitHub pages deployment, it is often '//' - baseUrl: "/", + // Set the production url of your site here, defaulting to current value + url: process.env.SITE_URL || "https://openwebui.com", + // Set the // pathname under which your site is served, defaulting to current value + // For GitHub pages deployment, it is often '//' + baseUrl: process.env.BASE_URL || "/", // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these.