mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
44d1a1cb15
This PR is part of a larger effort to migrate error messages to MDX and use App Router: https://github.com/vercel/front/pull/23459
12 lines
466 B
Plaintext
12 lines
466 B
Plaintext
---
|
||
title: 'Using `next start` with `target` not set to `server`'
|
||
---
|
||
|
||
## Why This Error Occurred
|
||
|
||
Next.js can only handle running a server when the `target` is set to `server` (this is the default value). A serverless build, for instance, has no handler for requests–this is usually implemented by a hosting provider.
|
||
|
||
## Possible Ways to Fix It
|
||
|
||
Use a different handler than `next start` when testing a serverless **production** build, otherwise use `next dev`.
|