Update docusaurus.config.ts to use BASE_URL and SITE_URL env vars with defaults

This commit is contained in:
Matthew Hand 2024-11-05 21:45:16 +00:00
parent f9967cec63
commit 641a5f1f8f

View File

@ -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 /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: "/",
// Set the production url of your site here, defaulting to current value
url: process.env.SITE_URL || "https://openwebui.com",
// Set the /<baseUrl>/ pathname under which your site is served, defaulting to current value
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: process.env.BASE_URL || "/",
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.