Skip to content

Uknown URL at build time #11043

Answered by slorber
davetrux asked this question in Q&A
Mar 28, 2025 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Docusaurus is a static site generator, and for various SEO-related features (such as canonical URL, x-hreflang meta), the full URL (including the domain) must be in the generated HTML pages.

If you don't care about SEO and similar features, you can just use the exact same site URL for all your website deployments, and it should work fine. You can even use https://example.com if you want. Just be aware that this is bad for SEO reasons, but maybe you don't care.

If you care about SEO, you'd rather use the correct URL in config, for each deployment.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@davetrux
Comment options

@slorber
Comment options

slorber Apr 1, 2025
Collaborator

Answer selected by davetrux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants