Skip to content

Commit

Permalink
Reorder condition
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Sep 14, 2023
1 parent aef6af8 commit fb9bae1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/next/src/server/next-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1888,12 +1888,12 @@ export default class NextNodeServer extends BaseServer {
}

protected get serverDistDir(): string {
if (!this._serverDistDir) {
const serverDistDir = join(this.distDir, SERVER_DIRECTORY)
this._serverDistDir = serverDistDir
return serverDistDir
if (this._serverDistDir) {
return this._serverDistDir
}
return this._serverDistDir
const serverDistDir = join(this.distDir, SERVER_DIRECTORY)
this._serverDistDir = serverDistDir
return serverDistDir
}

protected async getFallbackErrorComponents(): Promise<LoadComponentsReturnType | null> {
Expand Down

0 comments on commit fb9bae1

Please sign in to comment.