7時間前
※ この募集は締め切られました。
Next.jsのAmplifyへのデプロイフォロー
NextjsのフロントエンドプロジェクトをAmplifyへデプロイ出来ず困っています。
next build && next export
してビルドしたいのですが、next exportで以下のエラーになってしまいます。
info - using build directory: /xx/frontend/.next
info - Copying "static build" directory
info - No "exportPathMap" found in "/xx/frontend/next.config.js". Generating map from "./pages"
Error: Image Optimization using Next.js' default loader is not compatible with `next export`.
Possible solutions:
- Use `next start` to run a server, which includes the Image Optimization API.
- Use any provider which supports Image Optimization (like Vercel).
- Configure a third-party loader in `next.config.js`.
- Use the `loader` prop for `next/image`.
Imgをimgに変える方法でない、別の方法での解決策を教えていただきたいです。