silverwolf-x/project / errors /invalid-assetprefix.mdx
silverwolf-x's picture
download
raw
317 Bytes
---
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: '/',
}
```

Xet Storage Details

Size:
317 Bytes
·
Xet hash:
354a6e75d4da4571750bbb43ae15c2a03efeff60ed1873cc16f83d5f924a8e07

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