parent
9c35f21f38
commit
332720a3e9
1 changed files with 5 additions and 2 deletions
|
@ -205,7 +205,10 @@ const nextDev: CliCommand = async (args) => {
|
|||
|
||||
const isExperimentalTestProxy = args['--experimental-test-proxy']
|
||||
|
||||
if (args['--experimental-upload-trace']) {
|
||||
if (
|
||||
args['--experimental-upload-trace'] &&
|
||||
!process.env.NEXT_TRACE_UPLOAD_DISABLED
|
||||
) {
|
||||
traceUploadUrl = args['--experimental-upload-trace']
|
||||
}
|
||||
|
||||
|
@ -292,7 +295,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 && !process.env.NEXT_TRACE_UPLOAD_DISABLED) {
|
||||
if (traceUploadUrl) {
|
||||
uploadTrace({
|
||||
traceUploadUrl,
|
||||
mode: 'dev',
|
||||
|
|
Loading…
Reference in a new issue