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)", tagline: "ChatGPT-Style WebUI for LLMs (Formerly Ollama WebUI)",
favicon: "img/favicon.png", favicon: "img/favicon.png",
// Set the production url of your site here // Set the production url of your site here, defaulting to current value
url: "https://openwebui.com", url: process.env.SITE_URL || "https://openwebui.com",
// Set the /<baseUrl>/ pathname under which your site is served // Set the /<baseUrl>/ pathname under which your site is served, defaulting to current value
// For GitHub pages deployment, it is often '/<projectName>/' // For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: "/", baseUrl: process.env.BASE_URL || "/",
// GitHub pages deployment config. // GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these. // If you aren't using GitHub pages, you don't need these.