Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 476 Bytes

File metadata and controls

17 lines (10 loc) · 476 Bytes
title Cannot output to /public

Why This Error Occurred

Either you set distDir to public in your next.config.js or during next export you tried to export to the public directory.

This is not allowed because public is used by Next.js to serve static assets.

Possible Ways to Fix It

Use a different distDir or export to a different folder.

Useful Links