Users can't access deployed site: "This function has crashed" - build successful & works locally

Hello, I can’t figure out why my published build isnt working.
when trying to access my site my users get an “Invocation Failed” page:

This is a react next typescript project, and I only made some changes in the code, nothing in the configuration or the packages.
serving my build locally with ssr, everything seems to work.
I have found no means to troubleshoot it myself any further, besides tediously cherry-picking commits and trying to find the breaking change, having to go through the deployment process every time.

I hope you may have a way to help me out,
Thank you!

Amir.

Below are the details
PLEASE help us help you by writing a good post!

  • we need to know your netlify site name. Example: gifted-antelope-58b104.netlify.app
    - army-life
  • Build problems? Link or paste the FULL build log & build settings screenshot
    Function Logs:
Jun 20, 05:44:30 PM: INIT_START Runtime Version: nodejs:16.v14	Runtime Version ARN: arn:aws:lambda:us-east-1::runtime:699b51cc1e44cad9b43e446b3b6f7e0834a78366955dc81cc7b459b0aa3f9175
Jun 20, 05:44:33 PM: 53be8315 ERROR  TypeError: this.getAppPathsManifest is not a function
    at NetlifyNextServer.netlifyPrebundleReact (/var/task/.netlify/functions-internal/___netlify-handler/server.js:52:43)
    at /var/task/.netlify/functions-internal/___netlify-handler/server.js:25:22
    at Server.<anonymous> (/var/task/.netlify/functions-internal/___netlify-handler/___netlify-handler.js:72:23)
    at Server.emit (node:events:513:28)
    at parserOnIncoming (node:_http_server:998:12)
    at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
Jun 20, 05:44:33 PM: 53be8315 ERROR  Unhandled Promise Rejection 	{"errorType":"Runtime.UnhandledPromiseRejection","errorMessage":"Error: Error handling request. See function logs for details.","reason":{"errorType":"Error","errorMessage":"Error handling request. See function logs for details.","stack":["Error: Error handling request. See function logs for details.","    at Server.<anonymous> (/var/task/.netlify/functions-internal/___netlify-handler/___netlify-handler.js:76:23)","    at processTicksAndRejections (node:internal/process/task_queues:96:5)"]},"promise":{},"stack":["Runtime.UnhandledPromiseRejection: Error: Error handling request. See function logs for details.","    at process.<anonymous> (file:///var/runtime/index.mjs:1189:17)","    at process.emit (node:events:525:35)","    at emit (node:internal/process/promises:140:20)","    at processPromiseRejections (node:internal/process/promises:274:27)","    at processTicksAndRejections (node:internal/process/task_queues:97:32)"]}
Jun 20, 05:44:33 PM: Unknown application error occurred
Runtime.Unknown
Jun 20, 05:44:33 PM: 53be8315 Duration: 3171.48 ms	Memory Usage: 177 MB	Init Duration: 470.16 ms
Jun 20, 05:44:33 PM: INIT_START Runtime Version: nodejs:16.v14	Runtime Version ARN: arn:aws:lambda:us-east-1::runtime:699b51cc1e44cad9b43e446b3b6f7e0834a78366955dc81cc7b459b0aa3f9175
Jun 20, 05:44:54 PM: 5add51c4 ERROR  TypeError: this.getAppPathsManifest is not a function
    at NetlifyNextServer.netlifyPrebundleReact (/var/task/.netlify/functions-internal/___netlify-handler/server.js:52:43)
    at /var/task/.netlify/functions-internal/___netlify-handler/server.js:25:22
    at Server.<anonymous> (/var/task/.netlify/functions-internal/___netlify-handler/___netlify-handler.js:72:23)
    at Server.emit (node:events:513:28)
    at parserOnIncoming (node:_http_server:998:12)
    at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)
Jun 20, 05:44:54 PM: 5add51c4 ERROR  Unhandled Promise Rejection 	{"errorType":"Runtime.UnhandledPromiseRejection","errorMessage":"Error: Error handling request. See function logs for details.","reason":{"errorType":"Error","errorMessage":"Error handling request. See function logs for details.","stack":["Error: Error handling request. See function logs for details.","    at Server.<anonymous> (/var/task/.netlify/functions-internal/___netlify-handler/___netlify-handler.js:76:23)","    at processTicksAndRejections (node:internal/process/task_queues:96:5)"]},"promise":{},"stack":["Runtime.UnhandledPromiseRejection: Error: Error handling request. See function logs for details.","    at process.<anonymous> (file:///var/runtime/index.mjs:1189:17)","    at process.emit (node:events:525:35)","    at emit (node:internal/process/promises:140:20)","    at processPromiseRejections (node:internal/process/promises:274:27)","    at processTicksAndRejections (node:internal/process/task_queues:97:32)"]}
Jun 20, 05:44:54 PM: Unknown application error occurred
Runtime.Unknown
Jun 20, 05:44:54 PM: 5add51c4 Duration: 3067.18 ms	Memory Usage: 109 MB
Jun 20, 05:44:54 PM: INIT_START Runtime Version: nodejs:16.v14	Runtime Version ARN: arn:aws:lambda:us-east-1::runtime:699b51cc1e44cad9b43e446b3b6f7e0834a78366955dc81cc7b459b0aa3f9175

Build Logs:

3:57:54 PM: Starting post processing
3:57:54 PM: Skipping HTML post processing
3:57:54 PM: Post processing - header rules
3:57:55 PM: Post processing - redirect rules
3:57:55 PM: Post processing done
3:57:55 PM: Section completed: postprocessing
3:57:56 PM: Site is live ✨
3:55:39 PM: build-image version: c11c0eb9939c949586b0f78302107908b668a11e (focal)
3:55:39 PM: buildbot version: c11c0eb9939c949586b0f78302107908b668a11e
3:55:40 PM: Fetching cached dependencies
3:55:40 PM: Starting to download cache of 696.7MB
3:55:48 PM: Finished downloading cache in 8.468s
3:55:48 PM: Starting to extract cache
3:55:54 PM: Finished extracting cache in 5.4s
3:55:54 PM: Finished fetching cache in 13.967s
3:55:54 PM: Starting to prepare the repo for build
3:55:54 PM: Preparing Git Reference refs/heads/main
3:55:56 PM: Starting to install dependencies
3:55:56 PM: Python version set to 3.8
3:55:56 PM: Attempting Ruby version 2.7.2, read from environment
3:55:56 PM: Using Ruby version 2.7.2
3:55:57 PM: Started restoring cached go cache
3:55:57 PM: Finished restoring cached go cache
3:55:57 PM: Installing Go version 1.17 (requested 1.17)
3:56:01 PM: go version go1.17 linux/amd64
3:56:01 PM: Using PHP version 8.0
3:56:02 PM: Started restoring cached Node.js version
3:56:03 PM: Finished restoring cached Node.js version
3:56:03 PM: v16.20.0 is already installed.
3:56:04 PM: Now using node v16.20.0 (npm v8.19.4)
3:56:04 PM: Enabling Node.js Corepack
3:56:04 PM: Started restoring cached build plugins
3:56:04 PM: Finished restoring cached build plugins
3:56:04 PM: Started restoring cached corepack dependencies
3:56:04 PM: Finished restoring cached corepack dependencies
3:56:04 PM: Started restoring cached yarn cache
3:56:09 PM: Finished restoring cached yarn cache
3:56:09 PM: No yarn workspaces detected
3:56:09 PM: Started restoring cached node modules
3:56:09 PM: Finished restoring cached node modules
3:56:09 PM: Installing npm packages using Yarn version 1.22.19
3:56:10 PM: yarn install v1.22.19
3:56:10 PM: [1/4] Resolving packages...
3:56:10 PM: success Already up-to-date.
3:56:10 PM: Done in 0.24s.
3:56:10 PM: npm packages installed using Yarn
3:56:10 PM: Install dependencies script success
3:56:10 PM: Starting build script
3:56:11 PM: Detected 1 framework(s)
3:56:11 PM: next at version 12.1.6
3:56:11 PM: Section completed: initializing
3:56:12 PM: ​
3:56:12 PM: Netlify Build                                                 
3:56:12 PM: ────────────────────────────────────────────────────────────────
3:56:12 PM: ​
3:56:12 PM: ❯ Version
3:56:12 PM:   @netlify/build 29.12.1
3:56:12 PM: ​
3:56:12 PM: ❯ Flags
3:56:12 PM:   baseRelDir: true
3:56:12 PM:   buildId: 6491a1c9e30aa600088e30fa
3:56:12 PM:   deployId: 6491a1c9e30aa600088e30fc
3:56:12 PM: ​
3:56:12 PM: ❯ Current directory
3:56:12 PM:   /opt/build/repo
3:56:12 PM: ​
3:56:12 PM: ❯ Config file
3:56:12 PM:   /opt/build/repo/netlify.toml
3:56:12 PM: ​
3:56:12 PM: ❯ Context
3:56:12 PM:   production
3:56:13 PM: ​
3:56:13 PM: ❯ Installing plugins
3:56:13 PM:    - @netlify/plugin-nextjs@4.38.0
3:56:14 PM: ​
3:56:14 PM: ❯ Using Next.js Runtime - v4.38.0
3:56:15 PM: ​
3:56:15 PM: @netlify/plugin-nextjs (onPreBuild event)                     
3:56:15 PM: ────────────────────────────────────────────────────────────────
3:56:15 PM: ​
3:56:15 PM: Next.js cache restored.
3:56:15 PM: Netlify configuration property build.environment.NEXT_PRIVATE_TARGET value changed.
3:56:15 PM: ​
3:56:15 PM: (@netlify/plugin-nextjs onPreBuild completed in 186ms)
3:56:15 PM: ​
3:56:15 PM: Build command from Netlify app                                
3:56:15 PM: ────────────────────────────────────────────────────────────────
3:56:15 PM: ​
3:56:15 PM: $ yarn build
3:56:16 PM: yarn run v1.22.19
3:56:16 PM: $ next build
3:56:16 PM: Browserslist: caniuse-lite is outdated. Please run:
3:56:16 PM:   npx browserslist@latest --update-db
3:56:16 PM:   Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
3:56:16 PM: info  - Checking validity of types...
3:56:25 PM: info  - Creating an optimized production build...
3:56:25 PM: info  - Disabled SWC as replacement for Babel because of custom Babel configuration .babelrc https://nextjs.org/docs/messages/swc-disabled
3:56:25 PM: Browserslist: caniuse-lite is outdated. Please run:
3:56:25 PM:   npx browserslist@latest --update-db
3:56:25 PM:   Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
3:56:26 PM: info  - Using external babel configuration from /opt/build/repo/.babelrc
3:56:30 PM: (node:3780) [DEP_WEBPACK_MODULE_UPDATE_HASH] DeprecationWarning: Module.updateHash: Use new ChunkGraph API
3:56:30 PM: (Use `node --trace-deprecation ...` to show where the warning was created)
3:56:58 PM: warn  - Compiled with warnings
3:56:58 PM: ./node_modules/smoke-effect/dist/smoke.js
3:56:58 PM: Critical dependency: the request of a dependency is an expression
3:56:58 PM: Import trace for requested module:
3:56:58 PM: ./components/animated/Smoke.tsx
3:56:58 PM: ./pages/index.tsx
3:56:58 PM: info  - Collecting page data...
3:57:08 PM: info  - Generating static pages (0/6)
3:57:10 PM: info  - Generating static pages (1/6)
3:57:10 PM: info  - Generating static pages (2/6)
3:57:11 PM: info  - Generating static pages (4/6)
3:57:11 PM: info  - Generating static pages (6/6)
3:57:11 PM: info  - Finalizing page optimization...
3:57:11 PM: Page                                       Size     First Load JS
3:57:11 PM: ┌ λ /                                      7.64 kB         411 kB
3:57:11 PM: ├   /_app                                  0 B             403 kB
3:57:11 PM: ├ ○ /404                                   3.01 kB         406 kB
3:57:11 PM: ├ λ /api/auth/discord-login                0 B             403 kB
3:57:11 PM: ├ λ /api/auth/discord-logout               0 B             403 kB
3:57:11 PM: ├ λ /api/auth/discord-return               0 B             403 kB
3:57:11 PM: ├ λ /api/auth/return                       0 B             403 kB
3:57:11 PM: ├ λ /api/auth/steam-login                  0 B             403 kB
3:57:11 PM: ├ λ /api/auth/steam-logout                 0 B             403 kB
3:57:11 PM: ├ λ /api/mocks/loadout-items               0 B             403 kB
3:57:11 PM: ├ λ /api/mocks/loadout-items/[itemId]      0 B             403 kB
3:57:11 PM: ├ λ /api/mocks/loadouts                    0 B             403 kB
3:57:11 PM: ├ λ /api/mocks/loadouts/[loadoutId]        0 B             403 kB
3:57:11 PM: ├ λ /invited                               3.33 kB         407 kB
3:57:11 PM: ├ ○ /login-failed (1948 ms)                2.29 kB         405 kB
3:57:11 PM: ├ ○ /not-today (2106 ms)                   2.44 kB         406 kB
3:57:11 PM: ├ ○ /privacy-policy (1488 ms)              3.29 kB         406 kB
3:57:11 PM: ├ ○ /terms-of-use (1983 ms)                10.3 kB         414 kB
3:57:11 PM: ├ λ /test                                  5.37 kB         693 kB
3:57:11 PM: ├ λ /ui                                    8.17 kB         450 kB
3:57:11 PM: ├ λ /ui/admin                              7.1 kB          771 kB
3:57:11 PM: ├ λ /ui/editor                             4.99 kB         754 kB
3:57:11 PM: ├ λ /ui/invite                             3.58 kB         407 kB
3:57:11 PM: ├ λ /ui/loadouts                           38.7 kB         489 kB
3:57:11 PM: ├ λ /ui/players                            6.77 kB         433 kB
3:57:11 PM: ├ λ /ui/players/[playerId]                 2.34 kB         720 kB
3:57:11 PM: ├ λ /ui/units                              4.7 kB          454 kB
3:57:11 PM: └ λ /ui/units/[unitId]                     3.33 kB         750 kB
3:57:11 PM: + First Load JS shared by all              403 kB
3:57:11 PM:   ├ chunks/framework-0365125e11538b64.js   66.4 kB
3:57:11 PM:   ├ chunks/main-782386d108ad399e.js        26.1 kB
3:57:11 PM:   ├ chunks/pages/_app-8565d2ed6fcd7061.js  309 kB
3:57:11 PM:   ├ chunks/webpack-97d1dca27ce005e5.js     1.81 kB
3:57:11 PM:   └ css/a2ce688fb438e06d.css               72.9 kB
3:57:11 PM: λ  (Server)  server-side renders at runtime (uses getInitialProps or getServerSideProps)
3:57:11 PM: ○  (Static)  automatically rendered as static HTML (uses no initial props)
3:57:11 PM: Done in 55.67s.
3:57:11 PM: ​
3:57:11 PM: (build.command completed in 55.8s)
3:57:11 PM: ​
3:57:11 PM: @netlify/plugin-nextjs (onBuild event)                        
3:57:11 PM: ────────────────────────────────────────────────────────────────
3:57:11 PM: ​
3:57:12 PM: This version of Next.js doesn't support advanced API routes. Skipping...
Moving static page files to serve from CDN...
3:57:12 PM: Moved 6 files
3:57:12 PM: You are not using Netlify Edge Functions for image format detection. Set env var NEXT_FORCE_EDGE_IMAGES=true to enable.
3:57:12 PM: Netlify configuration property redirects value changed to [
3:57:12 PM:   { from: '/_next/static/*', to: '/static/:splat', status: 200 },
3:57:12 PM:   {
3:57:12 PM:     from: '/_next/image*',
3:57:12 PM:     query: { url: ':url', w: ':width', q: ':quality' },
3:57:12 PM:     to: '/_ipx/w_:width,q_:quality/:url',
3:57:12 PM:     status: 301
3:57:12 PM:   },
3:57:12 PM:   { from: '/_ipx/*', to: '/.netlify/builders/_ipx', status: 200 },
3:57:12 PM:   {
3:57:12 PM:     from: '/api/*',
3:57:12 PM:     to: '/.netlify/functions/___netlify-handler',
3:57:12 PM:     status: 200
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/ammo-white.svg',
3:57:12 PM:     to: '/ammo-white.svg',
3:57:12 PM:     conditions: { Cookie: [Array] },
3:57:12 PM:     status: 200
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/ammo.svg',
3:57:12 PM:     to: '/ammo.svg',
3:57:12 PM:     conditions: { Cookie: [Array] },
3:57:12 PM:     status: 200
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/backpack.svg',
3:57:12 PM:     to: '/backpack.svg',
3:57:12 PM:     conditions: { Cookie: [Array] },
3:57:12 PM:     status: 200
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/blufor.jpg',
3:57:12 PM:     to: '/blufor.jpg',
3:57:12 PM:     conditions: { Cookie: [Array] },
3:57:12 PM:     status: 200
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/commander.svg',
3:57:12 PM:     to: '/commander.svg',
3:57:12 PM:     conditions: { Cookie: [Array] },
3:57:12 PM:     status: 200
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/discord-black.svg',
3:57:12 PM:     to: '/discord-black.svg',
3:57:12 PM:     conditions: { Cookie: [Array] },
3:57:12 PM:     status: 200
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/discord-lightbrown.svg',
3:57:12 PM:     to: '/discord-lightbrown.svg',
3:57:12 PM:     conditions: { Cookie: [Array] },
3:57:12 PM:     status: 200
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/discord.svg',
3:57:12 PM:     to: '/discord.svg',
3:57:12 PM:     conditions: { Cookie: [Array] },
3:57:12 PM:     status: 200
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/favicon.ico',
3:57:12 PM:     to: '/favicon.ico',
3:57:12 PM:     conditions: { Cookie: [Array] },
3:57:12 PM:     status: 200
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/google.svg',
3:57:12 PM:     to: '/google.svg',
3:57:12 PM:     conditions: { Cookie: [Array] },
3:57:12 PM:     status: 200
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/izkor.png',
3:57:12 PM:     to: '/izkor.png',
3:57:12 PM:     conditions: { Cookie: [Array] },
3:57:12 PM:     status: 200
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/landing-page-bottom.webp',
3:57:12 PM:     to: '/landing-page-bottom.webp',
3:57:12 PM:     conditions: { Cookie: [Array] },
3:57:12 PM:     status: 200
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/landing-page-mid.webp',
3:57:12 PM:     to: '/landing-page-mid.webp',
3:57:12 PM:     conditions: { Cookie: [Array] },
3:57:12 PM:     status: 200
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/landing-page-top.webp',
3:57:12 PM:     to: '/landing-page-top.webp',
3:57:12 PM:     conditions: { Cookie: [Array] },
3:57:12 PM:     status: 200
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/logo-horizontal-light.png',
3:57:12 PM:     to: '/logo-horizontal-light.png',
3:57:12 PM:     conditions: { Cookie: [Array] },
3:57:12 PM:     status: 200
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/logo-horizontal-small.svg',
3:57:12 PM:     to: '/logo-horizontal-small.svg',
3:57:12 PM:     conditions: { Cookie: [Array] },
3:57:12 PM:     status: 200
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/logo-horizontal.png',
3:57:12 PM:     to: '/logo-horizontal.png',
3:57:12 PM:     conditions: { Cookie: [Array] },
3:57:12 PM:     status: 200
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/logo-landing.png',
3:57:12 PM:     to: '/logo-landing.png',
3:57:12 PM:     conditions: { Cookie: [Array] },
3:57:12 PM:     status: 200
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/logo-small.svg',
3:57:12 PM:     to: '/logo-small.svg',
3:57:12 PM:     conditions: { Cookie: [Array] },
3:57:12 PM:     status: 200
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/logo.png',
3:57:12 PM:     to: '/logo.png',
3:57:12 PM:     conditions: { Cookie: [Array] },
3:57:12 PM:     status: 200
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/medal.svg',
3:57:12 PM:     to: '/medal.svg',
3:57:12 PM:     conditions: { Cookie: [Array] },
3:57:12 PM:     status: 200
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/no-side.jpg',
3:57:12 PM:     to: '/no-side.jpg',
3:57:12 PM:     conditions: { Cookie: [Array] },
3:57:12 PM:     status: 200
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/opfor.jpg',
3:57:12 PM:     to: '/opfor.jpg',
3:57:12 PM:     conditions: { Cookie: [Array] },
3:57:12 PM:     status: 200
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/side-neutral.jpg',
3:57:12 PM:     to: '/side-neutral.jpg',
3:57:12 PM:     conditions: { Cookie: [Array] },
3:57:12 PM:     status: 200
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/soldier.png',
3:57:12 PM:     to: '/soldier.png',
3:57:12 PM:     conditions: { Cookie: [Array] },
3:57:12 PM:     status: 200
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/steam.svg',
3:57:12 PM:     to: '/steam.svg',
3:57:12 PM:     conditions: { Cookie: [Array] },
3:57:12 PM:     status: 200
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/tiktok.svg',
3:57:12 PM:     to: '/tiktok.svg',
3:57:12 PM:     conditions: { Cookie: [Array] },
3:57:12 PM:     status: 200
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/twitch.svg',
3:57:12 PM:     to: '/twitch.svg',
3:57:12 PM:     conditions: { Cookie: [Array] },
3:57:12 PM:     status: 200
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/weight-white.svg',
3:57:12 PM:     to: '/weight-white.svg',
3:57:12 PM:     conditions: { Cookie: [Array] },
3:57:12 PM:     status: 200
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/weight.svg',
3:57:12 PM:     to: '/weight.svg',
3:57:12 PM:     conditions: { Cookie: [Array] },
3:57:12 PM:     status: 200
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/zeus.svg',
3:57:12 PM:     to: '/zeus.svg',
3:57:12 PM:     conditions: { Cookie: [Array] },
3:57:12 PM:     status: 200
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/*',
3:57:12 PM:     to: '/.netlify/functions/___netlify-handler',
3:57:12 PM:     status: 200,
3:57:12 PM:     conditions: { Cookie: [Array] },
3:57:12 PM:     force: true
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/_next/data/wLGjppjCAgquN-v-C3q4i/index.json',
3:57:12 PM:     to: '/.netlify/functions/___netlify-handler',
3:57:12 PM:     status: 200,
3:57:12 PM:     force: false
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/',
3:57:12 PM:     to: '/.netlify/functions/___netlify-handler',
3:57:12 PM:     status: 200,
3:57:12 PM:     force: false
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/_next/data/wLGjppjCAgquN-v-C3q4i/invited.json',
3:57:12 PM:     to: '/.netlify/functions/___netlify-handler',
3:57:12 PM:     status: 200,
3:57:12 PM:     force: false
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/invited',
3:57:12 PM:     to: '/.netlify/functions/___netlify-handler',
3:57:12 PM:     status: 200,
3:57:12 PM:     force: false
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/_next/data/wLGjppjCAgquN-v-C3q4i/login-failed.json',
3:57:12 PM:     to: '/.netlify/functions/___netlify-handler',
3:57:12 PM:     status: 200,
3:57:12 PM:     force: false
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/login-failed',
3:57:12 PM:     to: '/.netlify/functions/___netlify-handler',
3:57:12 PM:     status: 200,
3:57:12 PM:     force: false
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/_next/data/wLGjppjCAgquN-v-C3q4i/not-today.json',
3:57:12 PM:     to: '/.netlify/functions/___netlify-handler',
3:57:12 PM:     status: 200,
3:57:12 PM:     force: false
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/not-today',
3:57:12 PM:     to: '/.netlify/functions/___netlify-handler',
3:57:12 PM:     status: 200,
3:57:12 PM:     force: false
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/_next/data/wLGjppjCAgquN-v-C3q4i/privacy-policy.json',
3:57:12 PM:     to: '/.netlify/functions/___netlify-handler',
3:57:12 PM:     status: 200,
3:57:12 PM:     force: false
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/privacy-policy',
3:57:12 PM:     to: '/.netlify/functions/___netlify-handler',
3:57:12 PM:     status: 200,
3:57:12 PM:     force: false
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/_next/data/wLGjppjCAgquN-v-C3q4i/terms-of-use.json',
3:57:12 PM:     to: '/.netlify/functions/___netlify-handler',
3:57:12 PM:     status: 200,
3:57:12 PM:     force: false
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/terms-of-use',
3:57:12 PM:     to: '/.netlify/functions/___netlify-handler',
3:57:12 PM:     status: 200,
3:57:12 PM:     force: false
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/_next/data/wLGjppjCAgquN-v-C3q4i/test.json',
3:57:12 PM:     to: '/.netlify/functions/___netlify-handler',
3:57:12 PM:     status: 200,
3:57:12 PM:     force: false
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/test',
3:57:12 PM:     to: '/.netlify/functions/___netlify-handler',
3:57:12 PM:     status: 200,
3:57:12 PM:     force: false
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/_next/data/wLGjppjCAgquN-v-C3q4i/ui.json',
3:57:12 PM:     to: '/.netlify/functions/___netlify-handler',
3:57:12 PM:     status: 200,
3:57:12 PM:     force: false
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/ui',
3:57:12 PM:     to: '/.netlify/functions/___netlify-handler',
3:57:12 PM:     status: 200,
3:57:12 PM:     force: false
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/_next/data/wLGjppjCAgquN-v-C3q4i/ui/admin.json',
3:57:12 PM:     to: '/.netlify/functions/___netlify-handler',
3:57:12 PM:     status: 200,
3:57:12 PM:     force: false
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/ui/admin',
3:57:12 PM:     to: '/.netlify/functions/___netlify-handler',
3:57:12 PM:     status: 200,
3:57:12 PM:     force: false
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/_next/data/wLGjppjCAgquN-v-C3q4i/ui/editor.json',
3:57:12 PM:     to: '/.netlify/functions/___netlify-handler',
3:57:12 PM:     status: 200,
3:57:12 PM:     force: false
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/ui/editor',
3:57:12 PM:     to: '/.netlify/functions/___netlify-handler',
3:57:12 PM:     status: 200,
3:57:12 PM:     force: false
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/_next/data/wLGjppjCAgquN-v-C3q4i/ui/invite.json',
3:57:12 PM:     to: '/.netlify/functions/___netlify-handler',
3:57:12 PM:     status: 200,
3:57:12 PM:     force: false
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/ui/invite',
3:57:12 PM:     to: '/.netlify/functions/___netlify-handler',
3:57:12 PM:     status: 200,
3:57:12 PM:     force: false
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/_next/data/wLGjppjCAgquN-v-C3q4i/ui/loadouts.json',
3:57:12 PM:     to: '/.netlify/functions/___netlify-handler',
3:57:12 PM:     status: 200,
3:57:12 PM:     force: false
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/ui/loadouts',
3:57:12 PM:     to: '/.netlify/functions/___netlify-handler',
3:57:12 PM:     status: 200,
3:57:12 PM:     force: false
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/_next/data/wLGjppjCAgquN-v-C3q4i/ui/players.json',
3:57:12 PM:     to: '/.netlify/functions/___netlify-handler',
3:57:12 PM:     status: 200,
3:57:12 PM:     force: false
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/ui/players',
3:57:12 PM:     to: '/.netlify/functions/___netlify-handler',
3:57:12 PM:     status: 200,
3:57:12 PM:     force: false
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/_next/data/wLGjppjCAgquN-v-C3q4i/ui/units.json',
3:57:12 PM:     to: '/.netlify/functions/___netlify-handler',
3:57:12 PM:     status: 200,
3:57:12 PM:     force: false
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/ui/units',
3:57:12 PM:     to: '/.netlify/functions/___netlify-handler',
3:57:12 PM:     status: 200,
3:57:12 PM:     force: false
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/_next/data/wLGjppjCAgquN-v-C3q4i/ui/players/:playerId.json',
3:57:12 PM:     to: '/.netlify/functions/___netlify-handler',
3:57:12 PM:     status: 200,
3:57:12 PM:     force: false
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/ui/players/:playerId',
3:57:12 PM:     to: '/.netlify/functions/___netlify-handler',
3:57:12 PM:     status: 200,
3:57:12 PM:     force: false
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/_next/data/wLGjppjCAgquN-v-C3q4i/ui/units/:unitId.json',
3:57:12 PM:     to: '/.netlify/functions/___netlify-handler',
3:57:12 PM:     status: 200,
3:57:12 PM:     force: false
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/ui/units/:unitId',
3:57:12 PM:     to: '/.netlify/functions/___netlify-handler',
3:57:12 PM:     status: 200,
3:57:12 PM:     force: false
3:57:12 PM:   },
3:57:12 PM:   {
3:57:12 PM:     from: '/*',
3:57:12 PM:     to: '/.netlify/functions/___netlify-handler',
3:57:12 PM:     status: 200
3:57:12 PM:   }
3:57:12 PM: ].
3:57:12 PM: ​
3:57:12 PM: (@netlify/plugin-nextjs onBuild completed in 265ms)
3:57:12 PM: ​
3:57:12 PM: Functions bundling                                            
3:57:12 PM: ────────────────────────────────────────────────────────────────
3:57:12 PM: ​
3:57:12 PM: Packaging Functions from .netlify/functions-internal directory:
3:57:12 PM:  - ___netlify-handler/___netlify-handler.js
3:57:12 PM:  - ___netlify-odb-handler/___netlify-odb-handler.js
3:57:12 PM:  - _ipx/_ipx.js
3:57:12 PM: ​
3:57:42 PM: ​
3:57:42 PM: (Functions bundling completed in 29.9s)
3:57:42 PM: ​
3:57:42 PM: Edge Functions bundling                                       
3:57:42 PM: ────────────────────────────────────────────────────────────────
3:57:42 PM: ​
3:57:42 PM: ​
3:57:42 PM: (Edge Functions bundling completed in 315ms)
3:57:42 PM: ​
3:57:42 PM: @netlify/plugin-nextjs (onPostBuild event)                    
3:57:42 PM: ────────────────────────────────────────────────────────────────
3:57:42 PM: ​
3:57:42 PM: Next.js cache saved.
3:57:42 PM: ​
3:57:42 PM: (@netlify/plugin-nextjs onPostBuild completed in 279ms)
3:57:42 PM: ​
3:57:42 PM: Deploy site                                                   
3:57:42 PM: ────────────────────────────────────────────────────────────────
3:57:42 PM: ​
3:57:42 PM: Starting to deploy site from '.next'
3:57:42 PM: Calculating files to upload
3:57:43 PM: 28 new files to upload
3:57:43 PM: 3 new functions to upload
3:57:54 PM: Section completed: deploying
3:57:54 PM: Site deploy was successfully initiated
3:57:54 PM: ​
3:57:54 PM: (Deploy site completed in 11.9s)
3:57:54 PM: ​
3:57:54 PM: Netlify Build Complete                                        
3:57:54 PM: ────────────────────────────────────────────────────────────────
3:57:54 PM: ​
3:57:54 PM: (Netlify Build completed in 1m 41.9s)
3:57:55 PM: Caching artifacts
3:57:55 PM: Started saving node modules
3:57:55 PM: Finished saving node modules
3:57:55 PM: Started saving build plugins
3:57:55 PM: Finished saving build plugins
3:57:55 PM: Started saving corepack cache
3:57:55 PM: Finished saving corepack cache
3:57:55 PM: Started saving yarn cache
3:57:59 PM: Finished saving yarn cache
3:57:59 PM: Started saving pip cache
3:57:59 PM: Finished saving pip cache
3:57:59 PM: Started saving emacs cask dependencies
3:57:59 PM: Finished saving emacs cask dependencies
3:57:59 PM: Started saving maven dependencies
3:57:59 PM: Finished saving maven dependencies
3:57:59 PM: Started saving boot dependencies
3:57:59 PM: Finished saving boot dependencies
3:57:59 PM: Started saving rust rustup cache
3:57:59 PM: Finished saving rust rustup cache
3:57:59 PM: Started saving go dependencies
3:57:59 PM: Finished saving go dependencies
3:57:59 PM: Build script success
3:57:59 PM: Section completed: building
3:58:10 PM: Uploading Cache of size 697.4MB
3:58:16 PM: Section completed: cleanup
3:58:16 PM: Finished processing build request in 2m36.481s

Build Settings screenshot:

The better the post - the faster the answer.

Hello, I have the same problem. Did you find any solution ?

1 Like

Hi, unfortunately no.
I was only able to publish new builds by using netlify cli in combination with the UI.
By doing next build && netlify deploy --build, and then going to the netlify deploys UI to publish the recent deploy preview. if I were to run netlify deploy --build --prod the call would either fail, or deploy a broken site (“Site not found”).
If I push code, and try to publish the build from the CI (not using CLI to build and deploy a preview locally) I get the same problem of Function Has Crashed that I described above.

I would love to get support from Netlify so I’ll be able to work on deployments as I could before.
There is a specific commit where things stopped working in production, I’ve searched through the code for hours, rollbacking parts of it, with no success. There is no sensible reason for these to break the function in production. Everything works when running locally, as well as deploying a preview and publishing from the UI - it does look like something on Netlify’s end that went wrong.

Hope this helps you at least for now :pray:

1 Like

Hey there,

I’ve got the exact same problem since today and the same log errors, however, I did not make any changes to the codebase for months (but I have triggered several deploys). It’s a NextJS project (version 12.1.0).

The error happens when you visit any route that does not exist and when you visit a redirect configured in next.config.js

hi folks!

We released an update to our runtime (v.4.38.1) which should mitigate this. Can you please try to run the builds again (if the plugin auto-installs) or force that particular version?

thanks!

1 Like

It seems that the issue is resolved for me, Thank you!

awesome to hear. thanks for confirming.