Re-generate types in next?

default discord avatar
2 months ago

I'm building a next site that includes payload-next and I keep hitting an issue where the types aren't being generated and thus breaking things. I don't have access within this solution to run

payload generate:types

and so I'm curious how I force this? While not exactly the same but related, I likewise would like to add in seeding.


Yep, this doesn't happen upon deploying my project into Github which kicks off a CI/CD preview in Netlify. And since it does a complete build I do think it's due to the types being out of sync. So any insights into how I can bring these together would be appreciated.

  • default discord avatar
    2 months ago

    You could maybe trigger it prior to build?

  • default discord avatar
    2 months ago

    @imcorfitz thank you that fixed it!!

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!


Connect with the Payload Community on Discord



Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.