Commit 6431c857 authored by Will Binns-Smith's avatar Will Binns-Smith

Add --experimental-server-fast-refresh CLI flag

parent 469e513c
...@@ -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.'
......
...@@ -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')
......
...@@ -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({
......
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