相关疑难解决方法(0)

在“next.config.js”中找不到“exportPathMap”。从“./pages”生成地图

将 Next.js 部署到 Netlify 时出现此错误。

Error: Image Optimization using Next.js default loader is not compatible with `next export`.

Possible solutions:

6:47:15 AM:   - Use `next start`, which starts the Image Optimization API.
6:47:15 AM:   - Use Vercel to deploy, which supports Image Optimization.
6:47:15 AM:   - Configure a third-party loader in `next.config.js`.
6:47:15 AM:  -  Read more: https://err.sh/next.js/export-image-api.
6:47:15 AM:   at exportApp (/opt/build/repo/node_modules/next/dist/export/index.js:14:712)
Run Code Online (Sandbox Code Playgroud)

部署到 Vercel 时不会出现此问题。

deployment reactjs netlify next.js

6
推荐指数
4
解决办法
5133
查看次数

标签 统计

deployment ×1

netlify ×1

next.js ×1

reactjs ×1