Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix typo in server/config.ts #62795

Merged
merged 3 commits into from
Mar 11, 2024
Merged

fix typo in server/config.ts #62795

merged 3 commits into from
Mar 11, 2024

Conversation

apostolos
Copy link
Contributor

lager -> larger

Copy link

vercel bot commented Mar 3, 2024

Notifying the following users due to files changed in this PR based on this repo's notify modifiers:

@timneutkens, @ijjk, @shuding, @huozhi:

packages/next/src/server/config.ts

Copy link

vercel bot commented Mar 3, 2024

Notifying the following users due to files changed in this PR based on this repo's notify modifiers:

@timneutkens, @ijjk, @shuding, @huozhi:

packages/next/src/server/config.ts

@ijjk ijjk enabled auto-merge (squash) March 4, 2024 23:22
@ijjk
Copy link
Member

ijjk commented Mar 4, 2024

Failing test suites

Commit: dbad4da

pnpm test-start test/e2e/app-dir/actions/app-action-size-limit-invalid.test.ts

  • app-dir action size limit invalid config > should error if serverActions.bodySizeLimit config is a negative number
  • app-dir action size limit invalid config > should error if serverActions.bodySizeLimit config is invalid
  • app-dir action size limit invalid config > should error if serverActions.bodySizeLimit config is a negative size
Expand output

● app-dir action size limit invalid config › should error if serverActions.bodySizeLimit config is a negative number

expect(received).toContain(expected) // indexOf

Expected substring: "Server Actions Size Limit must be a valid number or filesize format lager than 1MB"
Received string:    "yarn run v1.22.19
$ /tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.bin/next build
   ▲ Next.js 14.2.0-canary.8·
   Creating an optimized production build ...
 ✓ Compiled successfully
   Linting and checking validity of types ...·
   We detected TypeScript in your project and created a tsconfig.json file for you.
   Collecting page data ...
true
true
true
true
 ⚠ Using edge runtime on a page currently disables static generation for that page
true
   Generating static pages (0/37) ...
true
   Generating static pages (9/37)··
   Generating static pages (18/37)··
true
true
true
   Generating static pages (27/37)··
 ✓ Generating static pages (37/37)·
   Finalizing page optimization ...
   Collecting build traces ...·
Route (app)                                     Size     First Load JS
┌ ○ /_not-found                                 186 B          86.5 kB
├ ○ /catching-error                             667 B            87 kB
├ ○ /client                                     1.06 kB        87.4 kB
├ ● /client-static/[[...path]]                  393 B          86.7 kB
├   └ /client-static/asdf
├ ○ /client/action-return-client-component      608 B          86.9 kB
├ ℇ /client/edge                                938 B          87.3 kB
├ ○ /client/form-state                          650 B            87 kB
├ ○ /client/form-state/page-2                   649 B            87 kB
├ ○ /dynamic-csr                                922 B          87.3 kB
├ ℇ /dynamic-csr/edge                           939 B          87.3 kB
├ ○ /encryption                                 186 B          86.5 kB
├ ○ /file                                       381 B          86.7 kB
├ λ /handler                                    0 B                0 B
├ ○ /header                                     706 B            87 kB
├ ℇ /header/edge                                707 B            87 kB
├ ○ /interception-routes                        243 B          93.4 kB
├ λ /interception-routes/(.)test                184 B          86.5 kB
├ ○ /interception-routes/test                   186 B          86.5 kB
├ λ /mutate-cookie                              243 B          93.4 kB
├ λ /mutate-cookie/page-2                       242 B          93.4 kB
├ ○ /no-caching-in-actions                      621 B            87 kB
├ ○ /no-caching-in-actions/force-cache          622 B            87 kB
├ ○ /no-caching-in-actions/revalidate           620 B            87 kB
├ λ /redirect-target                            185 B          86.5 kB
├ ○ /redirects                                  186 B          86.5 kB
├ λ /redirects/action-redirect                  184 B          86.5 kB
├ λ /redirects/action-redirect/redirect-target  186 B          86.5 kB
├ λ /redirects/api-redirect                     0 B                0 B
├ λ /redirects/api-redirect-307                 0 B                0 B
├ λ /redirects/api-redirect-308                 0 B                0 B
├ λ /redirects/api-redirect-permanent           0 B                0 B
├ λ /revalidate                                 246 B          93.4 kB
├ λ /revalidate-2                               243 B          93.4 kB
├ ○ /revalidate-multiple                        185 B          86.5 kB
├ ○ /server                                     833 B          87.2 kB
├ ○ /server/action-return-client-component      466 B          86.8 kB
├ ℇ /server/edge                                444 B          86.8 kB
├ ○ /shared                                     500 B          86.8 kB
├ ○ /test                                       243 B          93.4 kB
└ ○ /use-transition                             567 B          86.9 kB
+ First Load JS shared by all                   86.3 kB
  ├ chunks/5466-98564c3487ab1890.js             30.6 kB
  ├ chunks/899b3e80-f4065b1c23e89eaf.js         53.7 kB
  └ other shared chunks (total)                 2.01 kB··
ƒ Middleware                                    27.2 kB·
○  (Static)        prerendered as static content
●  (SSG)           prerendered as static HTML (uses getStaticProps)
λ  (Dynamic)       server-rendered on demand using Node.js
ℇ  (Edge Runtime)  server-rendered on demand using the Edge Runtime·
Done in 27.50s.
yarn run v1.22.19
$ /tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.bin/next start
   ▲ Next.js 14.2.0-canary.8
   - Local:        http://localhost:38543··
> Build error occurred
Error: Server Actions Size Limit must be a valid number or filesize format larger than 1MB: https://nextjs.org/docs/app/api-reference/functions/server-actions#size-limitation

  37 |         await next.build()
  38 |       } catch {}
> 39 |       expect(next.cliOutput).toContain(CONFIG_ERROR)
     |                              ^
  40 |     })
  41 |
  42 |     it('should error if serverActions.bodySizeLimit config is invalid', async function () {

  at assignDefaults (../../../../../../tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.pnpm/file+..+next-repo-f782dc9045bfa1940520b3e28192920759d8db739d422189510e45a23b664a79+packages+n_2o45iqlfpyrxxrrthponvo7cvi/node_modules/next/dist/server/config.js:420:19)
  at loadConfig (../../../../../../tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.pnpm/file+..+next-repo-f782dc9045bfa1940520b3e28192920759d8db739d422189510e45a23b664a79+packages+n_2o45iqlfpyrxxrrthponvo7cvi/node_modules/next/dist/server/config.js:776:32)
  at async Span.traceAsyncFn (../../../../../../tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.pnpm/file+..+next-repo-f782dc9045bfa1940520b3e28192920759d8db739d422189510e45a23b664a79+packages+n_2o45iqlfpyrxxrrthponvo7cvi/node_modules/next/dist/trace/trace.js:151:20)
  at ../async /tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.pnpm/file+..+next-repo-f782dc9045bfa1940520b3e28192920759d8db739d422189510e45a23b664a79+packages+n_2o45iqlfpyrxxrrthponvo7cvi/node_modules/next/dist/build/index.js:356:28
  at async Span.traceAsyncFn (../../../../../../tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.pnpm/file+..+next-repo-f782dc9045bfa1940520b3e28192920759d8db739d422189510e45a23b664a79+packages+n_2o45iqlfpyrxxrrthponvo7cvi/node_modules/next/dist/trace/trace.js:151:20)
  at async build (../../../../../../tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.pnpm/file+..+next-repo-f782dc9045bfa1940520b3e28192920759d8db739d422189510e45a23b664a79+packages+n_2o45iqlfpyrxxrrthponvo7cvi/node_modules/next/dist/build/index.js:350:9)
  "
  at Object.toContain (e2e/app-dir/actions/app-action-size-limit-invalid.test.ts:39:30)

● app-dir action size limit invalid config › should error if serverActions.bodySizeLimit config is invalid

expect(received).toContain(expected) // indexOf

Expected substring: "Server Actions Size Limit must be a valid number or filesize format lager than 1MB"
Received string:    "yarn run v1.22.19
$ /tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.bin/next build
   ▲ Next.js 14.2.0-canary.8·
   Creating an optimized production build ...
 ✓ Compiled successfully
   Linting and checking validity of types ...·
   We detected TypeScript in your project and created a tsconfig.json file for you.
   Collecting page data ...
true
true
true
true
 ⚠ Using edge runtime on a page currently disables static generation for that page
true
   Generating static pages (0/37) ...
true
   Generating static pages (9/37)··
   Generating static pages (18/37)··
true
true
true
   Generating static pages (27/37)··
 ✓ Generating static pages (37/37)·
   Finalizing page optimization ...
   Collecting build traces ...·
Route (app)                                     Size     First Load JS
┌ ○ /_not-found                                 186 B          86.5 kB
├ ○ /catching-error                             667 B            87 kB
├ ○ /client                                     1.06 kB        87.4 kB
├ ● /client-static/[[...path]]                  393 B          86.7 kB
├   └ /client-static/asdf
├ ○ /client/action-return-client-component      608 B          86.9 kB
├ ℇ /client/edge                                938 B          87.3 kB
├ ○ /client/form-state                          650 B            87 kB
├ ○ /client/form-state/page-2                   649 B            87 kB
├ ○ /dynamic-csr                                922 B          87.3 kB
├ ℇ /dynamic-csr/edge                           939 B          87.3 kB
├ ○ /encryption                                 186 B          86.5 kB
├ ○ /file                                       381 B          86.7 kB
├ λ /handler                                    0 B                0 B
├ ○ /header                                     706 B            87 kB
├ ℇ /header/edge                                707 B            87 kB
├ ○ /interception-routes                        243 B          93.4 kB
├ λ /interception-routes/(.)test                184 B          86.5 kB
├ ○ /interception-routes/test                   186 B          86.5 kB
├ λ /mutate-cookie                              243 B          93.4 kB
├ λ /mutate-cookie/page-2                       242 B          93.4 kB
├ ○ /no-caching-in-actions                      621 B            87 kB
├ ○ /no-caching-in-actions/force-cache          622 B            87 kB
├ ○ /no-caching-in-actions/revalidate           620 B            87 kB
├ λ /redirect-target                            185 B          86.5 kB
├ ○ /redirects                                  186 B          86.5 kB
├ λ /redirects/action-redirect                  184 B          86.5 kB
├ λ /redirects/action-redirect/redirect-target  186 B          86.5 kB
├ λ /redirects/api-redirect                     0 B                0 B
├ λ /redirects/api-redirect-307                 0 B                0 B
├ λ /redirects/api-redirect-308                 0 B                0 B
├ λ /redirects/api-redirect-permanent           0 B                0 B
├ λ /revalidate                                 246 B          93.4 kB
├ λ /revalidate-2                               243 B          93.4 kB
├ ○ /revalidate-multiple                        185 B          86.5 kB
├ ○ /server                                     833 B          87.2 kB
├ ○ /server/action-return-client-component      466 B          86.8 kB
├ ℇ /server/edge                                444 B          86.8 kB
├ ○ /shared                                     500 B          86.8 kB
├ ○ /test                                       243 B          93.4 kB
└ ○ /use-transition                             567 B          86.9 kB
+ First Load JS shared by all                   86.3 kB
  ├ chunks/5466-98564c3487ab1890.js             30.6 kB
  ├ chunks/899b3e80-f4065b1c23e89eaf.js         53.7 kB
  └ other shared chunks (total)                 2.01 kB··
ƒ Middleware                                    27.2 kB·
○  (Static)        prerendered as static content
●  (SSG)           prerendered as static HTML (uses getStaticProps)
λ  (Dynamic)       server-rendered on demand using Node.js
ℇ  (Edge Runtime)  server-rendered on demand using the Edge Runtime·
Done in 27.50s.
yarn run v1.22.19
$ /tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.bin/next start
   ▲ Next.js 14.2.0-canary.8
   - Local:        http://localhost:38543··
> Build error occurred
Error: Server Actions Size Limit must be a valid number or filesize format larger than 1MB: https://nextjs.org/docs/app/api-reference/functions/server-actions#size-limitation

  55 |         await next.build()
  56 |       } catch {}
> 57 |       expect(next.cliOutput).toContain(CONFIG_ERROR)
     |                              ^
  58 |     })
  59 |
  60 |     it('should error if serverActions.bodySizeLimit config is a negative size', async function () {

  at assignDefaults (../../../../../../tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.pnpm/file+..+next-repo-f782dc9045bfa1940520b3e28192920759d8db739d422189510e45a23b664a79+packages+n_2o45iqlfpyrxxrrthponvo7cvi/node_modules/next/dist/server/config.js:420:19)
  at loadConfig (../../../../../../tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.pnpm/file+..+next-repo-f782dc9045bfa1940520b3e28192920759d8db739d422189510e45a23b664a79+packages+n_2o45iqlfpyrxxrrthponvo7cvi/node_modules/next/dist/server/config.js:776:32)
  at async Span.traceAsyncFn (../../../../../../tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.pnpm/file+..+next-repo-f782dc9045bfa1940520b3e28192920759d8db739d422189510e45a23b664a79+packages+n_2o45iqlfpyrxxrrthponvo7cvi/node_modules/next/dist/trace/trace.js:151:20)
  at ../async /tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.pnpm/file+..+next-repo-f782dc9045bfa1940520b3e28192920759d8db739d422189510e45a23b664a79+packages+n_2o45iqlfpyrxxrrthponvo7cvi/node_modules/next/dist/build/index.js:356:28
  at async Span.traceAsyncFn (../../../../../../tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.pnpm/file+..+next-repo-f782dc9045bfa1940520b3e28192920759d8db739d422189510e45a23b664a79+packages+n_2o45iqlfpyrxxrrthponvo7cvi/node_modules/next/dist/trace/trace.js:151:20)
  at async build (../../../../../../tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.pnpm/file+..+next-repo-f782dc9045bfa1940520b3e28192920759d8db739d422189510e45a23b664a79+packages+n_2o45iqlfpyrxxrrthponvo7cvi/node_modules/next/dist/build/index.js:350:9)·
  > Build error occurred
  Error: Server Actions Size Limit must be a valid number or filesize format larger than 1MB: https://nextjs.org/docs/app/api-reference/functions/server-actions#size-limitation
  at assignDefaults (../../../../../../tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.pnpm/file+..+next-repo-f782dc9045bfa1940520b3e28192920759d8db739d422189510e45a23b664a79+packages+n_2o45iqlfpyrxxrrthponvo7cvi/node_modules/next/dist/server/config.js:420:19)
  at loadConfig (../../../../../../tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.pnpm/file+..+next-repo-f782dc9045bfa1940520b3e28192920759d8db739d422189510e45a23b664a79+packages+n_2o45iqlfpyrxxrrthponvo7cvi/node_modules/next/dist/server/config.js:776:32)
  at async Span.traceAsyncFn (../../../../../../tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.pnpm/file+..+next-repo-f782dc9045bfa1940520b3e28192920759d8db739d422189510e45a23b664a79+packages+n_2o45iqlfpyrxxrrthponvo7cvi/node_modules/next/dist/trace/trace.js:151:20)
  at ../async /tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.pnpm/file+..+next-repo-f782dc9045bfa1940520b3e28192920759d8db739d422189510e45a23b664a79+packages+n_2o45iqlfpyrxxrrthponvo7cvi/node_modules/next/dist/build/index.js:356:28
  at async Span.traceAsyncFn (../../../../../../tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.pnpm/file+..+next-repo-f782dc9045bfa1940520b3e28192920759d8db739d422189510e45a23b664a79+packages+n_2o45iqlfpyrxxrrthponvo7cvi/node_modules/next/dist/trace/trace.js:151:20)
  at async build (../../../../../../tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.pnpm/file+..+next-repo-f782dc9045bfa1940520b3e28192920759d8db739d422189510e45a23b664a79+packages+n_2o45iqlfpyrxxrrthponvo7cvi/node_modules/next/dist/build/index.js:350:9)
  "
  at Object.toContain (e2e/app-dir/actions/app-action-size-limit-invalid.test.ts:57:30)

● app-dir action size limit invalid config › should error if serverActions.bodySizeLimit config is a negative size

expect(received).toContain(expected) // indexOf

Expected substring: "Server Actions Size Limit must be a valid number or filesize format lager than 1MB"
Received string:    "yarn run v1.22.19
$ /tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.bin/next build
   ▲ Next.js 14.2.0-canary.8·
   Creating an optimized production build ...
 ✓ Compiled successfully
   Linting and checking validity of types ...·
   We detected TypeScript in your project and created a tsconfig.json file for you.
   Collecting page data ...
true
true
true
true
 ⚠ Using edge runtime on a page currently disables static generation for that page
true
   Generating static pages (0/37) ...
true
   Generating static pages (9/37)··
   Generating static pages (18/37)··
true
true
true
   Generating static pages (27/37)··
 ✓ Generating static pages (37/37)·
   Finalizing page optimization ...
   Collecting build traces ...·
Route (app)                                     Size     First Load JS
┌ ○ /_not-found                                 186 B          86.5 kB
├ ○ /catching-error                             667 B            87 kB
├ ○ /client                                     1.06 kB        87.4 kB
├ ● /client-static/[[...path]]                  393 B          86.7 kB
├   └ /client-static/asdf
├ ○ /client/action-return-client-component      608 B          86.9 kB
├ ℇ /client/edge                                938 B          87.3 kB
├ ○ /client/form-state                          650 B            87 kB
├ ○ /client/form-state/page-2                   649 B            87 kB
├ ○ /dynamic-csr                                922 B          87.3 kB
├ ℇ /dynamic-csr/edge                           939 B          87.3 kB
├ ○ /encryption                                 186 B          86.5 kB
├ ○ /file                                       381 B          86.7 kB
├ λ /handler                                    0 B                0 B
├ ○ /header                                     706 B            87 kB
├ ℇ /header/edge                                707 B            87 kB
├ ○ /interception-routes                        243 B          93.4 kB
├ λ /interception-routes/(.)test                184 B          86.5 kB
├ ○ /interception-routes/test                   186 B          86.5 kB
├ λ /mutate-cookie                              243 B          93.4 kB
├ λ /mutate-cookie/page-2                       242 B          93.4 kB
├ ○ /no-caching-in-actions                      621 B            87 kB
├ ○ /no-caching-in-actions/force-cache          622 B            87 kB
├ ○ /no-caching-in-actions/revalidate           620 B            87 kB
├ λ /redirect-target                            185 B          86.5 kB
├ ○ /redirects                                  186 B          86.5 kB
├ λ /redirects/action-redirect                  184 B          86.5 kB
├ λ /redirects/action-redirect/redirect-target  186 B          86.5 kB
├ λ /redirects/api-redirect                     0 B                0 B
├ λ /redirects/api-redirect-307                 0 B                0 B
├ λ /redirects/api-redirect-308                 0 B                0 B
├ λ /redirects/api-redirect-permanent           0 B                0 B
├ λ /revalidate                                 246 B          93.4 kB
├ λ /revalidate-2                               243 B          93.4 kB
├ ○ /revalidate-multiple                        185 B          86.5 kB
├ ○ /server                                     833 B          87.2 kB
├ ○ /server/action-return-client-component      466 B          86.8 kB
├ ℇ /server/edge                                444 B          86.8 kB
├ ○ /shared                                     500 B          86.8 kB
├ ○ /test                                       243 B          93.4 kB
└ ○ /use-transition                             567 B          86.9 kB
+ First Load JS shared by all                   86.3 kB
  ├ chunks/5466-98564c3487ab1890.js             30.6 kB
  ├ chunks/899b3e80-f4065b1c23e89eaf.js         53.7 kB
  └ other shared chunks (total)                 2.01 kB··
ƒ Middleware                                    27.2 kB·
○  (Static)        prerendered as static content
●  (SSG)           prerendered as static HTML (uses getStaticProps)
λ  (Dynamic)       server-rendered on demand using Node.js
ℇ  (Edge Runtime)  server-rendered on demand using the Edge Runtime·
Done in 27.50s.
yarn run v1.22.19
$ /tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.bin/next start
   ▲ Next.js 14.2.0-canary.8
   - Local:        http://localhost:38543··
> Build error occurred
Error: Server Actions Size Limit must be a valid number or filesize format larger than 1MB: https://nextjs.org/docs/app/api-reference/functions/server-actions#size-limitation

  73 |         await next.build()
  74 |       } catch {}
> 75 |       expect(next.cliOutput).toContain(CONFIG_ERROR)
     |                              ^
  76 |     })
  77 |
  78 |     if (!isNextDeploy) {

  at assignDefaults (../../../../../../tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.pnpm/file+..+next-repo-f782dc9045bfa1940520b3e28192920759d8db739d422189510e45a23b664a79+packages+n_2o45iqlfpyrxxrrthponvo7cvi/node_modules/next/dist/server/config.js:420:19)
  at loadConfig (../../../../../../tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.pnpm/file+..+next-repo-f782dc9045bfa1940520b3e28192920759d8db739d422189510e45a23b664a79+packages+n_2o45iqlfpyrxxrrthponvo7cvi/node_modules/next/dist/server/config.js:776:32)
  at async Span.traceAsyncFn (../../../../../../tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.pnpm/file+..+next-repo-f782dc9045bfa1940520b3e28192920759d8db739d422189510e45a23b664a79+packages+n_2o45iqlfpyrxxrrthponvo7cvi/node_modules/next/dist/trace/trace.js:151:20)
  at ../async /tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.pnpm/file+..+next-repo-f782dc9045bfa1940520b3e28192920759d8db739d422189510e45a23b664a79+packages+n_2o45iqlfpyrxxrrthponvo7cvi/node_modules/next/dist/build/index.js:356:28
  at async Span.traceAsyncFn (../../../../../../tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.pnpm/file+..+next-repo-f782dc9045bfa1940520b3e28192920759d8db739d422189510e45a23b664a79+packages+n_2o45iqlfpyrxxrrthponvo7cvi/node_modules/next/dist/trace/trace.js:151:20)
  at async build (../../../../../../tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.pnpm/file+..+next-repo-f782dc9045bfa1940520b3e28192920759d8db739d422189510e45a23b664a79+packages+n_2o45iqlfpyrxxrrthponvo7cvi/node_modules/next/dist/build/index.js:350:9)·
  > Build error occurred
  Error: Server Actions Size Limit must be a valid number or filesize format larger than 1MB: https://nextjs.org/docs/app/api-reference/functions/server-actions#size-limitation
  at assignDefaults (../../../../../../tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.pnpm/file+..+next-repo-f782dc9045bfa1940520b3e28192920759d8db739d422189510e45a23b664a79+packages+n_2o45iqlfpyrxxrrthponvo7cvi/node_modules/next/dist/server/config.js:420:19)
  at loadConfig (../../../../../../tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.pnpm/file+..+next-repo-f782dc9045bfa1940520b3e28192920759d8db739d422189510e45a23b664a79+packages+n_2o45iqlfpyrxxrrthponvo7cvi/node_modules/next/dist/server/config.js:776:32)
  at async Span.traceAsyncFn (../../../../../../tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.pnpm/file+..+next-repo-f782dc9045bfa1940520b3e28192920759d8db739d422189510e45a23b664a79+packages+n_2o45iqlfpyrxxrrthponvo7cvi/node_modules/next/dist/trace/trace.js:151:20)
  at ../async /tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.pnpm/file+..+next-repo-f782dc9045bfa1940520b3e28192920759d8db739d422189510e45a23b664a79+packages+n_2o45iqlfpyrxxrrthponvo7cvi/node_modules/next/dist/build/index.js:356:28
  at async Span.traceAsyncFn (../../../../../../tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.pnpm/file+..+next-repo-f782dc9045bfa1940520b3e28192920759d8db739d422189510e45a23b664a79+packages+n_2o45iqlfpyrxxrrthponvo7cvi/node_modules/next/dist/trace/trace.js:151:20)
  at async build (../../../../../../tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.pnpm/file+..+next-repo-f782dc9045bfa1940520b3e28192920759d8db739d422189510e45a23b664a79+packages+n_2o45iqlfpyrxxrrthponvo7cvi/node_modules/next/dist/build/index.js:350:9)·
  > Build error occurred
  Error: Server Actions Size Limit must be a valid number or filesize format larger than 1MB: https://nextjs.org/docs/app/api-reference/functions/server-actions#size-limitation
  at assignDefaults (../../../../../../tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.pnpm/file+..+next-repo-f782dc9045bfa1940520b3e28192920759d8db739d422189510e45a23b664a79+packages+n_2o45iqlfpyrxxrrthponvo7cvi/node_modules/next/dist/server/config.js:420:19)
  at loadConfig (../../../../../../tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.pnpm/file+..+next-repo-f782dc9045bfa1940520b3e28192920759d8db739d422189510e45a23b664a79+packages+n_2o45iqlfpyrxxrrthponvo7cvi/node_modules/next/dist/server/config.js:776:32)
  at async Span.traceAsyncFn (../../../../../../tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.pnpm/file+..+next-repo-f782dc9045bfa1940520b3e28192920759d8db739d422189510e45a23b664a79+packages+n_2o45iqlfpyrxxrrthponvo7cvi/node_modules/next/dist/trace/trace.js:151:20)
  at ../async /tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.pnpm/file+..+next-repo-f782dc9045bfa1940520b3e28192920759d8db739d422189510e45a23b664a79+packages+n_2o45iqlfpyrxxrrthponvo7cvi/node_modules/next/dist/build/index.js:356:28
  at async Span.traceAsyncFn (../../../../../../tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.pnpm/file+..+next-repo-f782dc9045bfa1940520b3e28192920759d8db739d422189510e45a23b664a79+packages+n_2o45iqlfpyrxxrrthponvo7cvi/node_modules/next/dist/trace/trace.js:151:20)
  at async build (../../../../../../tmp/next-install-a57db8a6b62292871612fdf9a3c7fae10c92b5434cd3c4ae9cd5983a95b7c2c6/node_modules/.pnpm/file+..+next-repo-f782dc9045bfa1940520b3e28192920759d8db739d422189510e45a23b664a79+packages+n_2o45iqlfpyrxxrrthponvo7cvi/node_modules/next/dist/build/index.js:350:9)
  "
  at Object.toContain (e2e/app-dir/actions/app-action-size-limit-invalid.test.ts:75:30)

Read more about building and testing Next.js in contributing.md.

@ijjk
Copy link
Member

ijjk commented Mar 4, 2024

Stats from current PR

Default Build (Increase detected ⚠️)
General
vercel/next.js canary apostolos/next.js patch-2 Change
buildDuration 13.8s 13.9s N/A
buildDurationCached 7.5s 6.1s N/A
nodeModulesSize 198 MB 198 MB N/A
nextStartRea..uration (ms) 436ms 444ms N/A
Client Bundles (main, webpack)
vercel/next.js canary apostolos/next.js patch-2 Change
2453-HASH.js gzip 30.5 kB 30.5 kB N/A
3304.HASH.js gzip 181 B 181 B
3f784ff6-HASH.js gzip 53.7 kB 53.7 kB N/A
8299-HASH.js gzip 5.04 kB 5.04 kB N/A
framework-HASH.js gzip 45.2 kB 45.2 kB
main-app-HASH.js gzip 241 B 242 B N/A
main-HASH.js gzip 32.2 kB 32.2 kB N/A
webpack-HASH.js gzip 1.68 kB 1.68 kB N/A
Overall change 45.4 kB 45.4 kB
Legacy Client Bundles (polyfills)
vercel/next.js canary apostolos/next.js patch-2 Change
polyfills-HASH.js gzip 31 kB 31 kB
Overall change 31 kB 31 kB
Client Pages
vercel/next.js canary apostolos/next.js patch-2 Change
_app-HASH.js gzip 196 B 197 B N/A
_error-HASH.js gzip 184 B 184 B
amp-HASH.js gzip 505 B 505 B
css-HASH.js gzip 324 B 325 B N/A
dynamic-HASH.js gzip 2.5 kB 2.5 kB N/A
edge-ssr-HASH.js gzip 258 B 258 B
head-HASH.js gzip 352 B 352 B
hooks-HASH.js gzip 370 B 371 B N/A
image-HASH.js gzip 4.21 kB 4.21 kB
index-HASH.js gzip 259 B 259 B
link-HASH.js gzip 2.67 kB 2.67 kB N/A
routerDirect..HASH.js gzip 314 B 312 B N/A
script-HASH.js gzip 386 B 386 B
withRouter-HASH.js gzip 309 B 309 B
1afbb74e6ecf..834.css gzip 106 B 106 B
Overall change 6.57 kB 6.57 kB
Client Build Manifests
vercel/next.js canary apostolos/next.js patch-2 Change
_buildManifest.js gzip 481 B 484 B N/A
Overall change 0 B 0 B
Rendered Page Sizes
vercel/next.js canary apostolos/next.js patch-2 Change
index.html gzip 529 B 528 B N/A
link.html gzip 541 B 542 B N/A
withRouter.html gzip 524 B 524 B
Overall change 524 B 524 B
Edge SSR bundle Size
vercel/next.js canary apostolos/next.js patch-2 Change
edge-ssr.js gzip 95.1 kB 95.1 kB N/A
page.js gzip 3.06 kB 3.07 kB N/A
Overall change 0 B 0 B
Middleware size
vercel/next.js canary apostolos/next.js patch-2 Change
middleware-b..fest.js gzip 625 B 624 B N/A
middleware-r..fest.js gzip 151 B 151 B
middleware.js gzip 25.5 kB 25.5 kB N/A
edge-runtime..pack.js gzip 839 B 839 B
Overall change 990 B 990 B
Next Runtimes
vercel/next.js canary apostolos/next.js patch-2 Change
app-page-exp...dev.js gzip 171 kB 171 kB
app-page-exp..prod.js gzip 96.5 kB 96.5 kB
app-page-tur..prod.js gzip 98.2 kB 98.2 kB
app-page-tur..prod.js gzip 92.7 kB 92.7 kB
app-page.run...dev.js gzip 149 kB 149 kB
app-page.run..prod.js gzip 91.2 kB 91.2 kB
app-route-ex...dev.js gzip 21.3 kB 21.3 kB
app-route-ex..prod.js gzip 15 kB 15 kB
app-route-tu..prod.js gzip 15 kB 15 kB
app-route-tu..prod.js gzip 14.8 kB 14.8 kB
app-route.ru...dev.js gzip 20.9 kB 20.9 kB
app-route.ru..prod.js gzip 14.8 kB 14.8 kB
pages-api-tu..prod.js gzip 9.52 kB 9.52 kB
pages-api.ru...dev.js gzip 9.8 kB 9.8 kB
pages-api.ru..prod.js gzip 9.52 kB 9.52 kB
pages-turbo...prod.js gzip 22.3 kB 22.3 kB
pages.runtim...dev.js gzip 22.9 kB 22.9 kB
pages.runtim..prod.js gzip 22.3 kB 22.3 kB
server.runti..prod.js gzip 50.5 kB 50.5 kB
Overall change 947 kB 947 kB
build cache Overall increase ⚠️
vercel/next.js canary apostolos/next.js patch-2 Change
0.pack gzip 1.56 MB 1.56 MB ⚠️ +1.85 kB
index.pack gzip 105 kB 106 kB ⚠️ +551 B
Overall change 1.66 MB 1.66 MB ⚠️ +2.4 kB
Diff details
Diff for middleware.js

Diff too large to display

Commit: dbad4da

auto-merge was automatically disabled March 8, 2024 19:05

Head branch was pushed to by a user without write access

@samcx samcx enabled auto-merge (squash) March 11, 2024 19:01
@samcx samcx merged commit a00458b into vercel:canary Mar 11, 2024
61 checks passed
@apostolos apostolos deleted the patch-2 branch March 11, 2024 19:31
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants