Unable to deploy a new locale

We try to publish a new locale for our website.
Plan is to not release new locales pages yet because they're not ready, but we need them to get the content done.
Except that now, it fucked up everything and we cannot deploy anymore throwing deploy error every time

Impacted feature

Publishing new pages / modifications etc...

What steps have you taken to resolve this issue already?

everything that I can

Errors

[12:42:56.428] 
[12:42:56.428] Error occurred prerendering page "/nl-be/404". Read more: https://nextjs.org/docs/messages/prerender-error
[12:42:56.428] 
[12:42:56.428] Error: No documents were returned
[12:42:56.428]     at Client.getFirst (file:///vercel/path0/node_modules/@prismicio/client/dist/createClient.js:259:11)
[12:42:56.429]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[12:42:56.429]     at async Client.getSingle (file:///vercel/path0/node_modules/@prismicio/client/dist/createClient.js:515:12)
[12:42:56.429]     at async l.getHeader (/vercel/path0/.next/server/chunks/5330.js:1:22879)
[12:42:56.429]     at async Promise.all (index 0)
[12:42:56.430]     at async S (/vercel/path0/.next/server/pages/404.js:1:4419)
[12:42:56.430]     at async e3 (/vercel/path0/node_modules/next/dist/compiled/next-server/pages.runtime.prod.js:25:3907)
[12:42:56.430]     at async exportPages (/vercel/path0/node_modules/next/dist/export/routes/pages.js:84:28)
[12:42:56.430]     at async exportPageImpl (/vercel/path0/node_modules/next/dist/export/worker.js:205:16)
[12:42:56.430]     at async Span.traceAsyncFn (/vercel/path0/node_modules/next/dist/trace/trace.js:154:20)
[12:42:56.565] 
[12:42:56.566] Error occurred prerendering page "/nl-be". Read more: https://nextjs.org/docs/messages/prerender-error
[12:42:56.566] 
[12:42:56.566] Error: No documents were returned
[12:42:56.566]     at Client.getFirst (file:///vercel/path0/node_modules/@prismicio/client/dist/createClient.js:259:11)
[12:42:56.566]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[12:42:56.566]     at async Client.getSingle (file:///vercel/path0/node_modules/@prismicio/client/dist/createClient.js:515:12)
[12:42:56.567]     at async l.getHome (/vercel/path0/.next/server/chunks/5330.js:7:257)
[12:42:56.567]     at async Promise.all (index 1)
[12:42:56.567]     at async P (/vercel/path0/.next/server/pages/index.js:1:1759)
[12:42:56.567]     at async e3 (/vercel/path0/node_modules/next/dist/compiled/next-server/pages.runtime.prod.js:25:3907)
[12:42:56.568]     at async exportPages (/vercel/path0/node_modules/next/dist/export/routes/pages.js:84:28)
[12:42:56.568]     at async exportPageImpl (/vercel/path0/node_modules/next/dist/export/worker.js:205:16)
[12:42:56.568]     at async Span.traceAsyncFn (/vercel/path0/node_modules/next/dist/trace/trace.js:154:20)
[12:42:56.594]  ✓ Generating static pages (222/222)
[12:42:56.605] 
[12:42:56.607] > Export encountered errors on following paths:
[12:42:56.607] 	/404: /nl-be/404
[12:42:56.607] 	/: /nl-be
[12:42:56.639] Error: Command "npm run build" exited with 1

Your Role

Product, partnering with Marketers and a Software Engineer for the deployment part

Steps to reproduce

Create locale, create pages, keep them in draft, make modification on an existing page on another locale, try to publish, no publish

Hello,

Welcome to the community!

You can define a route but will need to handle empty content.

You can see that here in your logs:

[12:42:56.566] Error occurred prerendering page "/nl-be". Read more: https://nextjs.org/docs/messages/prerender-error
[12:42:56.566] 
[12:42:56.566] Error: No documents were returned

You can have a new locale (route) but you'll want to skip fetching the content from that locale or have some sort of fallback page.