Skip to content

Static Sites always returns never reach 404. #533

@omarkhatibgg

Description

@omarkhatibgg

Hey Team,

I know Static sites is more for spa apps, but I have a astro app that exports static pages.

whenever I try any route even when it does not exist, it returns the html.

I noticed this line in the config, it always return the html.

try_files {path} {path}.html {path}/index.html /index.html

I know it's could not be a bug but can you provide an option to activate / deactivate the behavior?

like in the Staticfile something like

root: dist
spa: true/false

Best
Omar

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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