---
title: Could not find a production build
url: "https://nextjs.org/docs/messages/next-export-no-build-id"
docs_index: /docs/llms.txt
---



## Why This Error Occurred

When running `next export` a production build is needed.

## Possible Ways to Fix It

- Run `next build` to create a production build before running `next export`.
- If your intention was to run the development server run `next dev` instead.
