logging
你可以配置日志记录级别以及在开发模式下运行 Next.js 时是否将完整 URL 记录到控制台。
¥You can configure the logging level and whether the full URL is logged to the console when running Next.js in development mode.
目前,logging
仅适用于使用 fetch
API 获取数据。它尚未应用于 Next.js 内的其他日志。
¥Currently, logging
only applies to data fetching using the fetch
API. It does not yet apply to other logs inside of Next.js.
module.exports = {
logging: {
fetches: {
fullUrl: true,
},
},
}