ENF News Bot
Automated News Bot
- Joined
- Apr 15, 2022
- Messages
- 2,591
From Wrangler 4.150.0,
Remapped stack traces show up in Workers Logs, real-time logs, Tail Workers, and Workers Issues. Source maps are applied after your Worker runs, so they don't affect CPU time, bundle size, or cold starts.
If your Worker uses a custom build, Wrangler uploads any external source maps it finds. Maps it can't resolve, such as inline
To opt out with Wrangler, set
To opt out with
Continue reading...
wrangler deploy, wrangler versions upload, and wrangler preview generate and upload source maps by default. You no longer need to set upload_source_maps to get stack traces with your original file names and line numbers.cf deploy also uploads source maps by default. With the Cloudflare Vite plugin 1.64.0 or later, Worker builds generate source maps by default, and cf deploy uploads every source map in the build output.
Remapped stack traces show up in Workers Logs, real-time logs, Tail Workers, and Workers Issues. Source maps are applied after your Worker runs, so they don't affect CPU time, bundle size, or cold starts.
If your Worker uses a custom build, Wrangler uploads any external source maps it finds. Maps it can't resolve, such as inline
data: source maps, are skipped instead of failing the upload. Set upload_source_maps to true if you'd prefer the upload to fail.To opt out with Wrangler, set
upload_source_maps to false:
Code:
{
"upload_source_maps": false
}
upload_source_maps = falseTo opt out with
cf or the Cloudflare Vite plugin, set build.sourcemap to false for your Worker's Vite environment. Refer to Disable source maps.Continue reading...