Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Re-generate types in next?

default discord avatar
gregwhitworthlast year
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
    imcorfitzlast year

    You could maybe trigger it prior to build?

    Screenshot_2023-07-24_at_09.11.29.png
  • default discord avatar
    gregwhitworthlast year

    @imcorfitz thank you that fixed it!!

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team..