简介/API 参考文档/next.config.js 配置选项/poweredByHeaderpoweredByHeader Next.js 默认会在响应中添加 x-powered-by 头部信息。如需禁用此功能,请打开 next.config.js 文件并关闭 poweredByHeader 配置项: next.config.jsmodule.exports = { poweredByHeader: false, }pageExtensions扩展 Next.js 在解析 Pages Router 中的页面时使用的默认页面扩展名。productionBrowserSourceMaps在生产环境构建期间启用浏览器源码映射 (source map) 生成功能。