本页还没有译文
本页 6 段还没译成简体中文,下面显示的是英文原文。productionBrowserSourceMaps
还没翻译译自英文(nextjs.org)本页 6 段都还没译
Source Maps are enabled by default during development. During production builds, they are disabled to prevent you leaking your source on the client, unless you specifically opt-in with the configuration flag.
Next.js provides a configuration flag you can use to enable browser source map generation during the production build:
next.config.js
module.exports = {
productionBrowserSourceMaps: true,
}When the productionBrowserSourceMaps option is enabled, the source maps will be output in the same directory as the JavaScript files. Next.js will automatically serve these files when requested.
- Adding source maps can increase
next buildtime - Increases memory usage during
next build
AI 翻译查看英文原文