fix: config SITE_URL and BASE_URL

This commit is contained in:
Matthew Hand 2024-11-06 20:01:43 +00:00
parent f7c92cb7ae
commit 4816a1d4d2
2 changed files with 5 additions and 5 deletions

View File

@ -36,6 +36,9 @@ jobs:
- name: Install dependencies
run: npm ci
- name: Build
env:
BASE_URL: ${{ vars.BASE_URL }}
SITE_URL: ${{ vars.SITE_URL }}
run: npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3

View File

@ -8,11 +8,8 @@ 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: "/",
url: process.env.SITE_URL || "https://openwebui.com",
baseUrl: process.env.BASE_URL || "/",
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.