Skip to content

Support single page applications #3

@ghost

Description

Server hosting single page applications need to return index.html with a status code 200 when the requested file is not found.

There is an undocumented configuration option to serve Single Page Apps (SPA) today:

services:
  my_webapp:
    static:
      root: /var/www
      not_found:
        status: 200
        file: index.html

But I'm not 100% sure to like it as it is.

I was thinking about something like:

services:
  my_webapp:
    static:
      root: /var/www
      spa_mode: true

Any idea is welcome.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions