Skip to content
Branch: master
Find file Copy path
Find file Copy path
2 contributors

Users who have contributed to this file

@timneutkens @dav-is
9 lines (5 sloc) 410 Bytes

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.

You can’t perform that action at this time.