Hello,
So recently upgraded our website to Next13 current version nextjs 13.5.5, but we are still using the Pages Router.
Did all the needed code changes for the upgrade, I get no build errors, I can run the app Locally(with next dev
, next build && next start
), everything works fine. But when I try to deploy this to a Netlify deploy-preview, I get this error:
Application error: a client-side exception has occurred (see the browser console for more information).
##Deploy-preview URL: https://deploy-preview-213--goodfrontend.netlify.app/
##Branch Deploy URL: https://feat-gfed-61-next13-upgrade--goodfrontend.netlify.app/
Some screenshots from the console:
Build LOG:
10:40:41 PM: build-image version: 0c5695ad82eb9b0111196b4ab87e76fc88dfb543 (focal)
10:40:41 PM: buildbot version: 44bdaa9bbaa9912838fe50ed0826ccd09db9f453
10:40:41 PM: Fetching cached dependencies
10:40:41 PM: Starting to download cache of 308.2MB
10:40:45 PM: Finished downloading cache in 4.034s
10:40:45 PM: Starting to extract cache
10:40:50 PM: Finished extracting cache in 4.105s
10:40:50 PM: Finished fetching cache in 8.203s
10:40:50 PM: Starting to prepare the repo for build
10:40:50 PM: Preparing Git Reference pull/213/head
10:40:51 PM: Custom build path detected. Proceeding with the specified path: ""
10:40:52 PM: Starting to install dependencies
10:40:52 PM: Python version set to 3.8
10:40:52 PM: Attempting Ruby version 2.7.2, read from environment
10:40:52 PM: Using Ruby version 2.7.2
10:40:53 PM: Started restoring cached go cache
10:40:53 PM: Finished restoring cached go cache
10:40:53 PM: Installing Go version 1.16.5 (requested 1.16.5)
10:40:57 PM: go version go1.16.5 linux/amd64
10:40:57 PM: Using PHP version 8.0
10:40:58 PM: Started restoring cached Node.js version
10:40:59 PM: Finished restoring cached Node.js version
10:40:59 PM: v18.18.2 is already installed.
10:40:59 PM: Now using node v18.18.2 (npm v9.8.1)
10:40:59 PM: Enabling Node.js Corepack
10:40:59 PM: Started restoring cached build plugins
10:40:59 PM: Finished restoring cached build plugins
10:40:59 PM: Started restoring cached corepack dependencies
10:40:59 PM: Finished restoring cached corepack dependencies
10:40:59 PM: No pnpm workspaces detected
10:40:59 PM: Started restoring cached node modules
10:40:59 PM: Finished restoring cached node modules
10:41:00 PM: Installing npm packages using pnpm version 8.7.6
10:41:00 PM: Lockfile is up to date, resolution step is skipped
10:41:00 PM: Already up to date
10:41:01 PM: > goodfrontend@0.0.0 prepare /opt/build/repo
10:41:01 PM: > husky install
10:41:01 PM: husky - Git hooks installed
10:41:01 PM: Done in 1.5s
10:41:01 PM: npm packages installed using pnpm
10:41:02 PM: Install dependencies script success
10:41:02 PM: Starting build script
10:41:03 PM: Detected 1 framework(s)
10:41:03 PM: "next" at version "13.5.5"
10:41:03 PM: Section completed: initializing
10:41:05 PM: โ
10:41:05 PM: Netlify Build
10:41:05 PM: โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
10:41:05 PM: โ
10:41:05 PM: โฏ Version
10:41:05 PM: @netlify/build 29.23.4
10:41:05 PM: โ
10:41:05 PM: โฏ Flags
10:41:05 PM: baseRelDir: true
10:41:05 PM: buildId: 6533e2e8120ccc000847e827
10:41:05 PM: deployId: 6533e2e8120ccc000847e82a
10:41:05 PM: โ
10:41:05 PM: โฏ Current directory
10:41:05 PM: /opt/build/repo
10:41:05 PM: โ
10:41:05 PM: โฏ Config file
10:41:05 PM: /opt/build/repo/netlify.toml
10:41:05 PM: โ
10:41:05 PM: โฏ Context
10:41:05 PM: deploy-preview
10:41:05 PM: โ
10:41:05 PM: โฏ Using Next.js Runtime - v4.40.2
10:41:06 PM: โ
10:41:06 PM: @netlify/plugin-nextjs (onPreBuild event)
10:41:06 PM: โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
10:41:06 PM: โ
10:41:06 PM: Next.js cache restored.
10:41:06 PM: Netlify configuration property "build.environment.NEXT_PRIVATE_TARGET" value changed.
10:41:06 PM: โ
10:41:06 PM: (@netlify/plugin-nextjs onPreBuild completed in 197ms)
10:41:06 PM: โ
10:41:06 PM: build.command from netlify.toml
10:41:06 PM: โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
10:41:06 PM: โ
10:41:06 PM: $ pnpm build
10:41:06 PM: > goodfrontend@0.0.0 build /opt/build/repo
10:41:06 PM: > next build
10:41:07 PM: Linting and checking validity of types ...
10:41:12 PM: Creating an optimized production build ...
10:41:17 PM: โ Compiled successfully
10:41:17 PM: Collecting page data ...
10:41:19 PM: Warning: You have opted-out of Automatic Static Optimization due to `getInitialProps` in `pages/_app`. This does not opt-out pages with `getStaticProps`
10:41:19 PM: Read more: https://nextjs.org/docs/messages/opt-out-auto-static-optimization
10:41:20 PM: Generating static pages (0/12) ...
10:41:22 PM: Generating static pages (3/12)
10:41:22 PM: Generating static pages (6/12)
10:41:22 PM: Generating static pages (9/12)
10:41:22 PM: โ Generating static pages (12/12)
10:41:25 PM: Finalizing page optimization ...
10:41:25 PM: Collecting build traces ...
10:41:34 PM: Route (pages) Size First Load JS
10:41:34 PM: โ โ / 44.3 kB 348 kB
10:41:34 PM: โ โ css/e5832b445d419f6a.css 4.15 kB
10:41:34 PM: โ /_app 0 B 189 kB
10:41:34 PM: โ ฮป /404 699 B 190 kB
10:41:34 PM: โ โ /about 8.8 kB 238 kB
10:41:34 PM: โ โ css/571f5d6ca1280e13.css 3.99 kB
10:41:34 PM: โ ฮป /api/clear-preview-mode-cookies 0 B 189 kB
10:41:34 PM: โ ฮป /api/mailer 0 B 189 kB
10:41:34 PM: โ ฮป /api/podcast_episodes_index 0 B 189 kB
10:41:34 PM: โ ฮป /api/preview 0 B 189 kB
10:41:34 PM: โ ฮป /podcast 2.17 kB 239 kB
10:41:34 PM: โ โ /podcast/[id] (ISR: 60 Seconds) (19785 ms) 6.05 kB 264 kB
10:41:34 PM: โ โ css/9efd1f6f099e7ebc.css 690 B
10:41:34 PM: โ โ /en/podcast/4Ray9QM9yUmakoM1fXC5ti (2305 ms)
10:41:34 PM: โ โ /en/podcast/206J7LidlRcpvZANmHEk3L (2274 ms)
10:41:34 PM: โ โ /en/podcast/1YTkkR7GNNkOGDXGpG2IKg (2272 ms)
10:41:34 PM: โ โ /en/podcast/3AfMu1F5T8smvYqGR6a8jG (2248 ms)
10:41:34 PM: โ โ /en/podcast/79pAVK3rXw1JhKDUqNlPBP (2222 ms)
10:41:34 PM: โ โ /en/podcast/38LcbXFQGsbsfMyDtzq5Kn (2211 ms)
10:41:34 PM: โ โ /en/podcast/K1kAalAVioDw3PkYS6X4r (2176 ms)
10:41:34 PM: โ โ [+2 more paths] (avg 2039 ms)
10:41:34 PM: โ โ /stories 6.79 kB 269 kB
10:41:34 PM: โ โ css/36840340f3f01bb9.css 450 B
10:41:34 PM: โ โ /stories/[slug] 5.16 kB 226 kB
10:41:34 PM: + First Load JS shared by all 193 kB
10:41:34 PM: โ chunks/framework-a4b9f4216022cc2d.js 45.3 kB
10:41:34 PM: โ chunks/main-e89a4ca6b9671b11.js 33.5 kB
10:41:34 PM: โ chunks/pages/_app-cbd2c7332575cf15.js 108 kB
10:41:34 PM: โ chunks/webpack-1ae97b6569f20324.js 2.32 kB
10:41:34 PM: โ css/8f3aa1daf5f0c988.css 4.34 kB
10:41:34 PM: ฮป (Server) server-side renders at runtime (uses getInitialProps or getServerSideProps)
10:41:34 PM: โ (SSG) automatically generated as static HTML + JSON (uses getStaticProps)
10:41:34 PM: (ISR) incremental static regeneration (uses revalidate in getStaticProps)
10:41:34 PM: โ
10:41:34 PM: (build.command completed in 27.8s)
10:41:34 PM: โ
10:41:34 PM: @netlify/plugin-nextjs (onBuild event)
10:41:34 PM: โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
10:41:34 PM: โ
10:41:34 PM: Moving static page files to serve from CDN...
10:41:34 PM: Moved 0 files
10:41:34 PM: The following routes use "revalidate" values of under 60 seconds, which is not supported.
10:41:34 PM: They will use a revalidate time of 60 seconds instead.
10:41:34 PM: โโโโโโโโโโโฌโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโ
10:41:34 PM: โ (index) โ Route โ Revalidate โ
10:41:34 PM: โโโโโโโโโโโผโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโค
10:41:34 PM: โ 0 โ "/en/stories" โ 10 โ
10:41:34 PM: โ 1 โ "/en" โ 10 โ
10:41:34 PM: โโโโโโโโโโโดโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโ
10:41:34 PM: You are not using Netlify Edge Functions for image format detection. Set env var "NEXT_FORCE_EDGE_IMAGES=true" to enable.
10:41:34 PM: Netlify configuration property "redirects" value changed to [
10:41:34 PM: { from: "/_next/static/*", to: "/static/:splat", status: 200 },
10:41:34 PM: {
10:41:34 PM: from: "/:locale/_next/static/*",
10:41:34 PM: to: "/static/:splat",
10:41:34 PM: status: 200
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/_next/image*",
10:41:34 PM: query: { url: ":url", w: ":width", q: ":quality" },
10:41:34 PM: to: "/_ipx/w_:width,q_:quality/:url",
10:41:34 PM: status: 301
10:41:34 PM: },
10:41:34 PM: { from: "/_ipx/*", to: "/.netlify/builders/_ipx", status: 200 },
10:41:34 PM: {
10:41:34 PM: from: "/",
10:41:34 PM: to: "/.netlify/functions/___netlify-handler",
10:41:34 PM: status: 200,
10:41:34 PM: force: true,
10:41:34 PM: conditions: { Cookie: [Array] }
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/api/*",
10:41:34 PM: to: "/.netlify/functions/___netlify-handler",
10:41:34 PM: status: 200
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/about-bg.svg",
10:41:34 PM: to: "/about-bg.svg",
10:41:34 PM: conditions: { Cookie: [Array] },
10:41:34 PM: status: 200
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/gfed-logo.ico",
10:41:34 PM: to: "/gfed-logo.ico",
10:41:34 PM: conditions: { Cookie: [Array] },
10:41:34 PM: status: 200
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/gfed-logo.svg",
10:41:34 PM: to: "/gfed-logo.svg",
10:41:34 PM: conditions: { Cookie: [Array] },
10:41:34 PM: status: 200
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/header-design-desktop.png",
10:41:34 PM: to: "/header-design-desktop.png",
10:41:34 PM: conditions: { Cookie: [Array] },
10:41:34 PM: status: 200
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/header-design-tablet.png",
10:41:34 PM: to: "/header-design-tablet.png",
10:41:34 PM: conditions: { Cookie: [Array] },
10:41:34 PM: status: 200
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/header-design.png",
10:41:34 PM: to: "/header-design.png",
10:41:34 PM: conditions: { Cookie: [Array] },
10:41:34 PM: status: 200
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/image-fallback.jpg",
10:41:34 PM: to: "/image-fallback.jpg",
10:41:34 PM: conditions: { Cookie: [Array] },
10:41:34 PM: status: 200
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/page-not-found.svg",
10:41:34 PM: to: "/page-not-found.svg",
10:41:34 PM: conditions: { Cookie: [Array] },
10:41:34 PM: status: 200
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/placeholder-medium.jpg",
10:41:34 PM: to: "/placeholder-medium.jpg",
10:41:34 PM: conditions: { Cookie: [Array] },
10:41:34 PM: status: 200
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/play-icon.svg",
10:41:34 PM: to: "/play-icon.svg",
10:41:34 PM: conditions: { Cookie: [Array] },
10:41:34 PM: status: 200
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/purple-circle.svg",
10:41:34 PM: to: "/purple-circle.svg",
10:41:34 PM: conditions: { Cookie: [Array] },
10:41:34 PM: status: 200
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/robots.txt",
10:41:34 PM: to: "/robots.txt",
10:41:34 PM: conditions: { Cookie: [Array] },
10:41:34 PM: status: 200
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/yellow-circle.svg",
10:41:34 PM: to: "/yellow-circle.svg",
10:41:34 PM: conditions: { Cookie: [Array] },
10:41:34 PM: status: 200
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/*",
10:41:34 PM: to: "/.netlify/functions/___netlify-handler",
10:41:34 PM: status: 200,
10:41:34 PM: conditions: { Cookie: [Array] },
10:41:34 PM: force: true
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/_next/data/we8D8cdBDgziQ_3BiDd06/en/about.json",
10:41:34 PM: to: "/.netlify/builders/___netlify-odb-handler",
10:41:34 PM: status: 200,
10:41:34 PM: force: true
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/about",
10:41:34 PM: to: "/.netlify/builders/___netlify-odb-handler",
10:41:34 PM: status: 200,
10:41:34 PM: force: true
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/_next/data/we8D8cdBDgziQ_3BiDd06/en/stories.json",
10:41:34 PM: to: "/.netlify/builders/___netlify-odb-handler",
10:41:34 PM: status: 200,
10:41:34 PM: force: true
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/stories",
10:41:34 PM: to: "/.netlify/builders/___netlify-odb-handler",
10:41:34 PM: status: 200,
10:41:34 PM: force: true
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/_next/data/we8D8cdBDgziQ_3BiDd06/en.json",
10:41:34 PM: to: "/.netlify/builders/___netlify-odb-handler",
10:41:34 PM: status: 200,
10:41:34 PM: force: true
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/",
10:41:34 PM: to: "/.netlify/builders/___netlify-odb-handler",
10:41:34 PM: status: 200,
10:41:34 PM: force: true
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/_next/data/we8D8cdBDgziQ_3BiDd06/en/podcast/4Ray9QM9yUmakoM1fXC5ti.json",
10:41:34 PM: to: "/.netlify/builders/___netlify-odb-handler",
10:41:34 PM: status: 200,
10:41:34 PM: force: true
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/podcast/4Ray9QM9yUmakoM1fXC5ti",
10:41:34 PM: to: "/.netlify/builders/___netlify-odb-handler",
10:41:34 PM: status: 200,
10:41:34 PM: force: true
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/_next/data/we8D8cdBDgziQ_3BiDd06/en/podcast/3AfMu1F5T8smvYqGR6a8jG.json",
10:41:34 PM: to: "/.netlify/builders/___netlify-odb-handler",
10:41:34 PM: status: 200,
10:41:34 PM: force: true
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/podcast/3AfMu1F5T8smvYqGR6a8jG",
10:41:34 PM: to: "/.netlify/builders/___netlify-odb-handler",
10:41:34 PM: status: 200,
10:41:34 PM: force: true
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/_next/data/we8D8cdBDgziQ_3BiDd06/en/podcast/K1kAalAVioDw3PkYS6X4r.json",
10:41:34 PM: to: "/.netlify/builders/___netlify-odb-handler",
10:41:34 PM: status: 200,
10:41:34 PM: force: true
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/podcast/K1kAalAVioDw3PkYS6X4r",
10:41:34 PM: to: "/.netlify/builders/___netlify-odb-handler",
10:41:34 PM: status: 200,
10:41:34 PM: force: true
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/_next/data/we8D8cdBDgziQ_3BiDd06/en/podcast/79pAVK3rXw1JhKDUqNlPBP.json",
10:41:34 PM: to: "/.netlify/builders/___netlify-odb-handler",
10:41:34 PM: status: 200,
10:41:34 PM: force: true
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/podcast/79pAVK3rXw1JhKDUqNlPBP",
10:41:34 PM: to: "/.netlify/builders/___netlify-odb-handler",
10:41:34 PM: status: 200,
10:41:34 PM: force: true
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/_next/data/we8D8cdBDgziQ_3BiDd06/en/podcast/1YTkkR7GNNkOGDXGpG2IKg.json",
10:41:34 PM: to: "/.netlify/builders/___netlify-odb-handler",
10:41:34 PM: status: 200,
10:41:34 PM: force: true
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/podcast/1YTkkR7GNNkOGDXGpG2IKg",
10:41:34 PM: to: "/.netlify/builders/___netlify-odb-handler",
10:41:34 PM: status: 200,
10:41:34 PM: force: true
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/_next/data/we8D8cdBDgziQ_3BiDd06/en/podcast/5nbBfXgS12AESOGcS5xP5H.json",
10:41:34 PM: to: "/.netlify/builders/___netlify-odb-handler",
10:41:34 PM: status: 200,
10:41:34 PM: force: true
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/podcast/5nbBfXgS12AESOGcS5xP5H",
10:41:34 PM: to: "/.netlify/builders/___netlify-odb-handler",
10:41:34 PM: status: 200,
10:41:34 PM: force: true
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/_next/data/we8D8cdBDgziQ_3BiDd06/en/podcast/38LcbXFQGsbsfMyDtzq5Kn.json",
10:41:34 PM: to: "/.netlify/builders/___netlify-odb-handler",
10:41:34 PM: status: 200,
10:41:34 PM: force: true
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/podcast/38LcbXFQGsbsfMyDtzq5Kn",
10:41:34 PM: to: "/.netlify/builders/___netlify-odb-handler",
10:41:34 PM: status: 200,
10:41:34 PM: force: true
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/_next/data/we8D8cdBDgziQ_3BiDd06/en/podcast/62pzmVSYyzjvbCYDRPYAPu.json",
10:41:34 PM: to: "/.netlify/builders/___netlify-odb-handler",
10:41:34 PM: status: 200,
10:41:34 PM: force: true
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/podcast/62pzmVSYyzjvbCYDRPYAPu",
10:41:34 PM: to: "/.netlify/builders/___netlify-odb-handler",
10:41:34 PM: status: 200,
10:41:34 PM: force: true
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/_next/data/we8D8cdBDgziQ_3BiDd06/en/podcast/206J7LidlRcpvZANmHEk3L.json",
10:41:34 PM: to: "/.netlify/builders/___netlify-odb-handler",
10:41:34 PM: status: 200,
10:41:34 PM: force: true
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/podcast/206J7LidlRcpvZANmHEk3L",
10:41:34 PM: to: "/.netlify/builders/___netlify-odb-handler",
10:41:34 PM: status: 200,
10:41:34 PM: force: true
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/_next/data/we8D8cdBDgziQ_3BiDd06/en/podcast.json",
10:41:34 PM: to: "/.netlify/functions/___netlify-handler",
10:41:34 PM: status: 200,
10:41:34 PM: force: false
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/podcast",
10:41:34 PM: to: "/.netlify/functions/___netlify-handler",
10:41:34 PM: status: 200,
10:41:34 PM: force: false
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/_next/data/we8D8cdBDgziQ_3BiDd06/en/podcast/:id.json",
10:41:34 PM: to: "/en/404.html",
10:41:34 PM: status: 404,
10:41:34 PM: force: false
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/podcast/:id",
10:41:34 PM: to: "/en/404.html",
10:41:34 PM: status: 404,
10:41:34 PM: force: false
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/_next/data/we8D8cdBDgziQ_3BiDd06/en/stories/:slug.json",
10:41:34 PM: to: "/.netlify/builders/___netlify-odb-handler",
10:41:34 PM: status: 200,
10:41:34 PM: force: false
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/stories/:slug",
10:41:34 PM: to: "/.netlify/builders/___netlify-odb-handler",
10:41:34 PM: status: 200,
10:41:34 PM: force: false
10:41:34 PM: },
10:41:34 PM: {
10:41:34 PM: from: "/*",
10:41:34 PM: to: "/.netlify/functions/___netlify-handler",
10:41:34 PM: status: 200
10:41:34 PM: }
10:41:34 PM: ].
10:41:34 PM: โ
10:41:34 PM: (@netlify/plugin-nextjs onBuild completed in 377ms)
10:41:34 PM: โ
10:41:34 PM: Functions bundling
10:41:34 PM: โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
10:41:34 PM: โ
10:41:34 PM: Packaging Functions from .netlify/functions-internal directory:
10:41:34 PM: - ___netlify-handler/___netlify-handler.js
10:41:34 PM: - ___netlify-odb-handler/___netlify-odb-handler.js
10:41:34 PM: - _ipx/_ipx.js
10:41:34 PM: โ
10:42:32 PM: โ
10:42:32 PM: (Functions bundling completed in 58.3s)
10:42:32 PM: โ
10:42:32 PM: Edge Functions bundling
10:42:32 PM: โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
10:42:32 PM: โ
10:42:33 PM: โ
10:42:33 PM: (Edge Functions bundling completed in 289ms)
10:42:33 PM: โ
10:42:33 PM: @netlify/plugin-nextjs (onPostBuild event)
10:42:33 PM: โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
10:42:33 PM: โ
10:42:33 PM: Next.js cache saved.
10:42:33 PM: The function zip ../../../tmp/zisi-6533e2e8120ccc000847e82a/___netlify-odb-handler.zip size is 64.9 MB, which is larger than the recommended maximum size of 52.4 MB.
10:42:33 PM: This will fail the build if the unzipped size is bigger than the maximum size of 262 MB.
10:42:33 PM: There are a few reasons this could happen. You may have accidentally bundled a large dependency, or you might have a
10:42:33 PM: large number of pre-rendered pages included.
10:42:33 PM: Contains 5199 files
10:42:33 PM:
10:42:33 PM:
10:42:33 PM: These are the largest files in the zip:
10:42:33 PM: โโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโ
10:42:33 PM: โ (index) โ File โ Compressed Size โ Uncompressed Size โ
10:42:33 PM: โโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโค
10:42:33 PM: โ 1 โ "node_modules/.pnpm/@swc+core-linux-x64-musl@1.3.85/node_modules/@swc/core-linux-x64-musl/swc.linux-x64-musl.node" โ "20.9 MB" โ "55 MB" โ
10:42:33 PM: โ 2 โ "node_modules/.pnpm/@swc+core-linux-x64-gnu@1.3.85/node_modules/@swc/core-linux-x64-gnu/swc.linux-x64-gnu.node" โ "17.6 MB" โ "46.9 MB" โ
10:42:33 PM: โ 3 โ "node_modules/sharp/vendor/8.14.5/linux-x64/lib/libvips-cpp.so.42" โ "7.71 MB" โ "16.4 MB" โ
10:42:33 PM: โ 4 โ "node_modules/.pnpm/@esbuild+linux-x64@0.18.20/node_modules/@esbuild/linux-x64/bin/esbuild" โ "4.29 MB" โ "9.35 MB" โ
10:42:33 PM: โ 5 โ "node_modules/.pnpm/next@13.5.5_@babel+core@7.23.2_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/@next/font/dist/fontkit/index.js" โ "352 kB" โ "1.46 MB" โ
10:42:33 PM: โ 6 โ "node_modules/.pnpm/next@13.5.5_@babel+core@7.23.2_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/babel-packages/packages-bundle.js" โ "326 kB" โ "1.39 MB" โ
10:42:33 PM: โ 7 โ "node_modules/.pnpm/next@13.5.5_@babel+core@7.23.2_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/babel/bundle.js" โ "325 kB" โ "1.2 MB" โ
10:42:33 PM: โ 8 โ "node_modules/.pnpm/react-dom@18.2.0_react@18.2.0/node_modules/react-dom/cjs/react-dom.development.js" โ "281 kB" โ "1.03 MB" โ
10:42:33 PM: โ 9 โ "node_modules/.pnpm/terser@5.19.4/node_modules/terser/dist/bundle.min.js" โ "235 kB" โ "986 kB" โ
10:42:33 PM: โ 10 โ "node_modules/.pnpm/next@13.5.5_@babel+core@7.23.2_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/compiled/edge-runtime/index.js" โ "186 kB" โ "723 kB" โ
10:42:33 PM: โโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโ
10:42:33 PM:
10:42:33 PM:
10:42:33 PM: For more information on fixing this, see https://ntl.fyi/large-next-functions
10:42:33 PM: โ
10:42:33 PM: (@netlify/plugin-nextjs onPostBuild completed in 295ms)
10:42:33 PM: โ
10:42:33 PM: Deploy site
10:42:33 PM: โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
10:42:33 PM: โ
10:42:33 PM: Starting to deploy site from ".next"
10:42:33 PM: Calculating files to upload
10:42:34 PM: 12 new files to upload
10:42:34 PM: 3 new functions to upload
10:42:45 PM: Starting post processing
10:42:45 PM: Post processing done
10:42:45 PM: Section completed: postprocessing
10:42:45 PM: Post processing - header rules
10:42:45 PM: Post processing - redirect rules
10:42:45 PM: Skipping HTML post processing
10:42:45 PM: Section completed: deploying
10:42:45 PM: Site deploy was successfully initiated
10:42:45 PM: โ
10:42:45 PM: (Deploy site completed in 12s)
10:42:45 PM: โ
10:42:45 PM: Netlify Build Complete
10:42:45 PM: โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
10:42:45 PM: โ
10:42:45 PM: (Netlify Build completed in 1m 40.6s)
10:42:46 PM: Site is live โจ
10:42:46 PM: Caching artifacts
10:42:46 PM: Started saving node modules
10:42:46 PM: Finished saving node modules
10:42:46 PM: Started saving build plugins
10:42:46 PM: Finished saving build plugins
10:42:46 PM: Started saving corepack cache
10:42:46 PM: Finished saving corepack cache
10:42:46 PM: Started saving pip cache
10:42:46 PM: Finished saving pip cache
10:42:46 PM: Started saving emacs cask dependencies
10:42:46 PM: Finished saving emacs cask dependencies
10:42:46 PM: Started saving maven dependencies
10:42:46 PM: Finished saving maven dependencies
10:42:46 PM: Started saving boot dependencies
10:42:46 PM: Finished saving boot dependencies
10:42:46 PM: Started saving rust rustup cache
10:42:46 PM: Finished saving rust rustup cache
10:42:46 PM: Started saving go dependencies
10:42:46 PM: Finished saving go dependencies
10:42:46 PM: Build script success
10:42:46 PM: Section completed: building
10:42:48 PM: Uploading Cache of size 308.2MB
10:42:50 PM: Section completed: cleanup
10:42:50 PM: Finished processing build request in 2m8.305s
I can confirm that this is Netlify specific only, as I tried deploying to Vercel and everything works fine.
Can someone help?