Improve Next.js examples
nikolasburk opened this issue · comments
- Add "Deploy with Vercel" button
- issue: README talking about an API route that doesn’t exist (
/api/feed
)
Idea: Link to the fullstack-prisma-nextjs-blog template from the example README.
We'll have to switch the database provider if we want to add a deploy button. SQLite doesn't work too well on Vercel with Prisma. The last time I tried it, I ran into some errors — the SQLite file could not be found.
I would like to understand the purpose and intention we have with the Next.js examples to help decide if we should(n't) add the deploy button.
Here are some of the options I think we have:
Option 1: Add a deploy button, and update the database provider to make the deployment process smoother.
Option 2: No deployment button but link to fullstack-prisma-nextjs-blog template from the README.
Another suggestion:
- Improve data serialization with
superjson
andnext-superjson
. We currently use a utility function to serializeDateTime
values. Guide: https://flaviocopes.com/nextjs-serialize-date-json/
Also needs refactor