Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: dynamic base href support #1677

Open
JounQin opened this issue Dec 18, 2024 · 1 comment
Open

[Feature]: dynamic base href support #1677

JounQin opened this issue Dec 18, 2024 · 1 comment

Comments

@JounQin
Copy link
Contributor

JounQin commented Dec 18, 2024

What problem does this feature solve?

We want to deploy our documents into multiple sites, for siteA its base could be /docs, but for siteB its base could be /platform-docs, for now we have to build them multiple times separately.

Warning

This feature could break SSG

What does the proposed API look like?

Proposal:

  1. check typeof __RSPRESS_BASE_HREF__
  2. check base#href
  3. provide function support for runtime check
@Timeless0911
Copy link
Collaborator

I think building multiple times is a reasonable solution, and all other solutions will increase the complexity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants