From 5a72a38499fb28332448b6e1f41dfec8e6c66d5d Mon Sep 17 00:00:00 2001 From: "ARUBA\\amedeo.palopoli" Date: Fri, 15 May 2026 14:27:32 +0200 Subject: [PATCH] fix: correct baseUrl and URL fallbacks for GitHub Pages deployment Site is served at https://arubacloud.github.io/api/ so: - url fallback: 'https://arubacloud.github.io' - baseUrl fallback: '/api/' Both docusaurus.config.js and deploy.yml now use the correct defaults when SITE_URL / BASE_URL repository variables are not explicitly set. --- .github/workflows/deploy.yml | 4 ++-- docusaurus.config.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 66fecc8..6daf51a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -42,8 +42,8 @@ jobs: - name: Build website run: npm run build env: - URL: ${{ vars.SITE_URL }} - BASE_URL: ${{ vars.BASE_URL || '/' }} + URL: ${{ vars.SITE_URL || 'https://arubacloud.github.io' }} + BASE_URL: ${{ vars.BASE_URL || '/api/' }} - name: Upload artifact uses: actions/upload-pages-artifact@v3 diff --git a/docusaurus.config.js b/docusaurus.config.js index 76170b9..3a85f46 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -15,10 +15,10 @@ const config = { favicon: 'img/favicon.ico', // Set the production url of your site here - url: process.env.URL || 'https://your-docusaurus-site.example.com', + url: process.env.URL || 'https://arubacloud.github.io', // Set the // pathname under which your site is served // For GitHub pages deployment, it is often '//' - baseUrl: process.env.BASE_URL || "/", + baseUrl: process.env.BASE_URL || '/api/', // GitHub pages deployment config. // If you aren't using GitHub pages, you don't need these.