You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
⚠ Statically exporting a Next.js application via `next export` disables API routes and middleware.
This command is meant for static-only hosts, and is not necessary to make your application static.
Pages in your application without server-side data dependencies will be automatically statically exported by `next build`, including pages powered by `getStaticProps`.
Learn more: https://nextjs.org/docs/messages/api-routes-static-export
⨯ API Routes cannot be used with "output: export". See more info here: https://nextjs.org/docs/advanced-features/static-html-export
一応、動作には問題ないが、
next.config.js
において、output: export
オプションを指定して静的HTMLエクスポートを行っている場合にはAPI Routesが利用できないが、src/api
配下にファイルを置いているからエラーが出ていると思われるRe:gretと連携することを考えるとこのオプションは適切でない可能性?
The text was updated successfully, but these errors were encountered: