Skip to content

Allow to serve site with path prefix #208

Description

@ffplexim

For testing/debugging purposes (JavaScript problems, absolute vs. relative paths, ...), it can be useful to serve the page with a path prefix. This can be achieved by replacing "/" with "/prefix/" in

Mount("/", app=StaticFiles(directory=out_dir, html=True), name="static"),
(+ some more polishing, like making sure that the web browser is opened at the right URL etc.)

Is this a feature that's of interest to others?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions