Skip to content

How to pre-render all routes? #187

@OngeUK

Description

@OngeUK

Currently, using the default files that are created upon running preact create, when I run a build a single index.html with pre-render mark-up is generated. What I'm looking for is for all route pages to be generated (after all, not all users will enter the site via the /index.html page).

Ideally a build would produce the following statically generated pages:

/index.html
/profiles/index.html
/profiles/john/index.html

Is it possible to do this, and if so how?

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