フロントエンド開発の先端を突っ走るNext.js
next.js アプリの初期化( npx create-next-app@latest <アプリ名> ) または yarn create next-app <アプリ名> または bun create next-app <アプリ名> )

Next.js production mode でログを取得したい

現時点でまだオプションとしては存在しておらず、以下のような方法をよく見かけます

● middlewareで行う方法

https://codeparrot.ai/blogs/nextjs-middleware-simple-guide-to-control-requests

● パッチを当てる方法

https://www.tomups.com/posts/log-nextjs-request-response-as-json/

No.2583
01/29 13:54

edit