CUA
CUA copied to clipboard
[BUG] getServerSideProps can't be used in Production
Describe the bug
Hey there, thanks a lot for this boilerplate. It looks great.
One issue is that I've not been able to use getServerSideProps
when deploying on Vercel.
To Reproduce Steps to reproduce the behavior:
- Start new project
- Deploy to Vercel
Expected behavior
You'd expect to see the Home screen. Instead, you see a 500 error.
Removing the getServerSideProps
in pages/index.tsx
(and follow instructions here will fix the issue.
But adding getServerSideProps
anywhere else in the app will brake the project the same way. This is not reproducible locally.
I'm not too sure why getServerSideProps is breaking it in this case, if someone can make it work I'd love a PR! But for now I've reverted the PR that causes the issue!