Skip to content

Improve history mode server configuration documentation to include non-root publicPath #2863

Closed
@philBrown

Description

@philBrown

What problem does this feature solve?

The documentation for HTML5 History Mode - Example Server Configurations assumes all apps are running at the document root (ie /). Apps using a non-root publicPath are going to struggle with these config examples.

What does the proposed API look like?

Update the examples to include <publicPath> placeholders, eg

nginx

location <publicPath> {
  try_files $uri $uri/ <publicPath>/index.html;
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions