Skip to content

Commit

Permalink
disable optimizeFonts for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
prateekbh committed Aug 10, 2020
1 parent 8113795 commit bc8f9d9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/next/next-server/server/next-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,11 @@ export default class Server {
customServer: customServer === true ? true : undefined,
ampOptimizerConfig: this.nextConfig.experimental.amp?.optimizer,
basePath: this.nextConfig.basePath,
optimizeFonts: this.nextConfig.experimental.optimizeFonts,
fontManifest: this.nextConfig.experimental.optimizeFonts
? requireFontManifest(this.distDir, this._isLikeServerless)
: null,
optimizeFonts: this.nextConfig.experimental.optimizeFonts && !dev,
fontManifest:
this.nextConfig.experimental.optimizeFonts && !dev
? requireFontManifest(this.distDir, this._isLikeServerless)
: null,
optimizeImages: this.nextConfig.experimental.optimizeImages,
}

Expand Down

0 comments on commit bc8f9d9

Please sign in to comment.