# Unable to deploy a new locale

**URL:** <https://community.prismic.io/t/unable-to-deploy-a-new-locale/19811>\
**Category:** Prismic for Content Creators\
**Tags:** nextjs, localization\
**Created:** [June 17, 2025, 1:32pm UTC](https://community.prismic.io/t/unable-to-deploy-a-new-locale/19811 "2025-06-17T13:32:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RobinPlu](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/robinplu/32/8457_2.png) [@RobinPlu](https://community.prismic.io/u/RobinPlu)\
**Post date:** [June 17, 2025, 1:32pm UTC](https://community.prismic.io/t/unable-to-deploy-a-new-locale/19811/1 "2025-06-17T13:32:23Z")

</div>

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

```auto
[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

---

<div class="post-metadata">

**Author:** ![Edu](https://avatars.discourse-cdn.com/v4/letter/e/cdc98d/32.png) [@Edu](https://community.prismic.io/u/Edu)\
**Post date:** [June 18, 2025, 10:57pm UTC](https://community.prismic.io/t/unable-to-deploy-a-new-locale/19811/2 "2025-06-18T22:57:57Z")

</div>

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:

```auto
[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.
