diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 2a97016..868b89b 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -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 diff --git a/docusaurus.config.ts b/docusaurus.config.ts index ad581fe..8c6a12d 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -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 // pathname under which your site is served - // For GitHub pages deployment, it is often '//' - 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.