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

Description
Describe the bug
When using [email protected], navigating to an invalid URL does not show the 404 error page. Instead, you see 200 | An unexpected error has occurred.
To Reproduce
Steps to reproduce the behavior:
- Clone this repository: https://github.com/sidarthar/serverless-nextjs-404-error
- Run
npx serverless to deploy
- After deployed, visit the appUrl/pageThatDoesNotExist
- See error
Expected behavior
Should see a 404 | Page Not Found error.
Screenshots

Desktop (please complete the following information):
Additional context
When using [email protected], the 404 page works as expected.