Skip to content

Commit

Permalink
fix streaming case
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed May 4, 2022
1 parent 4c6c362 commit 396e859
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export function getRender({
}

const server = new WebServer({
dev,
conf: config,
minimalMode: true,
webServerConfig: {
Expand Down
1 change: 0 additions & 1 deletion packages/next/server/base-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,6 @@ export default abstract class Server<ServerOptions extends Options = Options> {
? this.nextConfig.crossOrigin
: undefined,
reactRoot: this.nextConfig.experimental.reactRoot === true,
dev,
}

// Only the `publicRuntimeConfig` key is exposed to the client side
Expand Down
1 change: 1 addition & 0 deletions packages/next/server/dev/next-dev-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ export default class DevServer extends Server {

constructor(options: Options) {
super({ ...options, dev: true })
this.renderOpts.dev = true
;(this.renderOpts as any).ErrorDebug = ReactDevOverlay
this.devReady = new Promise((resolve) => {
this.setDevReady = resolve
Expand Down

0 comments on commit 396e859

Please sign in to comment.