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

Massively inflated bundle size with pages #47

Closed
Cherry opened this issue Dec 29, 2022 · 12 comments · Fixed by #88
Closed

Massively inflated bundle size with pages #47

Cherry opened this issue Dec 29, 2022 · 12 comments · Fixed by #88

Comments

@Cherry
Copy link

Cherry commented Dec 29, 2022

Following the installation guide in this repo, my initial _worker.js output is 370KB.

If I then simply duplicate pages/index.ts to pages/index2.ts, and rebuild, I get over 750KB. And then if I do the same thing with index3.ts, I get over 1MiB. This is adding around 300KB for every single page.

Any real-world site loading some other dependencies, component libraries, etc. is going to rapidly exceed Workers limits, even with the increase to 5MiB. We've seen multiple people in Discord report hitting this limit with sites that had as little as 7 pages!

Here are some numbers for the generated _worker.js when using the experimental minify option, and when not:

using --experimental-minify

1 page site: 370KB output
2 page site: 750KB output
3 page site: 1MiB output

without --experimental-minify

1 page site: 333KB output
2 page site: 622KB output
3 page site: 911KB output


That's not a typo - the --experimental-minify option appears to make the output larger.

@hanford
Copy link
Contributor

hanford commented Jan 17, 2023

next-on-pages seems to copy large amounts of Next.js boilerplate for every page... I've noticed every page has it's own base-server.

I maintain a Next.js application with 600 pages... (600 * 370kb = 222mb) _worker.js (not counting 3rd party libraries).

@satpalsr
Copy link

satpalsr commented Jun 14, 2023

I just got hit by this error and not clear on what to do.
Error: Failed to publish your Function. Got error: Your Functions script is over the 1 MiB size limit (workers.api.error.script_too_large)

@HenrijsS
Copy link

HenrijsS commented Jul 8, 2023

Same here. I have a really simple app, but the pages are 3-5MB. Why are the sizes so inflated?

@Richard87
Copy link

Richard87 commented Jul 21, 2023

Yup, same, we only have 2 pages, and over 1mb

Edit @dario-piotrowicz / @james-elicx , sorry for the ping, is there any solution to use Nextjs on Pages? Something is not adding up :/

Edit 2: This is the result from Nextjs build:


Route (pages)                              Size     First Load JS
┌ ℇ /                                      12.7 kB         190 kB
├   /_app                                  0 B             133 kB
├ ○ /404                                   194 B           134 kB
├ ℇ /api/hello                             0 B             133 kB
├ ℇ /me/profile                            43.5 kB         221 kB
├ ○ /sign-in/[[...index]]                  408 B           134 kB
└ ○ /sign-up/[[...index]]                  408 B           134 kB
+ First Load JS shared by all              134 kB
  ├ chunks/framework-4556c45dd113b893.js   45.2 kB
  ├ chunks/main-267015de6884ae13.js        30.1 kB
  ├ chunks/pages/_app-b0675639f806e8f3.js  57 kB
  ├ chunks/webpack-45c1d38871d29bef.js     1.03 kB
  └ css/0705bda694329cbb.css               306 B

ƒ Middleware                               333 kB

@HenrijsS
Copy link

Yup, same, we only have 2 pages, and over 1mb

Edit @dario-piotrowicz / @james-elicx , sorry for the ping, is there any solution to use Nextjs on Pages? Something is not adding up :/

Edit 2: This is the result from Nextjs build:


Route (pages)                              Size     First Load JS
┌ ℇ /                                      12.7 kB         190 kB
├   /_app                                  0 B             133 kB
├ ○ /404                                   194 B           134 kB
├ ℇ /api/hello                             0 B             133 kB
├ ℇ /me/profile                            43.5 kB         221 kB
├ ○ /sign-in/[[...index]]                  408 B           134 kB
└ ○ /sign-up/[[...index]]                  408 B           134 kB
+ First Load JS shared by all              134 kB
  ├ chunks/framework-4556c45dd113b893.js   45.2 kB
  ├ chunks/main-267015de6884ae13.js        30.1 kB
  ├ chunks/pages/_app-b0675639f806e8f3.js  57 kB
  ├ chunks/webpack-45c1d38871d29bef.js     1.03 kB
  └ css/0705bda694329cbb.css               306 B

ƒ Middleware                               333 kB

Yes. Use Vercel like they want you to do, or host it yourself on a VPS. It's extortion.

@james-elicx
Copy link
Contributor

Hello @Richard87 @HenrijsS, are either of you able to share your applications so that we can see what is leading to such a large bundle size in them, and see if there is other deduping we can do for them?

It's possible that you may have rather beefy dependencies that are massively inflating the bundle size, but it's also possible that there could be another reason. Without seeing what's going on in your application, it's very hard for us to tell or help.

Please also make sure that you are using the latest version of @cloudflare/next-on-pages. For instance, @HenrijsS your reply was from before we made a release that included additional deduping, so you should try out the latest release and see how that affects things for you.

@Richard87
Copy link

Richard87 commented Jul 21, 2023

Hi @james-elicx ! I uploaded a copy of our app and wired it up to cloudflare and invited you to the repo (since it will be the copmany app I don't want to publish it :) )

Link to Cloudflare project: https://dash.cloudflare.com/f593c3a9731a785a4623f24946748032/pages/view/cloudflare-test/a1600a52-da2b-4d6b-8e92-75324c16b155

Deploutlog of richard87/cloudflare-test

2023-07-21T16:53:38.626654603Z	Cloning repository...
2023-07-21T16:53:41.148151096Z	From https://github.com/Richard87/cloudflare-test
2023-07-21T16:53:41.148637753Z	 * branch            8cfa896640e5410df4592069239c2648ac5df701 -> FETCH_HEAD
2023-07-21T16:53:41.148791851Z	
2023-07-21T16:53:41.233403805Z	HEAD is now at 8cfa896 init commit
2023-07-21T16:53:41.2338525Z	
2023-07-21T16:53:41.366813974Z	
2023-07-21T16:53:41.400962227Z	Success: Finished cloning repository files
2023-07-21T16:53:42.07414725Z	Detected the following tools from environment: [email protected], [email protected]
2023-07-21T16:53:42.074180919Z	Installing project dependencies: npm clean-install --progress=false
2023-07-21T16:54:21.650151189Z	
2023-07-21T16:54:21.650695839Z	added 1415 packages, and audited 1416 packages in 38s
2023-07-21T16:54:21.651118332Z	
2023-07-21T16:54:21.651145139Z	274 packages are looking for funding
2023-07-21T16:54:21.651425951Z	  run `npm fund` for details
2023-07-21T16:54:21.656351241Z	
2023-07-21T16:54:21.656487964Z	3 moderate severity vulnerabilities
2023-07-21T16:54:21.656765687Z	
2023-07-21T16:54:21.656954245Z	To address all issues, run:
2023-07-21T16:54:21.65696677Z	  npm audit fix
2023-07-21T16:54:21.657164878Z	
2023-07-21T16:54:21.657346901Z	Run `npm audit` for details.
2023-07-21T16:54:21.686642334Z	Executing user command: npx @cloudflare/next-on-pages@1
2023-07-21T16:54:24.700915475Z	npm WARN exec The following package was not found and will be installed: @cloudflare/[email protected]
2023-07-21T16:54:40.037453285Z	npm WARN deprecated [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
2023-07-21T16:54:40.361185222Z	npm WARN deprecated [email protected]: Please use @jridgewell/sourcemap-codec instead
2023-07-21T16:54:40.84598049Z	npm WARN deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
2023-07-21T16:54:42.164178772Z	npm WARN deprecated [email protected]: The library contains critical security issues and should not be used for production! The maintenance of the project has been discontinued. Consider migrating your code to isolated-vm.
2023-07-21T16:54:48.00863165Z	⚡️ @cloudflare/next-on-pages CLI v.1.3.1
2023-07-21T16:54:48.011437337Z	⚡️ Detected Package Manager: npm
2023-07-21T16:54:48.012034955Z	⚡️ Preparing project...
2023-07-21T16:54:48.013798207Z	⚡️ Project is ready
2023-07-21T16:54:48.014069135Z	⚡️ Building project...
2023-07-21T16:54:50.558416332Z	▲  npm
2023-07-21T16:54:50.559136467Z	▲  WARN exec The following package was not found and will be installed: [email protected]
2023-07-21T16:54:58.347673005Z	▲  npm WARN
2023-07-21T16:54:58.348152654Z	▲  deprecated @npmcli/[email protected]: This functionality has been moved to @npmcli/fs
2023-07-21T16:54:59.405206307Z	▲  npm
2023-07-21T16:54:59.405848364Z	▲  WARN deprecated [email protected]: The library contains critical security issues and should not be used for production! The maintenance of the project has been discontinued. Consider migrating your code to isolated-vm.
2023-07-21T16:55:03.422348021Z	▲  Vercel CLI 31.0.4
2023-07-21T16:55:03.59831724Z	▲  Warning: When using Next.js, it is recommended to place JavaScript Functions inside of the `pages/api` (provided by Next.js) directory instead of `api` (provided by Vercel). Other languages (Python, Go, etc) should still go in the `api` directory. Learn More: https://nextjs.org/docs/api-routes/introduction
2023-07-21T16:55:04.321952904Z	▲  Installing dependencies...
2023-07-21T16:55:07.964030658Z	▲  up to date in 3s
2023-07-21T16:55:07.964615676Z	▲  274 packages are looking for funding
2023-07-21T16:55:07.964951526Z	▲  run `npm fund` for details
2023-07-21T16:55:07.981107283Z	▲  Detected Next.js version: 13.4.2
2023-07-21T16:55:07.991945909Z	▲  Detected `package-lock.json` generated by npm 7+...
2023-07-21T16:55:07.992244156Z	▲  Running "npm run build"
2023-07-21T16:55:08.94719753Z	▲  > [email protected] build
2023-07-21T16:55:08.947769433Z	▲  > next build
2023-07-21T16:55:09.403852784Z	▲  - info Loaded env from /opt/buildhome/repo/.env
2023-07-21T16:55:09.596616635Z	▲  Attention: Next.js now collects completely anonymous telemetry regarding usage.
2023-07-21T16:55:09.596846326Z	▲  This information is used to shape Next.js' roadmap and prioritize features.
2023-07-21T16:55:09.597186038Z	▲  You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
2023-07-21T16:55:09.597339409Z	▲  https://nextjs.org/telemetry
2023-07-21T16:55:09.731706951Z	▲  - info Linting and checking validity of types...
2023-07-21T16:55:16.827989619Z	▲  - info Creating an optimized production build...
2023-07-21T16:55:17.038772342Z	▲  - warn You are using an experimental edge runtime, the API might change.
2023-07-21T16:55:26.127426737Z	▲  Warning: For production Image Optimization with Next.js, the optional 'sharp' package is strongly recommended. Run 'yarn add sharp', and Next.js will use it automatically for Image Optimization.
2023-07-21T16:55:26.128354082Z	▲  Read more: https://nextjs.org/docs/messages/sharp-missing-in-production
2023-07-21T16:55:44.375913579Z	▲  <w> [webpack.cache.PackFileCacheStrategy] Serializing big strings (659kiB) impacts deserialization performance (consider using Buffer instead and decode when needed)
2023-07-21T16:55:55.027224993Z	▲  - warn Compiled with warnings
2023-07-21T16:55:55.028648203Z	▲  ./node_modules/@clerk/shared/dist/esm/index.js
2023-07-21T16:55:55.028982607Z	▲  A Node.js API is used (MessageEvent at line: 1) which is not supported in the Edge Runtime.
2023-07-21T16:55:55.029601971Z	▲  Learn more: https://nextjs.org/docs/api-reference/edge-runtime
2023-07-21T16:55:55.029819824Z	▲  
2023-07-21T16:55:55.03006954Z	▲  Import trace for requested module:
2023-07-21T16:55:55.030317557Z	▲  ./node_modules/@clerk/shared/dist/esm/index.js
2023-07-21T16:55:55.030946778Z	▲  ./node_modules/@clerk/clerk-react/dist/hooks/useOrganizationList.js
2023-07-21T16:55:55.031254602Z	▲  ./node_modules/@clerk/clerk-react/dist/hooks/index.js
2023-07-21T16:55:55.031402673Z	▲  ./node_modules/@clerk/clerk-react/dist/index.js
2023-07-21T16:55:55.032102485Z	▲  ./node_modules/@clerk/nextjs/dist/esm/client-boundary/controlComponents.js
2023-07-21T16:55:55.032531438Z	▲  ./node_modules/@clerk/nextjs/dist/esm/index.js
2023-07-21T16:55:55.0325396Z	▲  
2023-07-21T16:55:55.032544004Z	▲  ./node_modules/next/dist/server/web/spec-extension/image-response.js
2023-07-21T16:55:55.032824463Z	▲  A Node.js API is used (process.turbopack at line: 14) which is not supported in the Edge Runtime.
2023-07-21T16:55:55.032893628Z	▲  Learn more: https://nextjs.org/docs/api-reference/edge-runtime
2023-07-21T16:55:55.03309037Z	▲  
2023-07-21T16:55:55.033224775Z	▲  Import trace for requested module:
2023-07-21T16:55:55.033363912Z	▲  ./node_modules/next/dist/server/web/spec-extension/image-response.js
2023-07-21T16:55:55.033489192Z	▲  ./node_modules/next/server.js
2023-07-21T16:55:55.033634305Z	▲  ./node_modules/@clerk/nextjs/dist/esm/server/authMiddleware.js
2023-07-21T16:55:55.03378118Z	▲  ./node_modules/@clerk/nextjs/dist/esm/server-helpers.server.js
2023-07-21T16:55:55.033917649Z	▲  ./node_modules/@clerk/nextjs/dist/esm/index.js
2023-07-21T16:55:55.034097522Z	▲  
2023-07-21T16:55:55.034239017Z	▲  ./node_modules/scheduler/cjs/scheduler.production.min.js
2023-07-21T16:55:55.034379525Z	▲  A Node.js API is used (setImmediate at line: 11) which is not supported in the Edge Runtime.
2023-07-21T16:55:55.034524747Z	▲  Learn more: https://nextjs.org/docs/api-reference/edge-runtime
2023-07-21T16:55:55.034661151Z	▲  
2023-07-21T16:55:55.034808552Z	▲  Import trace for requested module:
2023-07-21T16:55:55.034946445Z	▲  ./node_modules/scheduler/cjs/scheduler.production.min.js
2023-07-21T16:55:55.035099482Z	▲  ./node_modules/scheduler/index.js
2023-07-21T16:55:55.035256229Z	▲  ./node_modules/react-dom/cjs/react-dom.production.min.js
2023-07-21T16:55:55.035391735Z	▲  ./node_modules/react-dom/index.js
2023-07-21T16:55:55.035527149Z	▲  ./node_modules/next/dist/esm/client/script.js
2023-07-21T16:55:55.03572141Z	▲  ./node_modules/next/dist/esm/shared/lib/router/router.js
2023-07-21T16:55:55.036527298Z	▲  ./node_modules/next/dist/esm/client/router.js
2023-07-21T16:55:55.036858642Z	▲  ./node_modules/next/router.js
2023-07-21T16:55:55.037438122Z	▲  ./node_modules/@clerk/nextjs/dist/esm/pages/ClerkProvider.js
2023-07-21T16:55:55.037609513Z	▲  ./node_modules/@clerk/nextjs/dist/esm/components.client.js
2023-07-21T16:55:55.037798119Z	▲  ./node_modules/@clerk/nextjs/dist/esm/index.js
2023-07-21T16:55:55.037933225Z	▲  
2023-07-21T16:55:55.038132225Z	▲  ./node_modules/scheduler/cjs/scheduler.production.min.js
2023-07-21T16:55:55.038701363Z	▲  A Node.js API is used (setImmediate at line: 11) which is not supported in the Edge Runtime.
2023-07-21T16:55:55.03889848Z	▲  Learn more: https://nextjs.org/docs/api-reference/edge-runtime
2023-07-21T16:55:55.039081442Z	▲  
2023-07-21T16:55:55.039272187Z	▲  Import trace for requested module:
2023-07-21T16:55:55.039849981Z	▲  ./node_modules/scheduler/cjs/scheduler.production.min.js
2023-07-21T16:55:55.04004834Z	▲  ./node_modules/scheduler/index.js
2023-07-21T16:55:55.040184575Z	▲  ./node_modules/react-dom/cjs/react-dom.production.min.js
2023-07-21T16:55:55.040482555Z	▲  ./node_modules/react-dom/index.js
2023-07-21T16:55:55.040493733Z	▲  ./node_modules/next/dist/esm/client/script.js
2023-07-21T16:55:55.040667313Z	▲  ./node_modules/next/dist/esm/shared/lib/router/router.js
2023-07-21T16:55:55.040733365Z	▲  ./node_modules/next/dist/esm/client/router.js
2023-07-21T16:55:55.040973188Z	▲  ./node_modules/next/router.js
2023-07-21T16:55:55.041575177Z	▲  ./node_modules/@clerk/nextjs/dist/esm/pages/ClerkProvider.js
2023-07-21T16:55:55.041848658Z	▲  ./node_modules/@clerk/nextjs/dist/esm/components.client.js
2023-07-21T16:55:55.042306939Z	▲  ./node_modules/@clerk/nextjs/dist/esm/index.js
2023-07-21T16:55:55.042499238Z	▲  
2023-07-21T16:55:55.042669356Z	▲  ./node_modules/scheduler/cjs/scheduler.production.min.js
2023-07-21T16:55:55.042865129Z	▲  A Node.js API is used (MessageChannel at line: 14) which is not supported in the Edge Runtime.
2023-07-21T16:55:55.043590451Z	▲  Learn more: https://nextjs.org/docs/api-reference/edge-runtime
2023-07-21T16:55:55.043726836Z	▲  
2023-07-21T16:55:55.043905353Z	▲  Import trace for requested module:
2023-07-21T16:55:55.044207013Z	▲  ./node_modules/scheduler/cjs/scheduler.production.min.js
2023-07-21T16:55:55.044590307Z	▲  ./node_modules/scheduler/index.js
2023-07-21T16:55:55.044599726Z	▲  ./node_modules/react-dom/cjs/react-dom.production.min.js
2023-07-21T16:55:55.044674866Z	▲  ./node_modules/react-dom/index.js
2023-07-21T16:55:55.044833954Z	▲  ./node_modules/next/dist/esm/client/script.js
2023-07-21T16:55:55.045047291Z	▲  ./node_modules/next/dist/esm/shared/lib/router/router.js
2023-07-21T16:55:55.045360167Z	▲  ./node_modules/next/dist/esm/client/router.js
2023-07-21T16:55:55.045390595Z	▲  ./node_modules/next/router.js
2023-07-21T16:55:55.045486268Z	▲  ./node_modules/@clerk/nextjs/dist/esm/pages/ClerkProvider.js
2023-07-21T16:55:55.045709348Z	▲  ./node_modules/@clerk/nextjs/dist/esm/components.client.js
2023-07-21T16:55:55.046403266Z	▲  ./node_modules/@clerk/nextjs/dist/esm/index.js
2023-07-21T16:55:55.046701912Z	▲  
2023-07-21T16:55:55.046861185Z	▲  ./node_modules/scheduler/cjs/scheduler.production.min.js
2023-07-21T16:55:55.04731886Z	▲  A Node.js API is used (MessageChannel at line: 14) which is not supported in the Edge Runtime.
2023-07-21T16:55:55.047525585Z	▲  Learn more: https://nextjs.org/docs/api-reference/edge-runtime
2023-07-21T16:55:55.047664445Z	▲  
2023-07-21T16:55:55.047805643Z	▲  Import trace for requested module:
2023-07-21T16:55:55.047955333Z	▲  ./node_modules/scheduler/cjs/scheduler.production.min.js
2023-07-21T16:55:55.048141253Z	▲  ./node_modules/scheduler/index.js
2023-07-21T16:55:55.048576398Z	▲  ./node_modules/react-dom/cjs/react-dom.production.min.js
2023-07-21T16:55:55.048715468Z	▲  ./node_modules/react-dom/index.js
2023-07-21T16:55:55.048939179Z	▲  ./node_modules/next/dist/esm/client/script.js
2023-07-21T16:55:55.048986826Z	▲  ./node_modules/next/dist/esm/shared/lib/router/router.js
2023-07-21T16:55:55.049256358Z	▲  ./node_modules/next/dist/esm/client/router.js
2023-07-21T16:55:55.049765909Z	▲  ./node_modules/next/router.js
2023-07-21T16:55:55.049782233Z	▲  ./node_modules/@clerk/nextjs/dist/esm/pages/ClerkProvider.js
2023-07-21T16:55:55.049788278Z	▲  ./node_modules/@clerk/nextjs/dist/esm/components.client.js
2023-07-21T16:55:55.049832963Z	▲  ./node_modules/@clerk/nextjs/dist/esm/index.js
2023-07-21T16:55:55.049858017Z	▲  - info Collecting page data...
2023-07-21T16:56:15.954379335Z	▲  - info Generating static pages (0/2)
2023-07-21T16:56:16.095091209Z	▲  - info Generating static pages (2/2)
2023-07-21T16:56:16.380771514Z	▲  - info Finalizing page optimization...
2023-07-21T16:56:16.386591788Z	▲  
2023-07-21T16:56:16.561550516Z	▲  Route (pages)                              Size     First Load JS
2023-07-21T16:56:16.561697984Z	▲  ┌ ℇ /                                      12.7 kB         190 kB
2023-07-21T16:56:16.562103216Z	▲  ├   /_app                                  0 B             133 kB
2023-07-21T16:56:16.562118249Z	▲  ├ ○ /404                                   194 B           134 kB
2023-07-21T16:56:16.562323836Z	▲  ├ ℇ /api/hello                             0 B             133 kB
2023-07-21T16:56:16.562392774Z	▲  └ ℇ /me/profile                            43.5 kB         221 kB
2023-07-21T16:56:16.562498916Z	▲  + First Load JS shared by all              134 kB
2023-07-21T16:56:16.562600477Z	▲  ├ chunks/framework-4556c45dd113b893.js   45.2 kB
2023-07-21T16:56:16.562818685Z	▲  ├ chunks/main-267015de6884ae13.js        30.1 kB
2023-07-21T16:56:16.563006148Z	▲  ├ chunks/pages/_app-a7b791b1aca29c07.js  57 kB
2023-07-21T16:56:16.563114153Z	▲  ├ chunks/webpack-45c1d38871d29bef.js     1.03 kB
2023-07-21T16:56:16.563399324Z	▲  └ css/0705bda694329cbb.css               306 B
2023-07-21T16:56:16.56341111Z	▲  
2023-07-21T16:56:16.563494322Z	▲  ƒ Middleware                               334 kB
2023-07-21T16:56:16.563612314Z	▲  ℇ  (Streaming)  server-side renders with streaming (uses React 18 SSR streaming or Server Components)
2023-07-21T16:56:16.563762039Z	▲  ○  (Static)     automatically rendered as static HTML (uses no initial props)
2023-07-21T16:56:18.048074806Z	▲  Collected static files (public/, static/, .next/static): 9.888ms
2023-07-21T16:56:18.390922957Z	▲  Using TypeScript 5.0.4 (local user-provided)
2023-07-21T16:56:25.180066807Z	▲  Build Completed in .vercel/output [1m]
2023-07-21T16:56:25.360110868Z	⚡️ Completed `npx vercel build`.
2023-07-21T16:56:30.016605213Z	
2023-07-21T16:56:30.017339188Z	⚡️ Build Summary (@cloudflare/next-on-pages v1.3.1)
2023-07-21T16:56:30.017779638Z	⚡️ 
2023-07-21T16:56:30.017799388Z	⚡️ Middleware Functions (1)
2023-07-21T16:56:30.018047331Z	⚡️   - middleware
2023-07-21T16:56:30.018217255Z	⚡️ 
2023-07-21T16:56:30.01847914Z	⚡️ Edge Function Routes (3)
2023-07-21T16:56:30.018561414Z	⚡️   ┌ /
2023-07-21T16:56:30.018621603Z	⚡️   ├ /api/hello
2023-07-21T16:56:30.018839723Z	⚡️   └ /me/profile
2023-07-21T16:56:30.019098264Z	⚡️ 
2023-07-21T16:56:30.019260691Z	⚡️ Wasm Files (2)
2023-07-21T16:56:30.019451251Z	⚡️   ┌ wasm_a7e702bc5ba9227243abda7977c8096f59478d3f
2023-07-21T16:56:30.019597496Z	⚡️   └ wasm_ef4866ecae192fd87727067cf2c0c0cf9fb8b020
2023-07-21T16:56:30.01976833Z	⚡️ 
2023-07-21T16:56:30.019931382Z	⚡️ Other Static Assets (30)
2023-07-21T16:56:30.020170535Z	⚡️   ┌ /404.html
2023-07-21T16:56:30.020277888Z	⚡️   ├ /500.html
2023-07-21T16:56:30.020529444Z	⚡️   ├ /assets/nb-NO.ts
2023-07-21T16:56:30.020699166Z	⚡️   ├ /favicon.ico
2023-07-21T16:56:30.021071008Z	⚡️   └ ... 26 more
2023-07-21T16:56:30.021345122Z	
2023-07-21T16:56:30.021561588Z	⚡️ Build log saved to '.vercel/output/static/_worker.js/nop-build-log.json'
2023-07-21T16:56:30.058049382Z	⚡️ Generated '.vercel/output/static/_worker.js/index.js'.
2023-07-21T16:56:30.142176647Z	Finished
2023-07-21T16:56:30.142831777Z	Found _worker.js in output directory. Uploading.
2023-07-21T16:56:31.212235678Z	Uploading additional modules:
2023-07-21T16:56:31.212983619Z	- __next-on-pages-dist__/chunks/1026.js (esm)
2023-07-21T16:56:31.213341534Z	- __next-on-pages-dist__/chunks/1032.js (esm)
2023-07-21T16:56:31.213714804Z	- __next-on-pages-dist__/chunks/1092.js (esm)
2023-07-21T16:56:31.21448196Z	- __next-on-pages-dist__/chunks/1154.js (esm)
2023-07-21T16:56:31.2145012Z	- __next-on-pages-dist__/chunks/1163.js (esm)
2023-07-21T16:56:31.214510287Z	- __next-on-pages-dist__/chunks/1164.js (esm)
2023-07-21T16:56:31.214514603Z	- __next-on-pages-dist__/chunks/1190.js (esm)
2023-07-21T16:56:31.214518576Z	- __next-on-pages-dist__/chunks/1216.js (esm)
2023-07-21T16:56:31.214526096Z	- __next-on-pages-dist__/chunks/1238.js (esm)
2023-07-21T16:56:31.21493019Z	- __next-on-pages-dist__/chunks/1265.js (esm)
2023-07-21T16:56:31.214940559Z	- __next-on-pages-dist__/chunks/1268.js (esm)
2023-07-21T16:56:31.214944896Z	- __next-on-pages-dist__/chunks/1289.js (esm)
2023-07-21T16:56:31.215085209Z	- __next-on-pages-dist__/chunks/136.js (esm)
2023-07-21T16:56:31.21516919Z	- __next-on-pages-dist__/chunks/1387.js (esm)
2023-07-21T16:56:31.21705595Z	- __next-on-pages-dist__/chunks/1490.js (esm)
2023-07-21T16:56:31.217070471Z	- __next-on-pages-dist__/chunks/1496.js (esm)
2023-07-21T16:56:31.217074716Z	- __next-on-pages-dist__/chunks/1549.js (esm)
2023-07-21T16:56:31.21707871Z	- __next-on-pages-dist__/chunks/1574.js (esm)
2023-07-21T16:56:31.217082509Z	- __next-on-pages-dist__/chunks/1587.js (esm)
2023-07-21T16:56:31.217086273Z	- __next-on-pages-dist__/chunks/1588.js (esm)
2023-07-21T16:56:31.217090223Z	- __next-on-pages-dist__/chunks/1616.js (esm)
2023-07-21T16:56:31.217094158Z	- __next-on-pages-dist__/chunks/1627.js (esm)
2023-07-21T16:56:31.217097886Z	- __next-on-pages-dist__/chunks/1629.js (esm)
2023-07-21T16:56:31.217101653Z	- __next-on-pages-dist__/chunks/1700.js (esm)
2023-07-21T16:56:31.217128796Z	- __next-on-pages-dist__/chunks/1705.js (esm)
2023-07-21T16:56:31.217133678Z	- __next-on-pages-dist__/chunks/1768.js (esm)
2023-07-21T16:56:31.217137856Z	- __next-on-pages-dist__/chunks/1796.js (esm)
2023-07-21T16:56:31.217141847Z	- __next-on-pages-dist__/chunks/1864.js (esm)
2023-07-21T16:56:31.217148729Z	- __next-on-pages-dist__/chunks/1890.js (esm)
2023-07-21T16:56:31.217318589Z	- __next-on-pages-dist__/chunks/1929.js (esm)
2023-07-21T16:56:31.217635323Z	- __next-on-pages-dist__/chunks/1974.js (esm)
2023-07-21T16:56:31.217654623Z	- __next-on-pages-dist__/chunks/1981.js (esm)
2023-07-21T16:56:31.217845973Z	- __next-on-pages-dist__/chunks/1987.js (esm)
2023-07-21T16:56:31.217856721Z	- __next-on-pages-dist__/chunks/211.js (esm)
2023-07-21T16:56:31.218036603Z	- __next-on-pages-dist__/chunks/2131.js (esm)
2023-07-21T16:56:31.21821671Z	- __next-on-pages-dist__/chunks/2159.js (esm)
2023-07-21T16:56:31.218226723Z	- __next-on-pages-dist__/chunks/2161.js (esm)
2023-07-21T16:56:31.218417776Z	- __next-on-pages-dist__/chunks/2190.js (esm)
2023-07-21T16:56:31.218593016Z	- __next-on-pages-dist__/chunks/220.js (esm)
2023-07-21T16:56:31.218620568Z	- __next-on-pages-dist__/chunks/2233.js (esm)
2023-07-21T16:56:31.218819834Z	- __next-on-pages-dist__/chunks/2350.js (esm)
2023-07-21T16:56:31.218909885Z	- __next-on-pages-dist__/chunks/2374.js (esm)
2023-07-21T16:56:31.21898125Z	- __next-on-pages-dist__/chunks/2379.js (esm)
2023-07-21T16:56:31.219195318Z	- __next-on-pages-dist__/chunks/2408.js (esm)
2023-07-21T16:56:31.219275803Z	- __next-on-pages-dist__/chunks/247.js (esm)
2023-07-21T16:56:31.219551502Z	- __next-on-pages-dist__/chunks/2542.js (esm)
2023-07-21T16:56:31.219563708Z	- __next-on-pages-dist__/chunks/255.js (esm)
2023-07-21T16:56:31.222147875Z	- __next-on-pages-dist__/chunks/2595.js (esm)
2023-07-21T16:56:31.222170066Z	- __next-on-pages-dist__/chunks/2627.js (esm)
2023-07-21T16:56:31.222174997Z	- __next-on-pages-dist__/chunks/2643.js (esm)
2023-07-21T16:56:31.222178819Z	- __next-on-pages-dist__/chunks/2734.js (esm)
2023-07-21T16:56:31.222182663Z	- __next-on-pages-dist__/chunks/2741.js (esm)
2023-07-21T16:56:31.222186445Z	- __next-on-pages-dist__/chunks/2812.js (esm)
2023-07-21T16:56:31.222194233Z	- __next-on-pages-dist__/chunks/2917.js (esm)
2023-07-21T16:56:31.22219851Z	- __next-on-pages-dist__/chunks/2956.js (esm)
2023-07-21T16:56:31.222202653Z	- __next-on-pages-dist__/chunks/2972.js (esm)
2023-07-21T16:56:31.22220652Z	- __next-on-pages-dist__/chunks/2998.js (esm)
2023-07-21T16:56:31.222210368Z	- __next-on-pages-dist__/chunks/3002.js (esm)
2023-07-21T16:56:31.222214206Z	- __next-on-pages-dist__/chunks/3013.js (esm)
2023-07-21T16:56:31.22221822Z	- __next-on-pages-dist__/chunks/3023.js (esm)
2023-07-21T16:56:31.222222112Z	- __next-on-pages-dist__/chunks/310.js (esm)
2023-07-21T16:56:31.222225915Z	- __next-on-pages-dist__/chunks/3284.js (esm)
2023-07-21T16:56:31.222229813Z	- __next-on-pages-dist__/chunks/3294.js (esm)
2023-07-21T16:56:31.222424155Z	- __next-on-pages-dist__/chunks/3321.js (esm)
2023-07-21T16:56:31.222431699Z	- __next-on-pages-dist__/chunks/3366.js (esm)
2023-07-21T16:56:31.22267688Z	- __next-on-pages-dist__/chunks/3370.js (esm)
2023-07-21T16:56:31.222837836Z	- __next-on-pages-dist__/chunks/3399.js (esm)
2023-07-21T16:56:31.222995501Z	- __next-on-pages-dist__/chunks/3433.js (esm)
2023-07-21T16:56:31.223162537Z	- __next-on-pages-dist__/chunks/3453.js (esm)
2023-07-21T16:56:31.223316781Z	- __next-on-pages-dist__/chunks/3475.js (esm)
2023-07-21T16:56:31.223462189Z	- __next-on-pages-dist__/chunks/351.js (esm)
2023-07-21T16:56:31.223626529Z	- __next-on-pages-dist__/chunks/3610.js (esm)
2023-07-21T16:56:31.223794445Z	- __next-on-pages-dist__/chunks/3616.js (esm)
2023-07-21T16:56:31.223948069Z	- __next-on-pages-dist__/chunks/3633.js (esm)
2023-07-21T16:56:31.224119339Z	- __next-on-pages-dist__/chunks/3769.js (esm)
2023-07-21T16:56:31.224277136Z	- __next-on-pages-dist__/chunks/377.js (esm)
2023-07-21T16:56:31.224423496Z	- __next-on-pages-dist__/chunks/3825.js (esm)
2023-07-21T16:56:31.224488276Z	- __next-on-pages-dist__/chunks/3826.js (esm)
2023-07-21T16:56:31.22490452Z	- __next-on-pages-dist__/chunks/3840.js (esm)
2023-07-21T16:56:31.224932311Z	- __next-on-pages-dist__/chunks/3841.js (esm)
2023-07-21T16:56:31.225161716Z	- __next-on-pages-dist__/chunks/3853.js (esm)
2023-07-21T16:56:31.225329799Z	- __next-on-pages-dist__/chunks/3935.js (esm)
2023-07-21T16:56:31.225424637Z	- __next-on-pages-dist__/chunks/3989.js (esm)
2023-07-21T16:56:31.225600219Z	- __next-on-pages-dist__/chunks/3997.js (esm)
2023-07-21T16:56:31.225664253Z	- __next-on-pages-dist__/chunks/4127.js (esm)
2023-07-21T16:56:31.225836631Z	- __next-on-pages-dist__/chunks/4137.js (esm)
2023-07-21T16:56:31.226002355Z	- __next-on-pages-dist__/chunks/4168.js (esm)
2023-07-21T16:56:31.226250326Z	- __next-on-pages-dist__/chunks/4204.js (esm)
2023-07-21T16:56:31.226363358Z	- __next-on-pages-dist__/chunks/4329.js (esm)
2023-07-21T16:56:31.226474988Z	- __next-on-pages-dist__/chunks/434.js (esm)
2023-07-21T16:56:31.226612702Z	- __next-on-pages-dist__/chunks/4371.js (esm)
2023-07-21T16:56:31.226758056Z	- __next-on-pages-dist__/chunks/4401.js (esm)
2023-07-21T16:56:31.226894826Z	- __next-on-pages-dist__/chunks/4404.js (esm)
2023-07-21T16:56:31.227044983Z	- __next-on-pages-dist__/chunks/4423.js (esm)
2023-07-21T16:56:31.227170498Z	- __next-on-pages-dist__/chunks/4437.js (esm)
2023-07-21T16:56:31.227320611Z	- __next-on-pages-dist__/chunks/4448.js (esm)
2023-07-21T16:56:31.227463573Z	- __next-on-pages-dist__/chunks/4474.js (esm)
2023-07-21T16:56:31.227590978Z	- __next-on-pages-dist__/chunks/4495.js (esm)
2023-07-21T16:56:31.227741979Z	- __next-on-pages-dist__/chunks/4529.js (esm)
2023-07-21T16:56:31.227873663Z	- __next-on-pages-dist__/chunks/4533.js (esm)
2023-07-21T16:56:31.227992042Z	- __next-on-pages-dist__/chunks/4536.js (esm)
2023-07-21T16:56:31.228145345Z	- __next-on-pages-dist__/chunks/4582.js (esm)
2023-07-21T16:56:31.228285468Z	- __next-on-pages-dist__/chunks/4639.js (esm)
2023-07-21T16:56:31.22840963Z	- __next-on-pages-dist__/chunks/4708.js (esm)
2023-07-21T16:56:31.228546928Z	- __next-on-pages-dist__/chunks/4748.js (esm)
2023-07-21T16:56:31.228688352Z	- __next-on-pages-dist__/chunks/476.js (esm)
2023-07-21T16:56:31.228834218Z	- __next-on-pages-dist__/chunks/4780.js (esm)
2023-07-21T16:56:31.228961381Z	- __next-on-pages-dist__/chunks/4793.js (esm)
2023-07-21T16:56:31.229144036Z	- __next-on-pages-dist__/chunks/4808.js (esm)
2023-07-21T16:56:31.229250229Z	- __next-on-pages-dist__/chunks/4842.js (esm)
2023-07-21T16:56:31.229395618Z	- __next-on-pages-dist__/chunks/4844.js (esm)
2023-07-21T16:56:31.229517719Z	- __next-on-pages-dist__/chunks/4855.js (esm)
2023-07-21T16:56:31.229609445Z	- __next-on-pages-dist__/chunks/4867.js (esm)
2023-07-21T16:56:31.229847321Z	- __next-on-pages-dist__/chunks/4920.js (esm)
2023-07-21T16:56:31.230183337Z	- __next-on-pages-dist__/chunks/4928.js (esm)
2023-07-21T16:56:31.230195262Z	- __next-on-pages-dist__/chunks/4929.js (esm)
2023-07-21T16:56:31.230199635Z	- __next-on-pages-dist__/chunks/4945.js (esm)
2023-07-21T16:56:31.230340993Z	- __next-on-pages-dist__/chunks/4949.js (esm)
2023-07-21T16:56:31.230414996Z	- __next-on-pages-dist__/chunks/4970.js (esm)
2023-07-21T16:56:31.230591508Z	- __next-on-pages-dist__/chunks/4993.js (esm)
2023-07-21T16:56:31.23067408Z	- __next-on-pages-dist__/chunks/5004.js (esm)
2023-07-21T16:56:31.230902905Z	- __next-on-pages-dist__/chunks/5042.js (esm)
2023-07-21T16:56:31.231196843Z	- __next-on-pages-dist__/chunks/5054.js (esm)
2023-07-21T16:56:31.231209086Z	- __next-on-pages-dist__/chunks/5068.js (esm)
2023-07-21T16:56:31.231297063Z	- __next-on-pages-dist__/chunks/5108.js (esm)
2023-07-21T16:56:31.231363261Z	- __next-on-pages-dist__/chunks/5130.js (esm)
2023-07-21T16:56:31.23154729Z	- __next-on-pages-dist__/chunks/5145.js (esm)
2023-07-21T16:56:31.231630893Z	- __next-on-pages-dist__/chunks/5149.js (esm)
2023-07-21T16:56:31.231865751Z	- __next-on-pages-dist__/chunks/5150.js (esm)
2023-07-21T16:56:31.232138433Z	- __next-on-pages-dist__/chunks/5190.js (esm)
2023-07-21T16:56:31.232149558Z	- __next-on-pages-dist__/chunks/5251.js (esm)
2023-07-21T16:56:31.232224586Z	- __next-on-pages-dist__/chunks/53.js (esm)
2023-07-21T16:56:31.232312722Z	- __next-on-pages-dist__/chunks/5373.js (esm)
2023-07-21T16:56:31.232551359Z	- __next-on-pages-dist__/chunks/539.js (esm)
2023-07-21T16:56:31.232786663Z	- __next-on-pages-dist__/chunks/5408.js (esm)
2023-07-21T16:56:31.232797744Z	- __next-on-pages-dist__/chunks/5430.js (esm)
2023-07-21T16:56:31.232870233Z	- __next-on-pages-dist__/chunks/5442.js (esm)
2023-07-21T16:56:31.233007343Z	- __next-on-pages-dist__/chunks/5462.js (esm)
2023-07-21T16:56:31.2331506Z	- __next-on-pages-dist__/chunks/5467.js (esm)
2023-07-21T16:56:31.233226278Z	- __next-on-pages-dist__/chunks/5498.js (esm)
2023-07-21T16:56:31.233613065Z	- __next-on-pages-dist__/chunks/5505.js (esm)
2023-07-21T16:56:31.233624431Z	- __next-on-pages-dist__/chunks/558.js (esm)
2023-07-21T16:56:31.233697076Z	- __next-on-pages-dist__/chunks/5590.js (esm)
2023-07-21T16:56:31.233778186Z	- __next-on-pages-dist__/chunks/5633.js (esm)
2023-07-21T16:56:31.233943306Z	- __next-on-pages-dist__/chunks/5641.js (esm)
2023-07-21T16:56:31.234038679Z	- __next-on-pages-dist__/chunks/5679.js (esm)
2023-07-21T16:56:31.234196707Z	- __next-on-pages-dist__/chunks/5704.js (esm)
2023-07-21T16:56:31.234449993Z	- __next-on-pages-dist__/chunks/5744.js (esm)
2023-07-21T16:56:31.234461599Z	- __next-on-pages-dist__/chunks/5761.js (esm)
2023-07-21T16:56:31.234542934Z	- __next-on-pages-dist__/chunks/585.js (esm)
2023-07-21T16:56:31.234690641Z	- __next-on-pages-dist__/chunks/5861.js (esm)
2023-07-21T16:56:31.234838758Z	- __next-on-pages-dist__/chunks/5881.js (esm)
2023-07-21T16:56:31.2349338Z	- __next-on-pages-dist__/chunks/5893.js (esm)
2023-07-21T16:56:31.235085076Z	- __next-on-pages-dist__/chunks/5945.js (esm)
2023-07-21T16:56:31.235372895Z	- __next-on-pages-dist__/chunks/6010.js (esm)
2023-07-21T16:56:31.235443016Z	- __next-on-pages-dist__/chunks/6021.js (esm)
2023-07-21T16:56:31.235532528Z	- __next-on-pages-dist__/chunks/606.js (esm)
2023-07-21T16:56:31.235682237Z	- __next-on-pages-dist__/chunks/619.js (esm)
2023-07-21T16:56:31.235772337Z	- __next-on-pages-dist__/chunks/623.js (esm)
2023-07-21T16:56:31.235937693Z	- __next-on-pages-dist__/chunks/627.js (esm)
2023-07-21T16:56:31.236197877Z	- __next-on-pages-dist__/chunks/6272.js (esm)
2023-07-21T16:56:31.236210037Z	- __next-on-pages-dist__/chunks/628.js (esm)
2023-07-21T16:56:31.236353349Z	- __next-on-pages-dist__/chunks/629.js (esm)
2023-07-21T16:56:31.236455124Z	- __next-on-pages-dist__/chunks/6346.js (esm)
2023-07-21T16:56:31.236615624Z	- __next-on-pages-dist__/chunks/6411.js (esm)
2023-07-21T16:56:31.236704663Z	- __next-on-pages-dist__/chunks/6447.js (esm)
2023-07-21T16:56:31.236866369Z	- __next-on-pages-dist__/chunks/6474.js (esm)
2023-07-21T16:56:31.237142531Z	- __next-on-pages-dist__/chunks/65.js (esm)
2023-07-21T16:56:31.237154216Z	- __next-on-pages-dist__/chunks/6500.js (esm)
2023-07-21T16:56:31.237302574Z	- __next-on-pages-dist__/chunks/6508.js (esm)
2023-07-21T16:56:31.237386429Z	- __next-on-pages-dist__/chunks/6513.js (esm)
2023-07-21T16:56:31.237553661Z	- __next-on-pages-dist__/chunks/6523.js (esm)
2023-07-21T16:56:31.237643739Z	- __next-on-pages-dist__/chunks/6526.js (esm)
2023-07-21T16:56:31.237875286Z	- __next-on-pages-dist__/chunks/655.js (esm)
2023-07-21T16:56:31.238155324Z	- __next-on-pages-dist__/chunks/656.js (esm)
2023-07-21T16:56:31.238167039Z	- __next-on-pages-dist__/chunks/6568.js (esm)
2023-07-21T16:56:31.238240398Z	- __next-on-pages-dist__/chunks/6600.js (esm)
2023-07-21T16:56:31.238316424Z	- __next-on-pages-dist__/chunks/6607.js (esm)
2023-07-21T16:56:31.238482184Z	- __next-on-pages-dist__/chunks/668.js (esm)
2023-07-21T16:56:31.238575548Z	- __next-on-pages-dist__/chunks/6682.js (esm)
2023-07-21T16:56:31.238728976Z	- __next-on-pages-dist__/chunks/6686.js (esm)
2023-07-21T16:56:31.238981846Z	- __next-on-pages-dist__/chunks/67.js (esm)
2023-07-21T16:56:31.238992844Z	- __next-on-pages-dist__/chunks/6735.js (esm)
2023-07-21T16:56:31.239109423Z	- __next-on-pages-dist__/chunks/6747.js (esm)
2023-07-21T16:56:31.239209539Z	- __next-on-pages-dist__/chunks/6764.js (esm)
2023-07-21T16:56:31.239459039Z	- __next-on-pages-dist__/chunks/6771.js (esm)
2023-07-21T16:56:31.239717224Z	- __next-on-pages-dist__/chunks/6774.js (esm)
2023-07-21T16:56:31.239728866Z	- __next-on-pages-dist__/chunks/6861.js (esm)
2023-07-21T16:56:31.239806686Z	- __next-on-pages-dist__/chunks/6886.js (esm)
2023-07-21T16:56:31.239965949Z	- __next-on-pages-dist__/chunks/6900.js (esm)
2023-07-21T16:56:31.240125679Z	- __next-on-pages-dist__/chunks/6934.js (esm)
2023-07-21T16:56:31.240274676Z	- __next-on-pages-dist__/chunks/6938.js (esm)
2023-07-21T16:56:31.240537191Z	- __next-on-pages-dist__/chunks/6943.js (esm)
2023-07-21T16:56:31.240548132Z	- __next-on-pages-dist__/chunks/6957.js (esm)
2023-07-21T16:56:31.240634982Z	- __next-on-pages-dist__/chunks/7039.js (esm)
2023-07-21T16:56:31.240869473Z	- __next-on-pages-dist__/chunks/7041.js (esm)
2023-07-21T16:56:31.241173803Z	- __next-on-pages-dist__/chunks/7076.js (esm)
2023-07-21T16:56:31.24131579Z	- __next-on-pages-dist__/chunks/7078.js (esm)
2023-07-21T16:56:31.241473947Z	- __next-on-pages-dist__/chunks/7097.js (esm)
2023-07-21T16:56:31.241587249Z	- __next-on-pages-dist__/chunks/7118.js (esm)
2023-07-21T16:56:31.241729737Z	- __next-on-pages-dist__/chunks/7167.js (esm)
2023-07-21T16:56:31.241874342Z	- __next-on-pages-dist__/chunks/7203.js (esm)
2023-07-21T16:56:31.242115782Z	- __next-on-pages-dist__/chunks/7218.js (esm)
2023-07-21T16:56:31.242244353Z	- __next-on-pages-dist__/chunks/7239.js (esm)
2023-07-21T16:56:31.242386376Z	- __next-on-pages-dist__/chunks/7294.js (esm)
2023-07-21T16:56:31.242571292Z	- __next-on-pages-dist__/chunks/7297.js (esm)
2023-07-21T16:56:31.242727777Z	- __next-on-pages-dist__/chunks/733.js (esm)
2023-07-21T16:56:31.242877464Z	- __next-on-pages-dist__/chunks/7334.js (esm)
2023-07-21T16:56:31.242971225Z	- __next-on-pages-dist__/chunks/738.js (esm)
2023-07-21T16:56:31.243185158Z	- __next-on-pages-dist__/chunks/7385.js (esm)
2023-07-21T16:56:31.243329955Z	- __next-on-pages-dist__/chunks/7462.js (esm)
2023-07-21T16:56:31.243478878Z	- __next-on-pages-dist__/chunks/7493.js (esm)
2023-07-21T16:56:31.243609594Z	- __next-on-pages-dist__/chunks/7532.js (esm)
2023-07-21T16:56:31.243764709Z	- __next-on-pages-dist__/chunks/7563.js (esm)
2023-07-21T16:56:31.243903833Z	- __next-on-pages-dist__/chunks/7650.js (esm)
2023-07-21T16:56:31.244048712Z	- __next-on-pages-dist__/chunks/7707.js (esm)
2023-07-21T16:56:31.244246692Z	- __next-on-pages-dist__/chunks/7730.js (esm)
2023-07-21T16:56:31.244307623Z	- __next-on-pages-dist__/chunks/7751.js (esm)
2023-07-21T16:56:31.244548501Z	- __next-on-pages-dist__/chunks/7762.js (esm)
2023-07-21T16:56:31.244676091Z	- __next-on-pages-dist__/chunks/7879.js (esm)
2023-07-21T16:56:31.244839909Z	- __next-on-pages-dist__/chunks/7925.js (esm)
2023-07-21T16:56:31.244988243Z	- __next-on-pages-dist__/chunks/7960.js (esm)
2023-07-21T16:56:31.245532534Z	- __next-on-pages-dist__/chunks/7995.js (esm)
2023-07-21T16:56:31.245822365Z	- __next-on-pages-dist__/chunks/801.js (esm)
2023-07-21T16:56:31.246095785Z	- __next-on-pages-dist__/chunks/8086.js (esm)
2023-07-21T16:56:31.246282498Z	- __next-on-pages-dist__/chunks/81.js (esm)
2023-07-21T16:56:31.246606304Z	- __next-on-pages-dist__/chunks/8141.js (esm)
2023-07-21T16:56:31.246863177Z	- __next-on-pages-dist__/chunks/8169.js (esm)
2023-07-21T16:56:31.247123793Z	- __next-on-pages-dist__/chunks/819.js (esm)
2023-07-21T16:56:31.247357589Z	- __next-on-pages-dist__/chunks/8216.js (esm)
2023-07-21T16:56:31.247629087Z	- __next-on-pages-dist__/chunks/8320.js (esm)
2023-07-21T16:56:31.247914707Z	- __next-on-pages-dist__/chunks/8335.js (esm)
2023-07-21T16:56:31.248177634Z	- __next-on-pages-dist__/chunks/835.js (esm)
2023-07-21T16:56:31.248452292Z	- __next-on-pages-dist__/chunks/8364.js (esm)
2023-07-21T16:56:31.249398636Z	- __next-on-pages-dist__/chunks/8407.js (esm)
2023-07-21T16:56:31.249645793Z	- __next-on-pages-dist__/chunks/844.js (esm)
2023-07-21T16:56:31.249830076Z	- __next-on-pages-dist__/chunks/8460.js (esm)
2023-07-21T16:56:31.25000773Z	- __next-on-pages-dist__/chunks/8478.js (esm)
2023-07-21T16:56:31.250194633Z	- __next-on-pages-dist__/chunks/8513.js (esm)
2023-07-21T16:56:31.250366882Z	- __next-on-pages-dist__/chunks/8546.js (esm)
2023-07-21T16:56:31.250529217Z	- __next-on-pages-dist__/chunks/8677.js (esm)
2023-07-21T16:56:31.250710544Z	- __next-on-pages-dist__/chunks/8679.js (esm)
2023-07-21T16:56:31.250870656Z	- __next-on-pages-dist__/chunks/8682.js (esm)
2023-07-21T16:56:31.251054584Z	- __next-on-pages-dist__/chunks/8698.js (esm)
2023-07-21T16:56:31.251181888Z	- __next-on-pages-dist__/chunks/8700.js (esm)
2023-07-21T16:56:31.25125403Z	- __next-on-pages-dist__/chunks/8736.js (esm)
2023-07-21T16:56:31.25145008Z	- __next-on-pages-dist__/chunks/8756.js (esm)
2023-07-21T16:56:31.25482869Z	- __next-on-pages-dist__/chunks/8791.js (esm)
2023-07-21T16:56:31.254854254Z	- __next-on-pages-dist__/chunks/8839.js (esm)
2023-07-21T16:56:31.254858958Z	- __next-on-pages-dist__/chunks/8849.js (esm)
2023-07-21T16:56:31.254862748Z	- __next-on-pages-dist__/chunks/8945.js (esm)
2023-07-21T16:56:31.254901984Z	- __next-on-pages-dist__/chunks/8951.js (esm)
2023-07-21T16:56:31.254906638Z	- __next-on-pages-dist__/chunks/8974.js (esm)
2023-07-21T16:56:31.254910584Z	- __next-on-pages-dist__/chunks/9079.js (esm)
2023-07-21T16:56:31.254914353Z	- __next-on-pages-dist__/chunks/9111.js (esm)
2023-07-21T16:56:31.254918088Z	- __next-on-pages-dist__/chunks/9129.js (esm)
2023-07-21T16:56:31.25492182Z	- __next-on-pages-dist__/chunks/913.js (esm)
2023-07-21T16:56:31.254925609Z	- __next-on-pages-dist__/chunks/9136.js (esm)
2023-07-21T16:56:31.254929953Z	- __next-on-pages-dist__/chunks/9320.js (esm)
2023-07-21T16:56:31.254933727Z	- __next-on-pages-dist__/chunks/9328.js (esm)
2023-07-21T16:56:31.254937956Z	- __next-on-pages-dist__/chunks/9329.js (esm)
2023-07-21T16:56:31.254941973Z	- __next-on-pages-dist__/chunks/9380.js (esm)
2023-07-21T16:56:31.254945889Z	- __next-on-pages-dist__/chunks/9395.js (esm)
2023-07-21T16:56:31.254949762Z	- __next-on-pages-dist__/chunks/9400.js (esm)
2023-07-21T16:56:31.254953565Z	- __next-on-pages-dist__/chunks/9477.js (esm)
2023-07-21T16:56:31.25495723Z	- __next-on-pages-dist__/chunks/9625.js (esm)
2023-07-21T16:56:31.254960979Z	- __next-on-pages-dist__/chunks/9643.js (esm)
2023-07-21T16:56:31.254968622Z	- __next-on-pages-dist__/chunks/9689.js (esm)
2023-07-21T16:56:31.254972612Z	- __next-on-pages-dist__/chunks/9707.js (esm)
2023-07-21T16:56:31.25497686Z	- __next-on-pages-dist__/chunks/9745.js (esm)
2023-07-21T16:56:31.254980911Z	- __next-on-pages-dist__/chunks/9766.js (esm)
2023-07-21T16:56:31.256165924Z	- __next-on-pages-dist__/chunks/9782.js (esm)
2023-07-21T16:56:31.256184433Z	- __next-on-pages-dist__/chunks/9864.js (esm)
2023-07-21T16:56:31.256189289Z	- __next-on-pages-dist__/chunks/9886.js (esm)
2023-07-21T16:56:31.256193317Z	- __next-on-pages-dist__/chunks/9921.js (esm)
2023-07-21T16:56:31.256197044Z	- __next-on-pages-dist__/chunks/9949.js (esm)
2023-07-21T16:56:31.256201162Z	- __next-on-pages-dist__/chunks/9968.js (esm)
2023-07-21T16:56:31.256205061Z	- __next-on-pages-dist__/chunks/9974.js (esm)
2023-07-21T16:56:31.256218178Z	- __next-on-pages-dist__/chunks/9978.js (esm)
2023-07-21T16:56:31.256222418Z	- __next-on-pages-dist__/chunks/9996.js (esm)
2023-07-21T16:56:31.258170954Z	- __next-on-pages-dist__/functions/api/hello.func.js (esm)
2023-07-21T16:56:31.25819351Z	- __next-on-pages-dist__/functions/index.func.js (esm)
2023-07-21T16:56:31.258198198Z	- __next-on-pages-dist__/functions/me/profile.func.js (esm)
2023-07-21T16:56:31.258202024Z	- __next-on-pages-dist__/functions/middleware.func.js (esm)
2023-07-21T16:56:31.258206247Z	- __next-on-pages-dist__/nextjs-manifests/__BUILD_MANIFEST.js (esm)
2023-07-21T16:56:31.258210951Z	- __next-on-pages-dist__/nextjs-manifests/__NEXT_FONT_MANIFEST.js (esm)
2023-07-21T16:56:31.258214859Z	- __next-on-pages-dist__/nextjs-manifests/__REACT_LOADABLE_MANIFEST.js (esm)
2023-07-21T16:56:31.258219057Z	- __next-on-pages-dist__/assets/noto-sans-v27-latin-regular.5dda3fca77107598.ttf.bin (buffer)
2023-07-21T16:56:31.258223067Z	- __next-on-pages-dist__/wasm/wasm_a7e702bc5ba9227243abda7977c8096f59478d3f.wasm (compiled-wasm)
2023-07-21T16:56:31.258226923Z	- __next-on-pages-dist__/wasm/wasm_ef4866ecae192fd87727067cf2c0c0cf9fb8b020.wasm (compiled-wasm)
2023-07-21T16:56:31.30371358Z	✨ Compiled Worker successfully
2023-07-21T16:56:31.451501214Z	Found _routes.json in output directory. Uploading.
2023-07-21T16:56:31.46868114Z	Validating asset output directory
2023-07-21T16:56:32.29122226Z	Deploying your site to Cloudflare's global network...
2023-07-21T16:56:35.042881565Z	Parsed 1 valid header rule.
2023-07-21T16:56:36.471434907Z	Uploading... (0/30)
2023-07-21T16:56:37.591076849Z	Uploading... (10/30)
2023-07-21T16:56:37.707447407Z	Uploading... (20/30)
2023-07-21T16:56:37.899371962Z	Uploading... (30/30)
2023-07-21T16:56:37.899654376Z	✨ Success! Uploaded 30 files (1.86 sec)
2023-07-21T16:56:37.899933338Z	
2023-07-21T16:56:38.255036137Z	✨ Upload complete!
2023-07-21T16:56:40.660556Z	Success: Assets published!
2023-07-21T16:56:44.73812Z	Error: Failed to publish your Function. Got error: Your Functions script is over the 1 MiB size limit (workers.api.error.script_too_large)

@james-elicx
Copy link
Contributor

james-elicx commented Jul 21, 2023

Thank you @Richard87. Looking at this, I actually believe Clerk is causing your issues. It kind of explains something that I wasn't able to explain when I was looking at a reproduction for a Clerk issue the other day. I didn't understand why I was seeing wasm files in the reproduction, but I see the same ones in your project.

I looked at the differences when adding Clerk in a plain app.

Without Clerk:

  • 0 wasm files.
  • 0 font files.
  • total unzipped size is 600kb.

With Clerk sign-out component, context provider, and middleware:

  • 2 wasm files.
  • 1 font file.
  • total unzipped size is 2.4mb.

To me, it seems like Clerk is using things that it has no need to, and, as such, it is resulting in big wasm files (1.4mb total) and webpack chunks that don't need to be there. In your repo for instance, the unzipped middleware function goes from 30kb -> 800kb after our deduping, just because it uses clerk - for some reason it has chunks that are of no relevance, like all of reactjs.

When I look at the chunks that use the Wasm files, and the font, they actually look like they're coming from @vercel/og somewhere, and the chunk that appears to be using the @vercel/og chunk relates to ImageResponse code in Next.js. And that chunk appears to be consumed in the next/server chunk (this code). And the next/server webpack chunk is used in the @clerk/nextjs webpack chunk.

So, to summarise, it appears that Clerk is adding all this unnecessary code that shouldn't be there and thereby is massively inflating your bundle size.

@Richard87
Copy link

Thanks for doing looking into it! I'm opening an issue at Clerk side ASAP!

@IgorMinar
Copy link
Contributor

Yup, same, we only have 2 pages, and over 1mb

Edit @dario-piotrowicz / @james-elicx , sorry for the ping, is there any solution to use Nextjs on Pages? Something is not adding up :/

Edit 2: This is the result from Nextjs build:


Route (pages)                              Size     First Load JS
┌ ℇ /                                      12.7 kB         190 kB
├   /_app                                  0 B             133 kB
├ ○ /404                                   194 B           134 kB
├ ℇ /api/hello                             0 B             133 kB
├ ℇ /me/profile                            43.5 kB         221 kB
├ ○ /sign-in/[[...index]]                  408 B           134 kB
└ ○ /sign-up/[[...index]]                  408 B           134 kB
+ First Load JS shared by all              134 kB
  ├ chunks/framework-4556c45dd113b893.js   45.2 kB
  ├ chunks/main-267015de6884ae13.js        30.1 kB
  ├ chunks/pages/_app-b0675639f806e8f3.js  57 kB
  ├ chunks/webpack-45c1d38871d29bef.js     1.03 kB
  └ css/0705bda694329cbb.css               306 B

ƒ Middleware                               333 kB

@Richard87, I'd also like to point out that the numbers above are JS payload size for the client-side code and not for the server-side code. I suspect that if you were to look at the build output Vercel CLI provides you with, you'd find that the vercel output is actually several times the size of what @cloudflare/next-on-pages is pushing to Pages.

@Richard87
Copy link

Yup, absolutley, but basically 2 wasm files, one small(less than 100kb), and one big(1mb+).

And a bunch of other stuff

@IgorMinar
Copy link
Contributor

I suspect that you will find more in the Vercel CLI output. By design next-on-pages aggressively dedupes and optimizes the output Vercel CLI produces to the extent it is safe to do so without breaking the app.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants