I have this setup where I'm rebuilding a Nextjs site whenever a collection is published.
There are events when users create a document and publish it without updating fields for other locales (because the publish button allows them to, even when the required fields are empty).
This results in failure of the build and the previous build also gets crashed causing the site to give random errors of course.
In this context, what would be the best way to just ensure validation of fields for all available locales before allowing to publish the document?
Hey, I asked pretty the same question here:https://discord.com/channels/967097582721572934/1116318117023457401
but I'm gonna use it for different purpose.
I do wonder why your build fails? If your collection is not fully translated, it will automatically fallback to default language and return all the data as usual.
is exactly what I needed. Thank you so much @nikich 🤩
You’re welcome, @face44
Don’t forget to tag question as answered.