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
'--experimental-https-ca, <path>',
'Path to a HTTPS certificate authority file.'
)
.option(
'--experimental-server-fast-refresh',
'Enable experimental server-side Fast Refresh.'
)
.option(
'--experimental-upload-trace, <traceUrl>',
'Reports a subset of the debugging trace to a remote HTTP URL. Includes sensitive data.'
......
......@@ -55,6 +55,7 @@ export type NextDevOptions = {
experimentalUploadTrace?: string
experimentalNextConfigStripTypes?: boolean
experimentalCpuProf?: boolean
experimentalServerFastRefresh?: boolean
}
type PortSource = 'cli' | 'default' | 'env'
......@@ -253,6 +254,7 @@ const nextDev = async (
allowRetry,
isDev: true,
hostname: host,
experimentalServerFastRefresh: options.experimentalServerFastRefresh,
}
const startServerPath = require.resolve('../server/lib/start-server')
......
......@@ -123,6 +123,7 @@ export interface StartServerOptions {
keepAliveTimeout?: number
// this is dev-server only
selfSignedCertificate?: SelfSignedCertificate
experimentalServerFastRefresh?: boolean
}
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