Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
332720a3
Unverified
Commit
332720a3
authored
Jan 30, 2024
by
Will Binns-Smith
Committed by
GitHub
Jan 30, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Always respect NEXT_TRACE_UPLOAD_DISABLED (#61402)
Closes PACK-2326
parent
9c35f21f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
next-dev.ts
packages/next/src/cli/next-dev.ts
+5
-2
No files found.
packages/next/src/cli/next-dev.ts
View file @
332720a3
...
@@ -205,7 +205,10 @@ const nextDev: CliCommand = async (args) => {
...
@@ -205,7 +205,10 @@ const nextDev: CliCommand = async (args) => {
const
isExperimentalTestProxy
=
args
[
'--experimental-test-proxy'
]
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'
]
traceUploadUrl
=
args
[
'--experimental-upload-trace'
]
}
}
...
@@ -292,7 +295,7 @@ const nextDev: CliCommand = async (args) => {
...
@@ -292,7 +295,7 @@ const nextDev: CliCommand = async (args) => {
// Starting the dev server will overwrite the `.next/trace` file, so we
// Starting the dev server will overwrite the `.next/trace` file, so we
// must upload the existing contents before restarting the server to
// must upload the existing contents before restarting the server to
// preserve the metrics.
// preserve the metrics.
if
(
traceUploadUrl
&&
!
process
.
env
.
NEXT_TRACE_UPLOAD_DISABLED
)
{
if
(
traceUploadUrl
)
{
uploadTrace
({
uploadTrace
({
traceUploadUrl
,
traceUploadUrl
,
mode
:
'dev'
,
mode
:
'dev'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment