aws-amplify / aws-amplify/amplify-hosting
Next.js 13.4.13 getServerSideProps returns undefined
- Dominant language
- Dockerfile
- Stars
- 481
- Forks
- 123
- PR merge metrics
- No merged PRs in 30d
Description
### Before opening, please confirm:
- [X] I have checked to see if my question is addressed in the [FAQ](https://github.com/aws-amplify/amplify-hosting/blob/master/FAQ.md).
- [X] I have [searched for duplicate or closed issues](https://github.com/aws-amplify/amplify-hosting/issues?q=is%3Aissue+).
- [X] I have read the guide for [submitting bug reports](https://github.com/aws-amplify/amplify-hosting/blob/master/CONTRIBUTING.md).
- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
- [X] I have removed any sensitive information from my code snippets and submission.
### App Id
d3hoxczt0g35g3
### AWS Region
eu-north-1
### Amplify Hosting feature
SSR
### Frontend framework
Next.js
### Next.js version
13.4.13
### Next.js router
Pages Router
### Describe the bug
- getServerSideProps returns undefined.
- pageProps returns an empty object
- This is happening on occasion which makes it very difficult to debug.
### Expected behavior
Return data consistently from getServerSideProps
### Reproduction steps
1. Create a next.js app with getServerSideProps
2. Upload to amplify
3. View the page on an incognito window and refresh 1-5 times
### Build Settings
_No response_
### Log output
_No response_
### Additional information
_No response_
Contributor guide
Research direction
Start by reproducing a Next.js 13.4.13 Pages Router app deployed to Amplify Hosting in eu-north-1, following the five listed refreshes in an incognito window. Compare the intermittent empty pageProps and missing getServerSideProps data with the deployment's available build settings and logs; done means the data is returned consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, next.js
- Domain
- backend, cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100