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
6431c857
Commit
6431c857
authored
Jan 30, 2026
by
Will Binns-Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add --experimental-server-fast-refresh CLI flag
parent
469e513c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
next.ts
packages/next/src/bin/next.ts
+4
-0
next-dev.ts
packages/next/src/cli/next-dev.ts
+2
-0
start-server.ts
packages/next/src/server/lib/start-server.ts
+1
-0
No files found.
packages/next/src/bin/next.ts
View file @
6431c857
...
@@ -309,6 +309,10 @@ program
...
@@ -309,6 +309,10 @@ program
'--experimental-https-ca, <path>'
,
'--experimental-https-ca, <path>'
,
'Path to a HTTPS certificate authority file.'
'Path to a HTTPS certificate authority file.'
)
)
.
option
(
'--experimental-server-fast-refresh'
,
'Enable experimental server-side Fast Refresh.'
)
.
option
(
.
option
(
'--experimental-upload-trace, <traceUrl>'
,
'--experimental-upload-trace, <traceUrl>'
,
'Reports a subset of the debugging trace to a remote HTTP URL. Includes sensitive data.'
'Reports a subset of the debugging trace to a remote HTTP URL. Includes sensitive data.'
...
...
packages/next/src/cli/next-dev.ts
View file @
6431c857
...
@@ -55,6 +55,7 @@ export type NextDevOptions = {
...
@@ -55,6 +55,7 @@ export type NextDevOptions = {
experimentalUploadTrace
?:
string
experimentalUploadTrace
?:
string
experimentalNextConfigStripTypes
?:
boolean
experimentalNextConfigStripTypes
?:
boolean
experimentalCpuProf
?:
boolean
experimentalCpuProf
?:
boolean
experimentalServerFastRefresh
?:
boolean
}
}
type
PortSource
=
'cli'
|
'default'
|
'env'
type
PortSource
=
'cli'
|
'default'
|
'env'
...
@@ -253,6 +254,7 @@ const nextDev = async (
...
@@ -253,6 +254,7 @@ const nextDev = async (
allowRetry
,
allowRetry
,
isDev
:
true
,
isDev
:
true
,
hostname
:
host
,
hostname
:
host
,
experimentalServerFastRefresh
:
options
.
experimentalServerFastRefresh
,
}
}
const
startServerPath
=
require
.
resolve
(
'../server/lib/start-server'
)
const
startServerPath
=
require
.
resolve
(
'../server/lib/start-server'
)
...
...
packages/next/src/server/lib/start-server.ts
View file @
6431c857
...
@@ -123,6 +123,7 @@ export interface StartServerOptions {
...
@@ -123,6 +123,7 @@ export interface StartServerOptions {
keepAliveTimeout
?:
number
keepAliveTimeout
?:
number
// this is dev-server only
// this is dev-server only
selfSignedCertificate
?:
SelfSignedCertificate
selfSignedCertificate
?:
SelfSignedCertificate
experimentalServerFastRefresh
?:
boolean
}
}
export
async
function
getRequestHandlers
({
export
async
function
getRequestHandlers
({
...
...
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