chen-rn / CUA

(deprecateed) create-universal-app(CUA) is an opinionated template for creating fullstack universal apps (Expo, Next, tRPC, Prisma, Clerk, Solito, Tamagui)

Home Page:https://cua-demo.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] getServerSideProps can't be used in Production

nathanbrachotte opened this issue · comments

commented

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.

commented

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!