Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

Redirecting routes cause 503 CloudFront error #174

@zachabney

Description

@zachabney

I'm trying to setup routes that redirect using the serverless component. I did this by creating a page that matches the path, similar to this: https://github.com/zeit/next.js/wiki/Redirecting-in-%60getInitialProps%60.

However, invoking the res.end() seems to cause a 503 error with CloudFront.

image

Is there a better way to be handling redirects with serverless?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions