2023-07-05 15:11:16 +02:00
|
|
|
---
|
|
|
|
title: Could not find a production build
|
|
|
|
---
|
2020-12-08 16:16:56 +01:00
|
|
|
|
2023-07-05 15:11:16 +02:00
|
|
|
## Why This Error Occurred
|
2020-12-08 16:16:56 +01:00
|
|
|
|
|
|
|
When running `next start` or a custom server in production mode a production build is needed.
|
|
|
|
|
2023-07-05 15:11:16 +02:00
|
|
|
## Possible Ways to Fix It
|
2020-12-08 16:16:56 +01:00
|
|
|
|
|
|
|
- Run `next build` to create a production build before booting up the production server.
|
|
|
|
- If your intention was to run the development server run `next dev` instead.
|