Skip to content

Any way to force an error in getInitialProps? #2218

@youfoundron

Description

@youfoundron

Say show a 404 after a bad API response in getInitialProps.
I could use Router and push to a non-existent route like /error or something but I'd rather not force a second route change.

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