Re-generate types in next?

default discord avatar
gregwhitworth
2 months ago
2

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.



Thanks.



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
    imcorfitz
    2 months ago

    You could maybe trigger it prior to build?

    Screenshot_2023-07-24_at_09.11.29.png
  • default discord avatar
    gregwhitworth
    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!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

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