invalid-assetprefix.mdx


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:

module.exports = {
  assetPrefix: '/',
}

Rendered from the public repository vercel/next.js on GitHub; content belongs to its authors. Cached for up to an hour.

errors/invalid-assetprefix.mdx · vercel/next.js | Docs MD