silverwolf-x/project / errors /can-not-output-to-static.mdx
silverwolf-x's picture
download
raw
476 Bytes
---
title: Cannot output to /static
---
## Why This Error Occurred
Either you set `distDir` to `static` in your `next.config.js` or during `next export` you tried to export to the `static` directory.
This is not allowed because `static` 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
- [Static file serving docs](/docs/pages/api-reference/file-conventions/public-folder)

Xet Storage Details

Size:
476 Bytes
·
Xet hash:
27f696d82c5b83b7a92d8cca2bc622394770166bfbcc76380aa275d4f74d2535

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.