Skip to content

fix: set baseUrl for GitHub Pages project site#56

Merged
lucaaamaral merged 1 commit into
magma:mainfrom
lucaaamaral:fix/base-url
Mar 18, 2026
Merged

fix: set baseUrl for GitHub Pages project site#56
lucaaamaral merged 1 commit into
magma:mainfrom
lucaaamaral:fix/base-url

Conversation

@lucaaamaral
Copy link
Copy Markdown
Collaborator

Summary

  • Set default baseUrl to /magma-documentation/ to match GitHub Pages project site URL structure (magma.github.io/magma-documentation/)
  • The DOCUSAURUS_BASE_URL env var can still override it for other deployment targets

Context

GitHub Pages serves project repositories at /<repo-name>/. The previous default of / caused assets and internal links to resolve incorrectly when deployed to magma.github.io/magma-documentation/.

Test plan

  • Verify assets (CSS, images, JS) load correctly at magma.github.io/magma-documentation/
  • Verify internal navigation links work
  • Verify local dev (docker compose up dev) still works (uses env var override or / fallback)

GitHub Pages serves project repos at /<repo-name>/, so the default
baseUrl must match to resolve assets and internal links correctly.
@lucaaamaral lucaaamaral merged commit 65be472 into magma:main Mar 18, 2026
6 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant