3e51ddb8af
* Run prettier over packages/**/*.js * Run prettier over packages/**/*.ts * Run prettier over examples * Remove tslint * Run prettier over examples * Run prettier over all markdown files * Run prettier over json files
9 lines
410 B
Markdown
9 lines
410 B
Markdown
# Using `next export` with `target` not set to `server`
|
||
|
||
#### Why This Error Occurred
|
||
|
||
Next.js can only handle exporting 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
|
||
|
||
Change `target` to `server`, run `next build`, then run `next export` again.
|