Skip to content

Commit

Permalink
Add request-async-storage to the shared layer (#49470)
Browse files Browse the repository at this point in the history
This should fix the `requestAsyncStorage not available` error. [Related
report](https://vercel.slack.com/archives/C03S8ED1DKM/p1683553422581859).
  • Loading branch information
shuding committed May 8, 2023
1 parent 5b5c4c3 commit 7730ee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/src/build/webpack-config.ts
Expand Up @@ -89,7 +89,7 @@ const babelIncludeRegexes: RegExp[] = [
const reactPackagesRegex = /^(react|react-dom|react-server-dom-webpack)($|\/)/

const asyncStoragesRegex =
/next[\\/]dist[\\/]client[\\/]components[\\/](static-generation-async-storage|action-async-storage)/
/next[\\/]dist[\\/]client[\\/]components[\\/](static-generation-async-storage|action-async-storage|request-async-storage)/

const mainFieldsPerCompiler: Record<CompilerNameValues, string[]> = {
[COMPILER_NAMES.server]: ['main', 'module'],
Expand Down

0 comments on commit 7730ee1

Please sign in to comment.