Skip to content

[Feature]: dynamic base href support #1677

@JounQin

Description

@JounQin

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions