mirror of
https://github.com/open-webui/docs
synced 2025-05-20 03:08:56 +00:00
fix: config SITE_URL and BASE_URL
This commit is contained in:
parent
f7c92cb7ae
commit
4816a1d4d2
3
.github/workflows/gh-pages.yml
vendored
3
.github/workflows/gh-pages.yml
vendored
@ -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
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user