rsnext/errors/invalid-assetprefix.mdx
Delba de Oliveira 44d1a1cb15
docs: Migrate error messages to MDX and App Router. (#52038)
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
2023-07-05 06:11:16 -07:00

19 lines
317 B
Text

---
title: 'Invalid `assetPrefix`'
---
## Why This Error Occurred
The value of `assetPrefix` in `next.config.js` is set to something that is not a `string`.
## Possible Ways to Fix It
Ensure that `assetPrefix` is a `string`.
Example:
```js filename="next.config.js"
module.exports = {
assetPrefix: '/',
}
```