Skip to content

Commit

Permalink
override runtime var
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Jan 11, 2022
1 parent 6fe35eb commit c228bbf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/next/server/base-server.ts
Expand Up @@ -344,6 +344,9 @@ export default abstract class Server {
if (this.renderOpts.optimizeCss) {
process.env.__NEXT_OPTIMIZE_CSS = JSON.stringify(true)
}
if (this.nextConfig.experimental.serverComponents) {
process.env.__NEXT_RSC = JSON.stringify(true)
}
}

public logError(err: Error): void {
Expand Down

0 comments on commit c228bbf

Please sign in to comment.