Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] getServerSideProps can't be used in Production #60

Open
nathanbrachotte opened this issue Mar 16, 2023 · 1 comment
Open

[BUG] getServerSideProps can't be used in Production #60

nathanbrachotte opened this issue Mar 16, 2023 · 1 comment

Comments

@nathanbrachotte
Copy link

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.

@chen-rn
Copy link
Owner

chen-rn commented Mar 16, 2023

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants