steven-tey / precedent

An opinionated collection of components, hooks, and utilities for your Next.js project.
https://precedent.dev
MIT License
4.78k stars 420 forks source link

When i try to deploy it gives me this error ( Error occurred prerendering page) #46

Closed Ultrasclash closed 1 year ago

Ultrasclash commented 1 year ago

Error occurred prerendering page "/sitemap.xml". Read more: https://nextjs.org/docs/messages/prerender-error

15:06:47.327 | Error: 15:06:47.327 | Invalid prisma.user.findMany() invocation: 15:06:47.327 |   15:06:47.327 |   15:06:47.327 | The table public.User does not exist in the current database.

anscg commented 1 year ago

You should push your prisma db

Vent3st commented 1 year ago

You should push your prisma db

thanks, how would we push prisma db? locally?

steven-tey commented 1 year ago

run npx prisma db push

it should also be automatically ran when you do next build