Unverified Commit 6829d7df authored by Will Binns-Smith's avatar Will Binns-Smith Committed by GitHub

Disable trace uploads with NEXT_TRACE_UPLOAD_DISABLE (#61101)

While traces are never uploaded without an explicit opt-in, this option
prevents them from being sent even when one is provided.


Closes PACK-2289
parent 21c2f858
......@@ -292,7 +292,7 @@ const nextDev: CliCommand = async (args) => {
// Starting the dev server will overwrite the `.next/trace` file, so we
// must upload the existing contents before restarting the server to
// preserve the metrics.
if (traceUploadUrl) {
if (traceUploadUrl && !process.env.NEXT_TRACE_UPLOAD_DISABLED) {
uploadTrace({
traceUploadUrl,
mode: 'dev',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment