CUA icon indicating copy to clipboard operation
CUA copied to clipboard

[BUG] getServerSideProps can't be used in Production

Open nathanbrachotte opened this issue 1 year ago • 1 comments

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:

  1. Start new project
  2. 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.

nathanbrachotte avatar Mar 16 '23 16:03 nathanbrachotte

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!

chen-rn avatar Mar 16 '23 20:03 chen-rn