Closed tomy0000000 closed 11 months ago
I'm trying to self-host dub following the guide provided, and here's where I'm stuck:
The error says that:
The Edge Function "app.dub.co/welcome" size is 1.61 MB and your plan size limit is 1 MB.
But on the build summary
[21:56:52.809] web:build: ├ ℇ /app.dub.co/welcome 5.19 kB 743 kB
The build size is only 5.19 kB, even if adding the First Load JS shared by all (86.5 kB), it should not have exceeded the limit of 1 MB.
What could be the problem here?
ENG-111 Edge Function exceed maximum size for vercel hobby plan when self-hosting
Whoa, that's weird – thanks for spotting that! I've just updated the route to use nodejs runtime instead so this shouldn't happen again :)
I'm trying to self-host dub following the guide provided, and here's where I'm stuck:
Vercel build log
```log [21:51:39.234] Running build in Washington, D.C., USA (East) – iad1 [21:51:39.340] Cloning github.com/tomy0000000/dub (Branch: main, Commit: 36b0093) [21:51:39.678] Previous build cache not available [21:51:39.831] Cloning completed: 490.794ms [21:51:40.296] Running "vercel build" [21:51:41.616] Vercel CLI 33.0.1 [21:51:41.749] > Detected Turbo. Adjusting default settings... [21:51:42.169] Detected `pnpm-lock.yaml` version 6 generated by pnpm 8 [21:51:42.174] Running "install" command: `pnpm install`... [21:51:42.776] Scope: all 7 workspace projects [21:51:43.162] ../.. | Progress: resolved 1, reused 0, downloaded 0, added 0 [21:51:43.531] ../.. | +1658 ++++++++++++++++++++++++++++ [21:51:44.163] ../.. | Progress: resolved 1658, reused 0, downloaded 11, added 0 [21:51:45.164] ../.. | Progress: resolved 1658, reused 0, downloaded 98, added 89 [21:51:46.165] ../.. | Progress: resolved 1658, reused 0, downloaded 121, added 105 [21:51:47.165] ../.. | Progress: resolved 1658, reused 0, downloaded 199, added 187 [21:51:48.167] ../.. | Progress: resolved 1658, reused 0, downloaded 238, added 223 [21:51:49.169] ../.. | Progress: resolved 1658, reused 0, downloaded 315, added 299 [21:51:50.170] ../.. | Progress: resolved 1658, reused 0, downloaded 410, added 396 [21:51:51.169] ../.. | Progress: resolved 1658, reused 0, downloaded 462, added 453 [21:51:52.172] ../.. | Progress: resolved 1658, reused 0, downloaded 469, added 454 [21:51:53.173] ../.. | Progress: resolved 1658, reused 0, downloaded 485, added 469 [21:51:54.173] ../.. | Progress: resolved 1658, reused 0, downloaded 534, added 524 [21:51:55.176] ../.. | Progress: resolved 1658, reused 0, downloaded 550, added 542 [21:51:56.176] ../.. | Progress: resolved 1658, reused 0, downloaded 564, added 552 [21:51:57.176] ../.. | Progress: resolved 1658, reused 0, downloaded 590, added 582 [21:51:58.177] ../.. | Progress: resolved 1658, reused 0, downloaded 649, added 649 [21:51:59.178] ../.. | Progress: resolved 1658, reused 0, downloaded 663, added 654 [21:52:00.180] ../.. | Progress: resolved 1658, reused 0, downloaded 664, added 654 [21:52:01.181] ../.. | Progress: resolved 1658, reused 0, downloaded 725, added 720 [21:52:02.181] ../.. | Progress: resolved 1658, reused 0, downloaded 761, added 750 [21:52:03.181] ../.. | Progress: resolved 1658, reused 0, downloaded 791, added 780 [21:52:04.182] ../.. | Progress: resolved 1658, reused 0, downloaded 806, added 796 [21:52:05.182] ../.. | Progress: resolved 1658, reused 0, downloaded 843, added 839 [21:52:06.184] ../.. | Progress: resolved 1658, reused 0, downloaded 932, added 926 [21:52:07.185] ../.. | Progress: resolved 1658, reused 0, downloaded 948, added 937 [21:52:08.186] ../.. | Progress: resolved 1658, reused 0, downloaded 1045, added 1035 [21:52:09.198] ../.. | Progress: resolved 1658, reused 0, downloaded 1228, added 1278 [21:52:10.194] ../.. | Progress: resolved 1658, reused 0, downloaded 1279, added 1325 [21:52:11.199] ../.. | Progress: resolved 1658, reused 0, downloaded 1375, added 1422 [21:52:12.197] ../.. | Progress: resolved 1658, reused 0, downloaded 1437, added 1487 [21:52:13.210] ../.. | Progress: resolved 1658, reused 0, downloaded 1468, added 1522 [21:52:14.204] ../.. | Progress: resolved 1658, reused 0, downloaded 1480, added 1532 [21:52:15.204] ../.. | Progress: resolved 1658, reused 0, downloaded 1482, added 1532 [21:52:16.205] ../.. | Progress: resolved 1658, reused 0, downloaded 1483, added 1532 [21:52:17.209] ../.. | Progress: resolved 1658, reused 0, downloaded 1496, added 1545 [21:52:18.226] ../.. | Progress: resolved 1658, reused 0, downloaded 1506, added 1559 [21:52:19.259] ../.. | Progress: resolved 1658, reused 0, downloaded 1522, added 1571 [21:52:20.229] ../.. | Progress: resolved 1658, reused 0, downloaded 1536, added 1585 [21:52:20.916] ../.. | Progress: resolved 1658, reused 0, downloaded 1588, added 1658, done [21:52:21.885] .../node_modules/protobufjs postinstall$ node scripts/postinstall [21:52:21.914] .../node_modules/@prisma/engines postinstall$ node scripts/postinstall.js [21:52:21.938] .../node_modules/@vercel/speed-insights postinstall$ node scripts/postinstall.mjs [21:52:21.966] .../core-js@3.33.0/node_modules/core-js postinstall$ node -e "try{require('./postinstall')}catch(e){}" [21:52:21.989] .../node_modules/protobufjs postinstall: Done [21:52:21.999] .../node_modules/fast-folder-size postinstall$ node get-sysinternals-du.js [21:52:22.133] .../node_modules/@vercel/speed-insights postinstall: Done [21:52:22.187] .../core-js@3.33.0/node_modules/core-js postinstall: Done [21:52:22.423] .../node_modules/fast-folder-size postinstall: Done [21:52:23.201] .../node_modules/@prisma/engines postinstall: Done [21:52:23.399] .../esbuild@0.18.20/node_modules/esbuild postinstall$ node install.js [21:52:23.399] .../esbuild@0.16.4/node_modules/esbuild postinstall$ node install.js [21:52:23.435] .../esbuild@0.14.54/node_modules/esbuild postinstall$ node install.js [21:52:23.436] .../prisma@5.2.0/node_modules/prisma preinstall$ node scripts/preinstall-entry.js [21:52:23.560] .../esbuild@0.18.20/node_modules/esbuild postinstall: Done [21:52:23.654] .../esbuild@0.16.4/node_modules/esbuild postinstall: Done [21:52:23.680] .../prisma@5.2.0/node_modules/prisma preinstall: Done [21:52:23.704] .../esbuild@0.14.54/node_modules/esbuild postinstall: Done [21:52:23.839] .../node_modules/@prisma/client postinstall$ node scripts/postinstall.js [21:52:24.588] .../node_modules/@prisma/client postinstall: prisma:warn We could not find your Prisma schema at `prisma/schema.prisma`. [21:52:24.589] .../node_modules/@prisma/client postinstall: If you have a Prisma schema file in a custom path, you will need to run [21:52:24.589] .../node_modules/@prisma/client postinstall: `prisma generate --schema=./path/to/your/schema.prisma` to generate Prisma Client. [21:52:24.589] .../node_modules/@prisma/client postinstall: If you do not have a Prisma schema file yet, you can ignore this message. [21:52:24.634] .../node_modules/@prisma/client postinstall: Done [21:52:25.099] [21:52:25.099] dependencies: [21:52:25.099] + @boxyhq/saml-jackson 1.14.2 [21:52:25.100] + @dub/tailwind-config 0.0.2 <- ../../packages/tailwind-config [21:52:25.100] + @dub/ui 0.0.33 <- ../../packages/ui [21:52:25.100] + @dub/utils 0.0.18 <- ../../packages/utils [21:52:25.100] + @next-auth/prisma-adapter 1.0.5 [21:52:25.100] + @planetscale/database 1.7.0 [21:52:25.100] + @prisma/client 5.2.0 [21:52:25.101] + @react-email/components 0.0.7 [21:52:25.101] + @sindresorhus/slugify 2.2.1 [21:52:25.101] + @splinetool/react-spline 2.2.6 [21:52:25.101] + @splinetool/runtime 0.9.481 [21:52:25.101] + @stripe/stripe-js 1.44.1 [21:52:25.101] + @upstash/qstash 2.3.0 [21:52:25.101] + @upstash/ratelimit 0.3.6 [21:52:25.101] + @upstash/redis 1.25.1 [21:52:25.102] + @vercel/analytics 1.0.0 [21:52:25.102] + @vercel/edge 0.3.1 [21:52:25.102] + @vercel/edge-config 0.4.1 [21:52:25.102] + @vercel/og 0.0.21 [21:52:25.102] + @vercel/speed-insights 1.0.1 [21:52:25.102] + @visx/axis 2.14.0 [21:52:25.103] + @visx/event 2.6.0 [21:52:25.103] + @visx/geo 2.10.0 [21:52:25.103] + @visx/grid 2.12.2 [21:52:25.103] + @visx/responsive 2.10.0 [21:52:25.103] + @visx/scale 3.3.0 [21:52:25.103] + @visx/shape 2.12.2 [21:52:25.104] + @visx/tooltip 2.16.0 [21:52:25.104] + bottleneck 2.19.5 [21:52:25.104] + cloudinary 1.40.0 [21:52:25.104] + cmdk 0.2.0 [21:52:25.104] + cobe 0.6.3 [21:52:25.104] + concurrently 8.0.1 [21:52:25.104] + crisp-sdk-web 1.0.19 [21:52:25.105] + framer-motion 10.12.12 [21:52:25.105] + fuse.js 6.6.2 [21:52:25.105] + github-slugger 2.0.0 [21:52:25.105] + he 1.2.0 [21:52:25.105] + html-escaper 3.0.3 [21:52:25.105] + js-cookie 3.0.5 [21:52:25.106] + linkify-react 4.1.3 [21:52:25.106] + linkifyjs 4.1.3 [21:52:25.106] + lucide-react 0.299.0 [21:52:25.106] + nanoid 5.0.1 [21:52:25.106] + next 14.0.4-canary.39 [21:52:25.106] + next-auth 4.24.4 [21:52:25.106] + node-html-parser 6.1.4 [21:52:25.107] + nodemailer 6.9.3 [21:52:25.107] + npm 9.1.2 [21:52:25.107] + openapi-types 12.1.3 [21:52:25.107] + prisma 5.2.0 [21:52:25.107] + punycode 2.3.0 [21:52:25.107] + react 18.2.0 [21:52:25.108] + react-colorful 5.6.1 [21:52:25.108] + react-dom 18.2.0 [21:52:25.108] + react-dom-confetti 0.2.0 [21:52:25.108] + react-email 1.9.5 [21:52:25.108] + react-highlight-words 0.20.0 [21:52:25.108] + react-medium-image-zoom 5.1.7 [21:52:25.109] + react-parallax-tilt 1.7.70 [21:52:25.109] + react-spring 9.5.5 [21:52:25.109] + react-textarea-autosize 8.4.0 [21:52:25.109] + react-tweet 3.1.1 [21:52:25.109] + rehype-autolink-headings 6.1.1 [21:52:25.109] + rehype-pretty-code 0.9.5 [21:52:25.110] + rehype-slug 5.1.0 [21:52:25.110] + remark-gfm 3.0.1 [21:52:25.110] + resend 1.1.0 [21:52:25.110] + shiki 0.14.1 [21:52:25.110] + sonner 0.5.0 [21:52:25.110] + stripe 12.12.0 [21:52:25.110] + swr 2.1.5 [21:52:25.111] + topojson-client 3.1.0 [21:52:25.111] + unsplash-js 7.0.18 [21:52:25.111] + use-debounce 8.0.4 [21:52:25.111] + vaul 0.6.8 [21:52:25.111] [21:52:25.111] devDependencies: [21:52:25.111] + @trivago/prettier-plugin-sort-imports 4.0.0 [21:52:25.111] + @types/dotenv-flow 3.3.2 [21:52:25.112] + @types/he 1.2.3 [21:52:25.112] + @types/html-escaper 3.0.0 [21:52:25.112] + @types/ms 0.7.31 [21:52:25.112] + @types/node 18.11.9 [21:52:25.112] + @types/react 18.2.14 [21:52:25.112] + @types/react-dom 18.2.14 [21:52:25.112] + @types/react-highlight-words 0.16.4 [21:52:25.113] + @types/topojson-client 3.1.1 [21:52:25.120] + array-to-ndjson 1.0.1 [21:52:25.120] + autoprefixer 10.4.16 [21:52:25.120] + dotenv-flow 4.0.0 [21:52:25.120] + papaparse 5.4.1 [21:52:25.121] + postcss 8.4.31 [21:52:25.121] + postcss-import 15.1.0 [21:52:25.121] + prettier 2.8.0 [21:52:25.121] + prettier-plugin-tailwindcss 0.1.13 [21:52:25.121] + tailwindcss 3.3.3 [21:52:25.121] + tsx 3.14.0 [21:52:25.121] + turbo 1.10.14 [21:52:25.122] + typescript 5.1.6 [21:52:25.122] [21:52:25.122] The dependency was already listed in devDependencies. [21:52:25.122] If you want to make it a prod dependency, then move it manually. [21:52:25.122] [21:52:25.244] Done in 43s [21:52:25.282] Detected Next.js version: 14.0.4-canary.39 [21:52:25.282] Running "turbo run build" [21:52:26.452] • Packages in scope: web [21:52:26.452] • Running build in 1 packages [21:52:26.452] • Remote caching enabled [21:52:26.987] @dub/utils:build: cache hit, replaying logs 1d851fb6f67833b3 [21:52:26.988] @dub/utils:build: [21:52:26.988] @dub/utils:build: > @dub/utils@0.0.18 build /vercel/path0/packages/utils [21:52:26.988] @dub/utils:build: > tsup [21:52:26.989] @dub/utils:build: [21:52:26.989] @dub/utils:build: CLI Building entry: src/index.ts, src/constants/cctlds.ts, src/constants/countries.ts, src/constants/index.ts [21:52:26.989] @dub/utils:build: CLI Using tsconfig: tsconfig.json [21:52:26.989] @dub/utils:build: CLI tsup v6.1.3 [21:52:26.989] @dub/utils:build: CLI Using tsup config: /vercel/path0/packages/utils/tsup.config.ts [21:52:26.989] @dub/utils:build: CLI Target: node14 [21:52:26.989] @dub/utils:build: ESM Build start [21:52:26.989] @dub/utils:build: ESM ⚡️ Build success in 22ms [21:52:26.989] @dub/utils:build: ESM dist/index.mjs 7.59 KB [21:52:26.990] @dub/utils:build: ESM dist/constants/cctlds.mjs 59.00 B [21:52:26.990] @dub/utils:build: ESM dist/constants/countries.mjs 59.00 B [21:52:26.990] @dub/utils:build: ESM dist/constants/index.mjs 999.00 B [21:52:26.990] @dub/utils:build: ESM dist/chunk-LREYXDLN.mjs 4.62 KB [21:52:26.990] @dub/utils:build: ESM dist/chunk-MODISIUH.mjs 1.37 KB [21:52:26.990] @dub/utils:build: ESM dist/chunk-3P54C65P.mjs 3.96 KB [21:52:26.990] @dub/utils:build: DTS Build start [21:52:26.990] @dub/utils:build: DTS ⚡️ Build success in 2180ms [21:52:26.990] @dub/utils:build: DTS dist/index.d.ts 3.92 KB [21:52:26.990] @dub/utils:build: DTS dist/constants/index.d.ts 3.82 KB [21:52:26.990] @dub/utils:build: DTS dist/constants/cctlds.d.ts 66.00 B [21:52:26.991] @dub/utils:build: DTS dist/constants/countries.d.ts 91.00 B [21:52:27.332] @dub/ui:build: cache hit, replaying logs 1fa1fc5c84ddc312 [21:52:27.333] @dub/ui:build: [21:52:27.333] @dub/ui:build: > @dub/ui@0.0.33 build /vercel/path0/packages/ui [21:52:27.333] @dub/ui:build: > tsup [21:52:27.333] @dub/ui:build: [21:52:27.333] @dub/ui:build: CLI Building entry: src/accordion.tsx, src/avatar.tsx, src/background.tsx, src/badge.tsx, src/button.tsx, src/copy-button.tsx, src/footer.tsx, src/form.tsx, src/icon-menu.tsx, src/index.tsx, src/inline-snippet.tsx, src/link-preview.tsx, src/max-width-wrapper.tsx, src/modal.tsx, src/nav-mobile.tsx, src/nav.tsx, src/popover.tsx, src/switch.tsx, src/tab-select.tsx, src/tooltip.tsx, src/hooks/use-toast-with-undo.tsx, src/icons/copy.tsx, src/icons/expanding-arrow.tsx, src/icons/facebook.tsx, src/icons/github.tsx, src/icons/google.tsx, src/icons/index.tsx, src/icons/linkedin.tsx, src/icons/loading-circle.tsx, src/icons/loading-dots.tsx, src/icons/loading-spinner.tsx, src/icons/logo.tsx, src/icons/logotype.tsx, src/icons/magic.tsx, src/icons/photo.tsx, src/icons/success.tsx, src/icons/tick.tsx, src/icons/twitter.tsx, src/icons/unsplash.tsx [21:52:27.334] @dub/ui:build: CLI Using tsconfig: tsconfig.json [21:52:27.334] @dub/ui:build: CLI tsup v6.1.3 [21:52:27.334] @dub/ui:build: CLI Using tsup config: /vercel/path0/packages/ui/tsup.config.ts [21:52:27.334] @dub/ui:build: CLI Target: node14 [21:52:27.334] @dub/ui:build: ESM Build start [21:52:27.334] @dub/ui:build: DTS Build start [21:52:27.334] @dub/ui:build: ESM ⚡️ Build success in 2225ms [21:52:27.334] @dub/ui:build: ESM dist/popover.mjs 187.00 B [21:52:27.334] @dub/ui:build: ESM dist/hooks/use-toast-with-undo.mjs 132.00 B [21:52:27.334] @dub/ui:build: ESM dist/icons/copy.mjs 102.00 B [21:52:27.334] @dub/ui:build: ESM dist/switch.mjs 244.00 B [21:52:27.334] @dub/ui:build: ESM dist/tab-select.mjs 102.00 B [21:52:27.334] @dub/ui:build: ESM dist/tooltip.mjs 306.00 B [21:52:27.335] @dub/ui:build: ESM dist/icons/expanding-arrow.mjs 132.00 B [21:52:27.335] @dub/ui:build: ESM dist/icons/facebook.mjs 102.00 B [21:52:27.335] @dub/ui:build: ESM dist/icon-menu.mjs 101.00 B [21:52:27.335] @dub/ui:build: ESM dist/index.mjs 2.67 KB [21:52:27.335] @dub/ui:build: ESM dist/chunk-XMVROX4C.mjs 1.25 KB [21:52:27.335] @dub/ui:build: ESM dist/chunk-YKJUOZYR.mjs 1.22 KB [21:52:27.335] @dub/ui:build: ESM dist/chunk-W5YDWGPP.mjs 453.00 B [21:52:27.335] @dub/ui:build: ESM dist/chunk-Z4MSMGYC.mjs 232.00 B [21:52:27.335] @dub/ui:build: ESM dist/inline-snippet.mjs 106.00 B [21:52:27.335] @dub/ui:build: ESM dist/chunk-O5BHK57C.mjs 198.00 B [21:52:27.335] @dub/ui:build: ESM dist/link-preview.mjs 685.00 B [21:52:27.335] @dub/ui:build: ESM dist/chunk-JOSZ3HQH.mjs 3.19 KB [21:52:27.335] @dub/ui:build: ESM dist/max-width-wrapper.mjs 137.00 B [21:52:27.335] @dub/ui:build: ESM dist/modal.mjs 214.00 B [21:52:27.335] @dub/ui:build: ESM dist/chunk-C5UQBZRO.mjs 1.44 KB [21:52:27.336] @dub/ui:build: ESM dist/nav-mobile.mjs 798.00 B [21:52:27.336] @dub/ui:build: ESM dist/chunk-LG2GCV52.mjs 2.31 KB [21:52:27.336] @dub/ui:build: ESM dist/nav.mjs 779.00 B [21:52:27.336] @dub/ui:build: ESM dist/chunk-UHQ7727U.mjs 4.26 KB [21:52:27.336] @dub/ui:build: ESM dist/accordion.mjs 200.00 B [21:52:27.336] @dub/ui:build: ESM dist/chunk-VRFDI4VC.mjs 1.06 KB [21:52:27.336] @dub/ui:build: ESM dist/avatar.mjs 147.00 B [21:52:27.336] @dub/ui:build: ESM dist/chunk-XQ3GDCOJ.mjs 704.00 B [21:52:27.336] @dub/ui:build: ESM dist/background.mjs 103.00 B [21:52:27.336] @dub/ui:build: ESM dist/chunk-QDF6KFCS.mjs 1.58 KB [21:52:27.336] @dub/ui:build: ESM dist/badge.mjs 148.00 B [21:52:27.336] @dub/ui:build: ESM dist/chunk-SJVSYLP2.mjs 669.00 B [21:52:27.336] @dub/ui:build: ESM dist/button.mjs 737.00 B [21:52:27.337] @dub/ui:build: ESM dist/copy-button.mjs 654.00 B [21:52:27.337] @dub/ui:build: ESM dist/chunk-CCBCXBV2.mjs 815.00 B [21:52:27.337] @dub/ui:build: ESM dist/footer.mjs 708.00 B [21:52:27.337] @dub/ui:build: ESM dist/chunk-FWY6QZ6S.mjs 4.59 KB [21:52:27.337] @dub/ui:build: ESM dist/chunk-ZWEN5DP4.mjs 758.00 B [21:52:27.337] @dub/ui:build: ESM dist/chunk-H76KVRIZ.mjs 240.00 B [21:52:27.337] @dub/ui:build: ESM dist/form.mjs 764.00 B [21:52:27.337] @dub/ui:build: ESM dist/chunk-7QKWDCAL.mjs 1.59 KB [21:52:27.337] @dub/ui:build: ESM dist/chunk-BTZQXRRE.mjs 1.22 KB [21:52:27.337] @dub/ui:build: ESM dist/chunk-NSAKMSFB.mjs 3.06 KB [21:52:27.337] @dub/ui:build: ESM dist/chunk-UJKRGIPQ.mjs 3.28 KB [21:52:27.337] @dub/ui:build: ESM dist/chunk-XDXOOSPE.mjs 879.00 B [21:52:27.337] @dub/ui:build: ESM dist/chunk-KONPNG2A.mjs 13.00 B [21:52:27.337] @dub/ui:build: ESM dist/chunk-77P3VTO4.mjs 3.48 KB [21:52:27.338] @dub/ui:build: ESM dist/chunk-YURUGH4S.mjs 3.62 KB [21:52:27.338] @dub/ui:build: ESM dist/chunk-2TGXECZQ.mjs 456.00 B [21:52:27.338] @dub/ui:build: ESM dist/chunk-EHYVEIOL.mjs 342.00 B [21:52:27.338] @dub/ui:build: ESM dist/chunk-XF7UWD67.mjs 1.33 KB [21:52:27.338] @dub/ui:build: ESM dist/chunk-GSQUGPJ2.mjs 312.00 B [21:52:27.338] @dub/ui:build: ESM dist/chunk-T4YFARK5.mjs 962.00 B [21:52:27.338] @dub/ui:build: ESM dist/chunk-OYEGFR5W.mjs 475.00 B [21:52:27.338] @dub/ui:build: ESM dist/chunk-5EWSH7PD.mjs 576.00 B [21:52:27.338] @dub/ui:build: ESM dist/chunk-Q2X4ZNV2.mjs 1.33 KB [21:52:27.338] @dub/ui:build: ESM dist/chunk-QA2KCGIR.mjs 353.00 B [21:52:27.338] @dub/ui:build: ESM dist/chunk-XJMCJKJR.mjs 558.00 B [21:52:27.338] @dub/ui:build: ESM dist/chunk-XUUIPPZC.mjs 979.00 B [21:52:27.338] @dub/ui:build: ESM dist/chunk-Z5P2KHPP.mjs 541.00 B [21:52:27.338] @dub/ui:build: ESM dist/chunk-3H77TFCE.mjs 1017.00 B [21:52:27.338] @dub/ui:build: ESM dist/chunk-MURAUI3W.mjs 512.00 B [21:52:27.339] @dub/ui:build: ESM dist/chunk-XSZV33MB.mjs 437.00 B [21:52:27.339] @dub/ui:build: ESM dist/chunk-ZN437PPA.mjs 25.90 KB [21:52:27.339] @dub/ui:build: ESM dist/chunk-AUBFB4SI.mjs 557.00 B [21:52:27.339] @dub/ui:build: ESM dist/index.css 36.85 KB [21:52:27.339] @dub/ui:build: ESM dist/icons/logotype.mjs 132.00 B [21:52:27.339] @dub/ui:build: ESM dist/icons/magic.mjs 102.00 B [21:52:27.339] @dub/ui:build: ESM dist/icons/photo.mjs 102.00 B [21:52:27.339] @dub/ui:build: ESM dist/icons/success.mjs 102.00 B [21:52:27.339] @dub/ui:build: ESM dist/icons/tick.mjs 102.00 B [21:52:27.339] @dub/ui:build: ESM dist/icons/twitter.mjs 132.00 B [21:52:27.339] @dub/ui:build: ESM dist/icons/unsplash.mjs 102.00 B [21:52:27.339] @dub/ui:build: ESM dist/icons/github.mjs 102.00 B [21:52:27.339] @dub/ui:build: ESM dist/icons/google.mjs 102.00 B [21:52:27.340] @dub/ui:build: ESM dist/icons/index.mjs 1.03 KB [21:52:27.340] @dub/ui:build: ESM dist/icons/linkedin.mjs 102.00 B [21:52:27.340] @dub/ui:build: ESM dist/icons/loading-circle.mjs 132.00 B [21:52:27.340] @dub/ui:build: ESM dist/icons/loading-dots.mjs 102.00 B [21:52:27.340] @dub/ui:build: ESM dist/icons/loading-spinner.mjs 132.00 B [21:52:27.340] @dub/ui:build: ESM dist/icons/logo.mjs 132.00 B [21:52:27.340] @dub/ui:build: DTS ⚡️ Build success in 5851ms [21:52:27.340] @dub/ui:build: DTS dist/accordion.d.ts 943.00 B [21:52:27.340] @dub/ui:build: DTS dist/avatar.d.ts 435.00 B [21:52:27.340] @dub/ui:build: DTS dist/background.d.ts 143.00 B [21:52:27.340] @dub/ui:build: DTS dist/badge.d.ts 659.00 B [21:52:27.340] @dub/ui:build: DTS dist/button.d.ts 489.00 B [21:52:27.340] @dub/ui:build: DTS dist/copy-button.d.ts 212.00 B [21:52:27.340] @dub/ui:build: DTS dist/footer.d.ts 135.00 B [21:52:27.341] @dub/ui:build: DTS dist/form.d.ts 514.00 B [21:52:27.341] @dub/ui:build: DTS dist/icon-menu.d.ts 270.00 B [21:52:27.341] @dub/ui:build: DTS dist/index.d.ts 4.08 KB [21:52:27.341] @dub/ui:build: DTS dist/modal.d.ts 502.00 B [21:52:27.341] @dub/ui:build: DTS dist/popover.d.ts 478.00 B [21:52:27.341] @dub/ui:build: DTS dist/switch.d.ts 530.00 B [21:52:27.341] @dub/ui:build: DTS dist/tooltip.d.ts 1.24 KB [21:52:27.341] @dub/ui:build: DTS dist/hooks/use-toast-with-undo.d.ts 241.00 B [21:52:27.341] @dub/ui:build: DTS dist/icons/copy.d.ts 184.00 B [21:52:27.341] @dub/ui:build: DTS dist/icons/expanding-arrow.d.ts 204.00 B [21:52:27.341] @dub/ui:build: DTS dist/icons/magic.d.ts 185.00 B [21:52:27.342] @dub/ui:build: DTS dist/icons/photo.d.ts 186.00 B [21:52:27.342] @dub/ui:build: DTS dist/icons/success.d.ts 190.00 B [21:52:27.342] @dub/ui:build: DTS dist/icons/tick.d.ts 183.00 B [21:52:27.342] @dub/ui:build: DTS dist/icons/loading-circle.d.ts 202.00 B [21:52:27.343] @dub/ui:build: DTS dist/icons/loading-dots.d.ts 156.00 B [21:52:27.343] @dub/ui:build: DTS dist/icons/loading-spinner.d.ts 204.00 B [21:52:27.343] @dub/ui:build: DTS dist/icons/logo.d.ts 184.00 B [21:52:27.343] @dub/ui:build: DTS dist/icons/logotype.d.ts 192.00 B [21:52:27.343] @dub/ui:build: DTS dist/icons/facebook.d.ts 218.00 B [21:52:27.343] @dub/ui:build: DTS dist/icons/github.d.ts 188.00 B [21:52:27.343] @dub/ui:build: DTS dist/icons/google.d.ts 188.00 B [21:52:27.343] @dub/ui:build: DTS dist/icons/linkedin.d.ts 218.00 B [21:52:27.343] @dub/ui:build: DTS dist/icons/twitter.d.ts 190.00 B [21:52:27.343] @dub/ui:build: DTS dist/icons/unsplash.d.ts 192.00 B [21:52:27.343] @dub/ui:build: DTS dist/max-width-wrapper.d.ts 266.00 B [21:52:27.343] @dub/ui:build: DTS dist/nav.d.ts 206.00 B [21:52:27.343] @dub/ui:build: DTS dist/nav-mobile.d.ts 141.00 B [21:52:27.343] @dub/ui:build: DTS dist/inline-snippet.d.ts 189.00 B [21:52:27.343] @dub/ui:build: DTS dist/link-preview.d.ts 332.00 B [21:52:27.344] @dub/ui:build: DTS dist/tab-select.d.ts 271.00 B [21:52:27.344] @dub/ui:build: DTS dist/icons/index.d.ts 925.00 B [21:52:27.447] web:build: cache miss, executing a2ae1e5b64570231 [21:52:27.944] web:build: [21:52:27.945] web:build: > web@ build /vercel/path0/apps/web [21:52:27.945] web:build: > prisma generate & next build [21:52:27.945] web:build: [21:52:28.807] web:build: Prisma schema loaded from prisma/schema.prisma [21:52:28.974] web:build: Attention: Next.js now collects completely anonymous telemetry regarding usage. [21:52:28.974] web:build: This information is used to shape Next.js' roadmap and prioritize features. [21:52:28.975] web:build: 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: [21:52:28.975] web:build: https://nextjs.org/telemetry [21:52:28.975] web:build: [21:52:29.384] web:build: ▲ Next.js 14.0.4-canary.39 [21:52:29.385] web:build: - Experiments (use at your own risk): [21:52:29.385] web:build: · useDeploymentId [21:52:29.385] web:build: · useDeploymentIdServerActions [21:52:29.385] web:build: [21:52:29.385] web:build: Creating an optimized production build ... [21:52:30.062] web:build: [21:52:30.062] web:build: ✔ Generated Prisma Client (v5.2.0) to ./../../node_modules/.pnpm/@prisma+client@5.2.0_prisma@5.2.0/node_modules/@prisma/client in 532ms [21:52:30.062] web:build: Start using Prisma Client in Node.js (See: https://pris.ly/d/client) [21:52:30.062] web:build: ``` [21:52:30.062] web:build: import { PrismaClient } from '@prisma/client' [21:52:30.062] web:build: const prisma = new PrismaClient() [21:52:30.062] web:build: ``` [21:52:30.063] web:build: or start using Prisma Client at the edge (See: https://pris.ly/d/accelerate) [21:52:30.063] web:build: ``` [21:52:30.063] web:build: import { PrismaClient } from '@prisma/client/edge' [21:52:30.063] web:build: const prisma = new PrismaClient() [21:52:30.063] web:build: ``` [21:52:30.063] web:build: [21:52:30.063] web:build: See other ways of importing Prisma Client: http://pris.ly/d/importing-client [21:52:30.063] web:build: [21:55:59.266] web:build: ✓ Compiled successfully [21:55:59.267] web:build: Linting and checking validity of types ... [21:56:15.549] web:build: Collecting page data ... [21:56:17.124] web:build: ⚠ Using edge runtime on a page currently disables static generation for that page [21:56:19.415] web:build: Generating static pages (0/40) ... [21:56:24.150] web:build: Anonymous analytics enabled. You can disable this by setting the DO_NOT_TRACK=1 or BOXYHQ_NO_ANALYTICS=1 environment variables [21:56:26.439] web:build: Using engine: planetscale. [21:56:29.801] web:build: Generating static pages (10/40) [21:56:36.436] web:build: Generating static pages (20/40) [21:56:40.479] web:build: Generating static pages (30/40) [21:56:41.874] web:build: ✓ Generating static pages (40/40) [21:56:42.289] web:build: Finalizing page optimization ... [21:56:42.290] web:build: Collecting build traces ... [21:56:52.741] web:build: [21:56:52.804] web:build: Route (app) Size First Load JS [21:56:52.804] web:build: ┌ ○ /_not-found 882 B 87.4 kB [21:56:52.805] web:build: ├ ● /[domain] 2.13 kB 696 kB [21:56:52.805] web:build: ├ ℇ /[domain]/stats/[key] 3.87 kB 300 kB [21:56:52.805] web:build: ├ ○ /admin.dub.co 5.01 kB 169 kB [21:56:52.805] web:build: ├ ○ /admin.dub.co/login 1.67 kB 192 kB [21:56:52.805] web:build: ├ ℇ /api 0 B 0 B [21:56:52.805] web:build: ├ λ /api/auth/[...nextauth] 0 B 0 B [21:56:52.805] web:build: ├ ℇ /api/auth/account-exists 0 B 0 B [21:56:52.805] web:build: ├ λ /api/auth/saml/authorize 0 B 0 B [21:56:52.805] web:build: ├ λ /api/auth/saml/callback 0 B 0 B [21:56:52.805] web:build: ├ λ /api/auth/saml/token 0 B 0 B [21:56:52.805] web:build: ├ λ /api/auth/saml/userinfo 0 B 0 B [21:56:52.805] web:build: ├ λ /api/auth/saml/verify 0 B 0 B [21:56:52.805] web:build: ├ λ /api/callback/bitly 0 B 0 B [21:56:52.805] web:build: ├ λ /api/callback/expire 0 B 0 B [21:56:52.805] web:build: ├ λ /api/callback/stripe 0 B 0 B [21:56:52.805] web:build: ├ λ /api/cron/domains 0 B 0 B [21:56:52.805] web:build: ├ λ /api/cron/import/bitly 0 B 0 B [21:56:52.805] web:build: ├ λ /api/cron/import/csv 0 B 0 B [21:56:52.806] web:build: ├ λ /api/cron/import/rebrandly 0 B 0 B [21:56:52.806] web:build: ├ λ /api/cron/import/short 0 B 0 B [21:56:52.806] web:build: ├ λ /api/cron/usage 0 B 0 B [21:56:52.806] web:build: ├ λ /api/domains/[domain]/exists 0 B 0 B [21:56:52.806] web:build: ├ ℇ /api/edge/metatags 0 B 0 B [21:56:52.806] web:build: ├ ℇ /api/edge/stats/[endpoint] 0 B 0 B [21:56:52.806] web:build: ├ λ /api/links 0 B 0 B [21:56:52.806] web:build: ├ λ /api/links/[linkId] 0 B 0 B [21:56:52.806] web:build: ├ λ /api/links/[linkId]/archive 0 B 0 B [21:56:52.806] web:build: ├ λ /api/links/bulk 0 B 0 B [21:56:52.806] web:build: ├ λ /api/links/count 0 B 0 B [21:56:52.806] web:build: ├ λ /api/links/exists 0 B 0 B [21:56:52.806] web:build: ├ λ /api/links/info 0 B 0 B [21:56:52.806] web:build: ├ λ /api/links/random 0 B 0 B [21:56:52.806] web:build: ├ λ /api/links/sync 0 B 0 B [21:56:52.806] web:build: ├ λ /api/me 0 B 0 B [21:56:52.806] web:build: ├ ℇ /api/og/stats 0 B 0 B [21:56:52.806] web:build: ├ λ /api/projects 0 B 0 B [21:56:52.807] web:build: ├ λ /api/projects/[slug] 0 B 0 B [21:56:52.807] web:build: ├ λ /api/projects/[slug]/billing/manage 0 B 0 B [21:56:52.807] web:build: ├ λ /api/projects/[slug]/billing/upgrade 0 B 0 B [21:56:52.807] web:build: ├ λ /api/projects/[slug]/domains 0 B 0 B [21:56:52.807] web:build: ├ λ /api/projects/[slug]/domains/[domain] 0 B 0 B [21:56:52.807] web:build: ├ λ /api/projects/[slug]/domains/[domain]/exists 0 B 0 B [21:56:52.807] web:build: ├ λ /api/projects/[slug]/domains/[domain]/verify 0 B 0 B [21:56:52.807] web:build: ├ λ /api/projects/[slug]/exists 0 B 0 B [21:56:52.807] web:build: ├ λ /api/projects/[slug]/import/bitly 0 B 0 B [21:56:52.807] web:build: ├ λ /api/projects/[slug]/import/rebrandly 0 B 0 B [21:56:52.807] web:build: ├ λ /api/projects/[slug]/import/short 0 B 0 B [21:56:52.807] web:build: ├ λ /api/projects/[slug]/invites 0 B 0 B [21:56:52.807] web:build: ├ λ /api/projects/[slug]/invites/accept 0 B 0 B [21:56:52.807] web:build: ├ λ /api/projects/[slug]/links 0 B 0 B [21:56:52.807] web:build: ├ λ /api/projects/[slug]/links/[linkId] 0 B 0 B [21:56:52.807] web:build: ├ λ /api/projects/[slug]/links/[linkId]/archive 0 B 0 B [21:56:52.807] web:build: ├ λ /api/projects/[slug]/links/bulk 0 B 0 B [21:56:52.807] web:build: ├ λ /api/projects/[slug]/links/count 0 B 0 B [21:56:52.807] web:build: ├ λ /api/projects/[slug]/links/exists 0 B 0 B [21:56:52.808] web:build: ├ λ /api/projects/[slug]/links/info 0 B 0 B [21:56:52.808] web:build: ├ λ /api/projects/[slug]/links/random 0 B 0 B [21:56:52.808] web:build: ├ λ /api/projects/[slug]/logo 0 B 0 B [21:56:52.808] web:build: ├ λ /api/projects/[slug]/saml 0 B 0 B [21:56:52.808] web:build: ├ λ /api/projects/[slug]/scim 0 B 0 B [21:56:52.808] web:build: ├ λ /api/projects/[slug]/stats 0 B 0 B [21:56:52.808] web:build: ├ λ /api/projects/[slug]/stats/[endpoint] 0 B 0 B [21:56:52.808] web:build: ├ λ /api/projects/[slug]/tags 0 B 0 B [21:56:52.808] web:build: ├ λ /api/projects/[slug]/tags/[id] 0 B 0 B [21:56:52.808] web:build: ├ λ /api/projects/[slug]/users 0 B 0 B [21:56:52.808] web:build: ├ λ /api/scim/v2.0/[...directory] 0 B 0 B [21:56:52.808] web:build: ├ λ /api/stats 0 B 0 B [21:56:52.808] web:build: ├ λ /api/stats/[endpoint] 0 B 0 B [21:56:52.808] web:build: ├ λ /api/unsplash/download 0 B 0 B [21:56:52.808] web:build: ├ ℇ /api/unsplash/search 0 B 0 B [21:56:52.808] web:build: ├ λ /api/user 0 B 0 B [21:56:52.808] web:build: ├ λ /api/user/tokens 0 B 0 B [21:56:52.808] web:build: ├ ○ /app.dub.co 2.62 kB 284 kB [21:56:52.808] web:build: ├ ○ /app.dub.co/[slug] 1.74 kB 302 kB [21:56:52.809] web:build: ├ ℇ /app.dub.co/[slug]/[domain]/[[...key]] 201 B 86.7 kB [21:56:52.809] web:build: ├ ○ /app.dub.co/[slug]/analytics 1.52 kB 323 kB [21:56:52.809] web:build: ├ ○ /app.dub.co/[slug]/domains 5.86 kB 262 kB [21:56:52.809] web:build: ├ ○ /app.dub.co/[slug]/settings 7.13 kB 181 kB [21:56:52.809] web:build: ├ ○ /app.dub.co/[slug]/settings/billing 4.55 kB 261 kB [21:56:52.809] web:build: ├ ○ /app.dub.co/[slug]/settings/people 5.11 kB 198 kB [21:56:52.809] web:build: ├ ○ /app.dub.co/[slug]/settings/security 10 kB 225 kB [21:56:52.809] web:build: ├ ○ /app.dub.co/analytics 1.4 kB 333 kB [21:56:52.809] web:build: ├ ℇ /app.dub.co/auth/saml 389 B 191 kB [21:56:52.809] web:build: ├ ○ /app.dub.co/links 511 B 301 kB [21:56:52.809] web:build: ├ ℇ /app.dub.co/links/[key] 201 B 86.7 kB [21:56:52.809] web:build: ├ ℇ /app.dub.co/login 1.66 kB 192 kB [21:56:52.809] web:build: ├ ℇ /app.dub.co/register 1.25 kB 192 kB [21:56:52.809] web:build: ├ ○ /app.dub.co/settings 6.64 kB 160 kB [21:56:52.809] web:build: ├ ○ /app.dub.co/settings/tokens 4.41 kB 179 kB [21:56:52.809] web:build: ├ ℇ /app.dub.co/welcome 5.19 kB 743 kB [21:56:52.809] web:build: ├ ℇ /banned/[domain]/[key] 230 B 181 kB [21:56:52.809] web:build: ├ ℇ /expired/[domain]/[key] 232 B 181 kB [21:56:52.810] web:build: ├ ℇ /inspect/[domain]/[key] 3.48 kB 210 kB [21:56:52.810] web:build: ├ ○ /manifest.webmanifest 0 B 0 B [21:56:52.810] web:build: ├ ● /protected/[domain]/[key] 1.08 kB 184 kB [21:56:52.810] web:build: ├ ℇ /proxy/[domain]/[key] 201 B 86.7 kB [21:56:52.810] web:build: ├ ℇ /rewrite/[url] 147 B 86.7 kB [21:56:52.810] web:build: ├ λ /robots.txt 0 B 0 B [21:56:52.810] web:build: └ λ /sitemap.xml 0 B 0 B [21:56:52.810] web:build: + First Load JS shared by all 86.5 kB [21:56:52.810] web:build: ├ chunks/3470-3690acfe5db6244c.js 31 kB [21:56:52.810] web:build: ├ chunks/bf1b5661-c0782bb6556a8a28.js 53.3 kB [21:56:52.810] web:build: ├ chunks/main-app-2fa4b251fe4fe2ba.js 251 B [21:56:52.810] web:build: └ chunks/webpack-36618cfa6e06febf.js 1.92 kB [21:56:52.810] web:build: [21:56:52.810] web:build: [21:56:52.810] web:build: ƒ Middleware 130 kB [21:56:52.810] web:build: [21:56:52.810] web:build: ○ (Static) prerendered as static content [21:56:52.810] web:build: ● (SSG) prerendered as static HTML (uses getStaticProps) [21:56:52.810] web:build: λ (Dynamic) server-rendered on demand using Node.js [21:56:52.811] web:build: ℇ (Edge Runtime) server-rendered on demand using the Edge Runtime [21:56:52.811] web:build: [21:56:53.106] [21:56:53.106] Tasks: 3 successful, 3 total [21:56:53.107] Cached: 2 cached, 3 total [21:56:53.107] Time: 4m27.117s [21:56:53.107] Summary: /vercel/path0/.turbo/runs/2Zr4DksmqLPpFQHf0m0eHoEjl9U.json [21:56:53.107] [21:56:54.605] ...writing to cache... [21:56:56.001] Traced Next.js server files in: 121.782ms [21:57:16.862] Created all serverless functions in: 20.859s [21:57:19.686] Collected static files (public/, static/, .next/static): 17.431ms [21:57:20.870] Build Completed in /vercel/output [6m] [21:57:21.247] Deploying outputs... [21:58:00.628] Error: The Edge Function "app.dub.co/welcome" size is 1.61 MB and your plan size limit is 1 MB. Learn More: https://vercel.link/edge-function-size [21:58:03.918] ```The error says that:
But on the build summary
The build size is only 5.19 kB, even if adding the First Load JS shared by all (86.5 kB), it should not have exceeded the limit of 1 MB.
What could be the problem here?