Skip to content

Redirect to 404 page in getInitialProps()? #746

@nodegin

Description

@nodegin

As title mentioned, how can I redirect client to 404 in getInitialProps()?

for example, I cannot fetch results from API then the page should display "Not Found".

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