Skip to content

Commit

Permalink
Add missing config vars into Webpack cache key (#49663)
Browse files Browse the repository at this point in the history
Add missing `serverActions` and `typedRoutes` to the Webpack config
cache key as they can affect the build assets.
  • Loading branch information
shuding committed May 11, 2023
1 parent f169c32 commit 1a867bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/next/src/build/webpack-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2489,6 +2489,8 @@ export default async function getBaseWebpackConfig(
optimizeCss: config.experimental.optimizeCss,
nextScriptWorkers: config.experimental.nextScriptWorkers,
scrollRestoration: config.experimental.scrollRestoration,
serverActions: config.experimental.serverActions,
typedRoutes: config.experimental.typedRoutes,
basePath: config.basePath,
pageEnv: config.experimental.pageEnv,
excludeDefaultMomentLocales: config.excludeDefaultMomentLocales,
Expand Down

0 comments on commit 1a867bb

Please sign in to comment.