Next.js dynamic route gives Internal Server Error 500

Hi!

I’m not sure what happened, but suddenly my Next.js site’s dynamic routes are no longer working. I’m always getting “Internal Server Error 500”. With no logs. My site works perfectly fine locally.

I have nothing to debug with so I am reaching out to you guys. Please help!!

My Netlify site name: silver-sopapillas-1b5647.netlify.app
Working route: https://www.under40kr.se
Not working route: https://www.under40kr.se/cities/stockholm

Build logs:

6:20:59 PM: Build ready to start
6:21:02 PM: build-image version: fcb0c1b3ada6d25c1cb58e8bc514f5f23cc14f15 (focal)
6:21:02 PM: buildbot version: ecff8a8ea00a7123ac3111778469ca25529769de
6:21:02 PM: Fetching cached dependencies
6:21:02 PM: Failed to fetch cache, continuing with build
6:21:02 PM: Starting to prepare the repo for build
6:21:02 PM: No cached dependencies found. Cloning fresh repo
6:21:02 PM: git clone --filter=blob:none https://github.com/Martinnord/under40kr
6:21:03 PM: Preparing Git Reference refs/heads/main
6:21:05 PM: Starting to install dependencies
6:21:05 PM: Python version set to 3.8
6:21:05 PM: Attempting Ruby version 2.7.2, read from environment
6:21:06 PM: Using Ruby version 2.7.2
6:21:06 PM: Started restoring cached go cache
6:21:06 PM: Finished restoring cached go cache
6:21:06 PM: Installing Go version 1.17 (requested 1.17)
6:21:10 PM: go version go1.17 linux/amd64
6:21:11 PM: Using PHP version 8.0
6:21:12 PM: Downloading and installing node v16.20.2...
6:21:12 PM: Downloading https://nodejs.org/dist/v16.20.2/node-v16.20.2-linux-x64.tar.xz...
6:21:12 PM: Computing checksum with sha256sum
6:21:12 PM: Checksums matched!
6:21:14 PM: Now using node v16.20.2 (npm v8.19.4)
6:21:14 PM: Enabling Node.js Corepack
6:21:14 PM: Started restoring cached build plugins
6:21:14 PM: Finished restoring cached build plugins
6:21:14 PM: Started restoring cached corepack dependencies
6:21:14 PM: Finished restoring cached corepack dependencies
6:21:14 PM: Started restoring cached yarn cache
6:21:14 PM: Finished restoring cached yarn cache
6:21:15 PM: Installing Yarn version 1.22.10
6:21:15 PM: Preparing yarn@1.22.10 for immediate activation...
6:21:15 PM: No yarn workspaces detected
6:21:15 PM: Started restoring cached node modules
6:21:15 PM: Finished restoring cached node modules
6:21:15 PM: Installing npm packages using Yarn version 1.22.10
6:21:16 PM: yarn install v1.22.10
6:21:16 PM: [1/4] Resolving packages...
6:21:16 PM: [2/4] Fetching packages...
6:21:39 PM: info fsevents@2.3.2: The platform "linux" is incompatible with this module.
6:21:39 PM: info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
6:21:39 PM: info @next/swc-darwin-arm64@13.3.0: The platform "linux" is incompatible with this module.
6:21:39 PM: info "@next/swc-darwin-arm64@13.3.0" is an optional dependency and failed compatibility check. Excluding it from installation.
6:21:39 PM: info @next/swc-darwin-arm64@13.3.0: The CPU architecture "x64" is incompatible with this module.
6:21:39 PM: info @next/swc-darwin-x64@13.3.0: The platform "linux" is incompatible with this module.
6:21:39 PM: info "@next/swc-darwin-x64@13.3.0" is an optional dependency and failed compatibility check. Excluding it from installation.
6:21:39 PM: info @next/swc-linux-arm64-gnu@13.3.0: The CPU architecture "x64" is incompatible with this module.
6:21:39 PM: info "@next/swc-linux-arm64-gnu@13.3.0" is an optional dependency and failed compatibility check. Excluding it from installation.
6:21:39 PM: info @next/swc-linux-arm64-musl@13.3.0: The CPU architecture "x64" is incompatible with this module.
6:21:39 PM: info "@next/swc-linux-arm64-musl@13.3.0" is an optional dependency and failed compatibility check. Excluding it from installation.
6:21:39 PM: info @next/swc-win32-arm64-msvc@13.3.0: The platform "linux" is incompatible with this module.
6:21:39 PM: info "@next/swc-win32-arm64-msvc@13.3.0" is an optional dependency and failed compatibility check. Excluding it from installation.
6:21:39 PM: info @next/swc-win32-arm64-msvc@13.3.0: The CPU architecture "x64" is incompatible with this module.
6:21:39 PM: info @next/swc-win32-ia32-msvc@13.3.0: The platform "linux" is incompatible with this module.
6:21:39 PM: info "@next/swc-win32-ia32-msvc@13.3.0" is an optional dependency and failed compatibility check. Excluding it from installation.
6:21:39 PM: info @next/swc-win32-ia32-msvc@13.3.0: The CPU architecture "x64" is incompatible with this module.
6:21:39 PM: info @next/swc-win32-x64-msvc@13.3.0: The platform "linux" is incompatible with this module.
6:21:39 PM: info "@next/swc-win32-x64-msvc@13.3.0" is an optional dependency and failed compatibility check. Excluding it from installation.
6:21:39 PM: [3/4] Linking dependencies...
6:21:39 PM: warning " > @chakra-ui/icons@2.0.11" has unmet peer dependency "@chakra-ui/system@>=2.0.0".
6:21:39 PM: warning "@chakra-ui/icons > @chakra-ui/icon@3.0.11" has unmet peer dependency "@chakra-ui/system@>=2.0.0".
6:21:39 PM: warning "@emotion/react > @emotion/babel-plugin@11.10.5" has unmet peer dependency "@babel/core@^7.0.0".
6:21:39 PM: warning "@emotion/react > @emotion/babel-plugin > @babel/plugin-syntax-jsx@7.18.6" has unmet peer dependency "@babel/core@^7.0.0-0".
6:21:39 PM: warning " > chakra-react-select@4.4.0" has unmet peer dependency "@chakra-ui/form-control@^2.0.0".
6:21:39 PM: warning " > chakra-react-select@4.4.0" has unmet peer dependency "@chakra-ui/icon@^3.0.0".
6:21:39 PM: warning " > chakra-react-select@4.4.0" has unmet peer dependency "@chakra-ui/layout@^2.0.0".
6:21:39 PM: warning " > chakra-react-select@4.4.0" has unmet peer dependency "@chakra-ui/menu@^2.0.0".
6:21:39 PM: warning " > chakra-react-select@4.4.0" has unmet peer dependency "@chakra-ui/spinner@^2.0.0".
6:21:39 PM: warning " > chakra-react-select@4.4.0" has unmet peer dependency "@chakra-ui/system@^2.0.0".
6:21:40 PM: warning "next-pwa > babel-loader@8.3.0" has unmet peer dependency "@babel/core@^7.0.0".
6:21:40 PM: warning "next-pwa > babel-loader@8.3.0" has unmet peer dependency "webpack@>=2".
6:21:40 PM: warning "next-pwa > clean-webpack-plugin@4.0.0" has unmet peer dependency "webpack@>=4.0.0 <6.0.0".
6:21:40 PM: warning "next-pwa > terser-webpack-plugin@5.3.7" has unmet peer dependency "webpack@^5.1.0".
6:21:40 PM: warning "next-pwa > workbox-webpack-plugin@6.5.4" has unmet peer dependency "webpack@^4.4.0 || ^5.9.0".
6:21:40 PM: warning " > next-sitemap@4.0.7" has unmet peer dependency "@next/env@*".
6:21:40 PM: warning " > react-firebase-hooks@2.2.0" has incorrect peer dependency "react@^16.8.0".
6:21:40 PM: warning "eslint-config-next > @typescript-eslint/parser > @typescript-eslint/typescript-estree > tsutils@3.21.0" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
6:21:54 PM: [4/4] Building fresh packages...
6:21:59 PM: Done in 43.77s.
6:21:59 PM: npm packages installed using Yarn
6:22:00 PM: Successfully installed dependencies
6:22:00 PM: Starting build script
6:22:01 PM: Detected 1 framework(s)
6:22:01 PM: "next" at version "13.3.0"
6:22:01 PM: Section completed: initializing
6:22:03 PM: ​
6:22:03 PM: Netlify Build                                                 
6:22:03 PM: ────────────────────────────────────────────────────────────────
6:22:03 PM: ​
6:22:03 PM: ❯ Version
6:22:03 PM:   @netlify/build 29.32.0
6:22:03 PM: ​
6:22:03 PM: ❯ Flags
6:22:03 PM:   baseRelDir: true
6:22:03 PM:   buildId: 65aaaf7aecc8bb0008d2b52d
6:22:03 PM:   deployId: 65aaaf7aecc8bb0008d2b52f
6:22:03 PM: ​
6:22:03 PM: ❯ Current directory
6:22:03 PM:   /opt/build/repo
6:22:03 PM: ​
6:22:03 PM: ❯ Config file
6:22:03 PM:   No config file was defined: using default values.
6:22:03 PM: ​
6:22:03 PM: ❯ Context
6:22:03 PM:   production
6:22:03 PM: ​
6:22:03 PM: ❯ Installing plugins
6:22:03 PM:    - @netlify/plugin-lighthouse@4
6:22:03 PM:    - @netlify/plugin-nextjs@4.41.3
6:22:27 PM: ​
6:22:27 PM: ❯ Using Next.js Runtime - v4.41.3
6:22:27 PM: ​
6:22:27 PM: ❯ Loading plugins
6:22:27 PM:    - @netlify/plugin-lighthouse@4.1.1 from Netlify app
6:22:27 PM: ​
6:22:27 PM: ❯ Outdated plugins
6:22:27 PM:    - @netlify/plugin-lighthouse@4.1.1: latest version is 5.0.0
6:22:27 PM:      To upgrade this plugin, please uninstall and re-install it from the Netlify plugins directory (https://app.netlify.com/plugins)
6:22:28 PM: ​
6:22:28 PM: @netlify/plugin-nextjs (onPreBuild event)                     
6:22:28 PM: ────────────────────────────────────────────────────────────────
6:22:28 PM: ​
6:22:28 PM: No Next.js cache to restore.
6:22:28 PM: Netlify configuration property "build.environment.NEXT_PRIVATE_TARGET" value changed.
6:22:28 PM: ​
6:22:28 PM: (@netlify/plugin-nextjs onPreBuild completed in 58ms)
6:22:28 PM: ​
6:22:28 PM: Build command from Netlify app                                
6:22:28 PM: ────────────────────────────────────────────────────────────────
6:22:28 PM: ​
6:22:28 PM: $ npm run build
6:22:28 PM: > under40kr@0.2.4 build
6:22:28 PM: > next build
6:22:29 PM: warn  - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
6:22:30 PM: info  - Linting and checking validity of types...
6:22:32 PM: ./pages/cities/[city]/index.js
6:22:32 PM: 226:6  Warning: React Hook useEffect has a missing dependency: "setPlaces". Either include it or remove the dependency array.  react-hooks/exhaustive-deps
6:22:32 PM: ./components/CheersModal.js
6:22:32 PM: 79:13  Warning: Image elements must have an alt prop, either with meaningful text, or an empty string for decorative images.  jsx-a11y/alt-text
6:22:32 PM: ./components/PlacePaginationButtons.js
6:22:32 PM: 25:6  Warning: React Hook useEffect has missing dependencies: "setIsNextButtonLoading" and "setIsPrevButtonLoading". Either include them or remove the dependency array.  react-hooks/exhaustive-deps
6:22:32 PM: ./components/PriceSlider.js
6:22:32 PM: 26:9  Warning: The value for aria-label must be a string.  jsx-a11y/aria-proptypes
6:22:32 PM: info  - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
6:22:32 PM: info  - Creating an optimized production build...
6:22:32 PM: warn  - In order to be able to deminify errors, @sentry/nextjs creates sourcemaps and uploads them to the Sentry server. Depending on your deployment setup, this means your original code may be visible in browser devtools in production. To prevent this, set hideSourceMaps to true in the sentry options in your next.config.js. To disable this warning without changing sourcemap behavior, set hideSourceMaps to false. (In @sentry/nextjs version 8.0.0 and beyond, this option will default to true.) See https://webpack.js.org/configuration/devtool/ and https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/#use-hidden-source-map for more information.
6:22:42 PM: error - No Sentry auth token configured. Source maps will not be uploaded.
6:22:42 PM: You can find information on how to generate a Sentry auth token here: https://docs.sentry.io/api/auth/
6:22:42 PM: After generating a Sentry auth token, set it via the SENTRY_AUTH_TOKEN environment variable during the build.
6:22:46 PM: Browserslist: caniuse-lite is outdated. Please run:
6:22:46 PM:   npx browserslist@latest --update-db
6:22:46 PM:   Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
6:22:57 PM: info  - Compiled successfully
6:22:57 PM: info  - Collecting page data...
6:23:25 PM: info  - Generating static pages (0/16)
6:23:26 PM: colorMode light
6:23:26 PM: info  - Generating static pages (4/16)
6:23:26 PM: info  - Generating static pages (8/16)
6:23:26 PM: info  - Generating static pages (12/16)
6:23:26 PM: info  - Generating static pages (16/16)
6:23:27 PM: info  - Finalizing page optimization...
6:23:27 PM: Route (pages)                               Size     First Load JS
6:23:27 PM: ┌ ○ / (799 ms)                              9.31 kB         429 kB
6:23:27 PM: ├   /_app                                   0 B             420 kB
6:23:27 PM: ├ ○ /404 (786 ms)                           864 B           420 kB
6:23:27 PM: ├ ○ /about-us (796 ms)                      1.55 kB         421 kB
6:23:27 PM: ├ ○ /add-place (916 ms)                     2.43 kB         422 kB
6:23:27 PM: ├ λ /api/hello                              0 B             420 kB
6:23:27 PM: ├ ○ /auth-required (887 ms)                 2.19 kB         422 kB
6:23:27 PM: ├ ○ /check-in (905 ms)                      2.94 kB         434 kB
6:23:27 PM: ├ λ /cities/[city]                          13.3 kB         491 kB
6:23:27 PM: ├ λ /cities/[city]/map                      15.7 kB         435 kB
6:23:27 PM: ├ λ /cities/[city]/place/[index]            22 kB           474 kB
6:23:27 PM: ├ ○ /donate (886 ms)                        2.47 kB         422 kB
6:23:27 PM: ├ ○ /faq (907 ms)                           4.92 kB         424 kB
6:23:27 PM: ├ ○ /feedback (915 ms)                      1.52 kB         452 kB
6:23:27 PM: ├ ○ /join (902 ms)                          3.55 kB         455 kB
6:23:27 PM: ├ ○ /join/finish-joining/[userId] (900 ms)  1.67 kB         485 kB
6:23:27 PM: ├ ○ /login (921 ms)                         3.51 kB         455 kB
6:23:27 PM: ├ ○ /me/settings (901 ms)                   1.35 kB         484 kB
6:23:27 PM: ├ λ /nearby                                 2.48 kB         423 kB
6:23:27 PM: ├ ○ /privacy-policy (790 ms)                3.87 kB         423 kB
6:23:27 PM: ├ λ /profile/[userId]                       6.45 kB         427 kB
6:23:27 PM: ├ ○ /terms-and-conditions (906 ms)          2.58 kB         422 kB
6:23:27 PM: └ ○ /thank-you-for-donating (921 ms)        1.49 kB         421 kB
6:23:27 PM: + First Load JS shared by all               420 kB
6:23:27 PM:   ├ chunks/framework-1f2116cc6e84ff0a.js    45.3 kB
6:23:27 PM:   ├ chunks/main-5cea8bb004431308.js         27.3 kB
6:23:27 PM:   ├ chunks/pages/_app-8dee67b46b8c4df5.js   345 kB
6:23:27 PM:   ├ chunks/webpack-68a15506f5f6a086.js      2.06 kB
6:23:27 PM:   └ css/a0f06722f8b5a5f6.css                663 B
6:23:27 PM: λ  (Server)  server-side renders at runtime (uses getInitialProps or getServerSideProps)
6:23:27 PM: ○  (Static)  automatically rendered as static HTML (uses no initial props)
6:23:27 PM: ​
6:23:27 PM: (build.command completed in 58.8s)
6:23:27 PM: ​
6:23:27 PM: @netlify/plugin-nextjs (onBuild event)                        
6:23:27 PM: ────────────────────────────────────────────────────────────────
6:23:27 PM: ​
6:23:27 PM: Moving static page files to serve from CDN...
6:23:27 PM: Moved 15 files to CDN
6:23:27 PM: You are not using Netlify Edge Functions for image format detection. Set env var "NEXT_FORCE_EDGE_IMAGES=true" to enable.
6:23:27 PM: Netlify configuration property "redirects" value changed to [
6:23:27 PM:   { from: "/_next/static/*", to: "/static/:splat", status: 200 },
6:23:27 PM:   {
6:23:27 PM:     from: "/_next/image*",
6:23:27 PM:     query: { url: ":url", w: ":width", q: ":quality" },
6:23:27 PM:     to: "/_ipx/w_:width,q_:quality/:url",
6:23:27 PM:     status: 301
6:23:27 PM:   },
6:23:27 PM:   { from: "/_ipx/*", to: "/.netlify/builders/_ipx", status: 200 },
6:23:27 PM:   {
6:23:27 PM:     from: "/api/*",
6:23:27 PM:     to: "/.netlify/functions/___netlify-handler",
6:23:27 PM:     status: 200
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/favicon.ico",
6:23:27 PM:     to: "/favicon.ico",
6:23:27 PM:     conditions: { Cookie: [Array] },
6:23:27 PM:     status: 200
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/google84ed9fa285bf530d.html",
6:23:27 PM:     to: "/google84ed9fa285bf530d.html",
6:23:27 PM:     conditions: { Cookie: [Array] },
6:23:27 PM:     status: 200
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/logo.png",
6:23:27 PM:     to: "/logo.png",
6:23:27 PM:     conditions: { Cookie: [Array] },
6:23:27 PM:     status: 200
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/manifest.json",
6:23:27 PM:     to: "/manifest.json",
6:23:27 PM:     conditions: { Cookie: [Array] },
6:23:27 PM:     status: 200
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/robots.txt",
6:23:27 PM:     to: "/robots.txt",
6:23:27 PM:     conditions: { Cookie: [Array] },
6:23:27 PM:     status: 200
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/sitemap-0.xml",
6:23:27 PM:     to: "/sitemap-0.xml",
6:23:27 PM:     conditions: { Cookie: [Array] },
6:23:27 PM:     status: 200
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/sitemap.xml",
6:23:27 PM:     to: "/sitemap.xml",
6:23:27 PM:     conditions: { Cookie: [Array] },
6:23:27 PM:     status: 200
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/vercel.svg",
6:23:27 PM:     to: "/vercel.svg",
6:23:27 PM:     conditions: { Cookie: [Array] },
6:23:27 PM:     status: 200
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/workbox-327c579b.js.map",
6:23:27 PM:     to: "/workbox-327c579b.js.map",
6:23:27 PM:     conditions: { Cookie: [Array] },
6:23:27 PM:     status: 200
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/gifs/cheers.gif",
6:23:27 PM:     to: "/gifs/cheers.gif",
6:23:27 PM:     conditions: { Cookie: [Array] },
6:23:27 PM:     status: 200
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/icons/icon-192x192.png",
6:23:27 PM:     to: "/icons/icon-192x192.png",
6:23:27 PM:     conditions: { Cookie: [Array] },
6:23:27 PM:     status: 200
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/icons/icon-256x256.png",
6:23:27 PM:     to: "/icons/icon-256x256.png",
6:23:27 PM:     conditions: { Cookie: [Array] },
6:23:27 PM:     status: 200
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/icons/icon-384x384.png",
6:23:27 PM:     to: "/icons/icon-384x384.png",
6:23:27 PM:     conditions: { Cookie: [Array] },
6:23:27 PM:     status: 200
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/icons/icon-512x512.png",
6:23:27 PM:     to: "/icons/icon-512x512.png",
6:23:27 PM:     conditions: { Cookie: [Array] },
6:23:27 PM:     status: 200
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/images/martin.jpg",
6:23:27 PM:     to: "/images/martin.jpg",
6:23:27 PM:     conditions: { Cookie: [Array] },
6:23:27 PM:     status: 200
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/images/tobias-new.jpg",
6:23:27 PM:     to: "/images/tobias-new.jpg",
6:23:27 PM:     conditions: { Cookie: [Array] },
6:23:27 PM:     status: 200
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/splashscreens/ipad_splash.png",
6:23:27 PM:     to: "/splashscreens/ipad_splash.png",
6:23:27 PM:     conditions: { Cookie: [Array] },
6:23:27 PM:     status: 200
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/splashscreens/ipadpro1_splash.png",
6:23:27 PM:     to: "/splashscreens/ipadpro1_splash.png",
6:23:27 PM:     conditions: { Cookie: [Array] },
6:23:27 PM:     status: 200
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/splashscreens/ipadpro2_splash.png",
6:23:27 PM:     to: "/splashscreens/ipadpro2_splash.png",
6:23:27 PM:     conditions: { Cookie: [Array] },
6:23:27 PM:     status: 200
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/splashscreens/ipadpro3_splash.png",
6:23:27 PM:     to: "/splashscreens/ipadpro3_splash.png",
6:23:27 PM:     conditions: { Cookie: [Array] },
6:23:27 PM:     status: 200
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/splashscreens/iphone5_splash.png",
6:23:27 PM:     to: "/splashscreens/iphone5_splash.png",
6:23:27 PM:     conditions: { Cookie: [Array] },
6:23:27 PM:     status: 200
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/splashscreens/iphone6_splash.png",
6:23:27 PM:     to: "/splashscreens/iphone6_splash.png",
6:23:27 PM:     conditions: { Cookie: [Array] },
6:23:27 PM:     status: 200
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/splashscreens/iphoneplus_splash.png",
6:23:27 PM:     to: "/splashscreens/iphoneplus_splash.png",
6:23:27 PM:     conditions: { Cookie: [Array] },
6:23:27 PM:     status: 200
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/splashscreens/iphonex_splash.png",
6:23:27 PM:     to: "/splashscreens/iphonex_splash.png",
6:23:27 PM:     conditions: { Cookie: [Array] },
6:23:27 PM:     status: 200
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/splashscreens/iphonexr_splash.png",
6:23:27 PM:     to: "/splashscreens/iphonexr_splash.png",
6:23:27 PM:     conditions: { Cookie: [Array] },
6:23:27 PM:     status: 200
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/splashscreens/iphonexsmax_splash.png",
6:23:27 PM:     to: "/splashscreens/iphonexsmax_splash.png",
6:23:27 PM:     conditions: { Cookie: [Array] },
6:23:27 PM:     status: 200
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/*",
6:23:27 PM:     to: "/.netlify/functions/___netlify-handler",
6:23:27 PM:     status: 200,
6:23:27 PM:     conditions: { Cookie: [Array] },
6:23:27 PM:     force: true
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/_next/data/JZkBoshO4ise74KsA2CvM/index.json",
6:23:27 PM:     to: "/.netlify/functions/___netlify-handler",
6:23:27 PM:     status: 200,
6:23:27 PM:     force: false
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/",
6:23:27 PM:     to: "/.netlify/functions/___netlify-handler",
6:23:27 PM:     status: 200,
6:23:27 PM:     force: false
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/_next/data/JZkBoshO4ise74KsA2CvM/about-us.json",
6:23:27 PM:     to: "/.netlify/functions/___netlify-handler",
6:23:27 PM:     status: 200,
6:23:27 PM:     force: false
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/about-us",
6:23:27 PM:     to: "/.netlify/functions/___netlify-handler",
6:23:27 PM:     status: 200,
6:23:27 PM:     force: false
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/_next/data/JZkBoshO4ise74KsA2CvM/add-place.json",
6:23:27 PM:     to: "/.netlify/functions/___netlify-handler",
6:23:27 PM:     status: 200,
6:23:27 PM:     force: false
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/add-place",
6:23:27 PM:     to: "/.netlify/functions/___netlify-handler",
6:23:27 PM:     status: 200,
6:23:27 PM:     force: false
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/_next/data/JZkBoshO4ise74KsA2CvM/auth-required.json",
6:23:27 PM:     to: "/.netlify/functions/___netlify-handler",
6:23:27 PM:     status: 200,
6:23:27 PM:     force: false
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/auth-required",
6:23:27 PM:     to: "/.netlify/functions/___netlify-handler",
6:23:27 PM:     status: 200,
6:23:27 PM:     force: false
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/_next/data/JZkBoshO4ise74KsA2CvM/check-in.json",
6:23:27 PM:     to: "/.netlify/functions/___netlify-handler",
6:23:27 PM:     status: 200,
6:23:27 PM:     force: false
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/check-in",
6:23:27 PM:     to: "/.netlify/functions/___netlify-handler",
6:23:27 PM:     status: 200,
6:23:27 PM:     force: false
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/_next/data/JZkBoshO4ise74KsA2CvM/donate.json",
6:23:27 PM:     to: "/.netlify/functions/___netlify-handler",
6:23:27 PM:     status: 200,
6:23:27 PM:     force: false
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/donate",
6:23:27 PM:     to: "/.netlify/functions/___netlify-handler",
6:23:27 PM:     status: 200,
6:23:27 PM:     force: false
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/_next/data/JZkBoshO4ise74KsA2CvM/faq.json",
6:23:27 PM:     to: "/.netlify/functions/___netlify-handler",
6:23:27 PM:     status: 200,
6:23:27 PM:     force: false
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/faq",
6:23:27 PM:     to: "/.netlify/functions/___netlify-handler",
6:23:27 PM:     status: 200,
6:23:27 PM:     force: false
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/_next/data/JZkBoshO4ise74KsA2CvM/feedback.json",
6:23:27 PM:     to: "/.netlify/functions/___netlify-handler",
6:23:27 PM:     status: 200,
6:23:27 PM:     force: false
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/feedback",
6:23:27 PM:     to: "/.netlify/functions/___netlify-handler",
6:23:27 PM:     status: 200,
6:23:27 PM:     force: false
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/_next/data/JZkBoshO4ise74KsA2CvM/join.json",
6:23:27 PM:     to: "/.netlify/functions/___netlify-handler",
6:23:27 PM:     status: 200,
6:23:27 PM:     force: false
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/join",
6:23:27 PM:     to: "/.netlify/functions/___netlify-handler",
6:23:27 PM:     status: 200,
6:23:27 PM:     force: false
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/_next/data/JZkBoshO4ise74KsA2CvM/login.json",
6:23:27 PM:     to: "/.netlify/functions/___netlify-handler",
6:23:27 PM:     status: 200,
6:23:27 PM:     force: false
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/login",
6:23:27 PM:     to: "/.netlify/functions/___netlify-handler",
6:23:27 PM:     status: 200,
6:23:27 PM:     force: false
6:23:27 PM:   },
6:23:27 PM:   {
6:23:27 PM:     from: "/_next/data/JZkBoshO4ise74KsA2CvM/me/settings.json",
6:23:27 PM:     to: "/.netlify/functions/___netlify-handler",
6:23:27 PM:     status: 200,
6:23:27 PM:     force: false
6:23:27 PM:   },
6:23:27 PM: ​
6:23:27 PM: (@netlify/plugin-nextjs onBuild completed in 403ms)
6:23:27 PM: ​
6:23:27 PM: Functions bundling                                            
6:23:27 PM: ────────────────────────────────────────────────────────────────
6:23:27 PM: ​
6:23:27 PM: Packaging Functions from .netlify/functions-internal directory:
6:23:27 PM:  - ___netlify-handler/___netlify-handler.js
6:23:27 PM:  - ___netlify-odb-handler/___netlify-odb-handler.js
6:23:27 PM:  - _ipx/_ipx.js
6:23:27 PM: ​
6:24:32 PM: ​
6:24:32 PM: (Functions bundling completed in 1m 4.4s)
6:24:32 PM: ​
6:24:32 PM: Edge Functions bundling                                       
6:24:32 PM: ────────────────────────────────────────────────────────────────
6:24:32 PM: ​
6:24:33 PM: ​
6:24:33 PM: (Edge Functions bundling completed in 898ms)
6:24:33 PM: ​
6:24:33 PM: @netlify/plugin-lighthouse (onPostBuild event)                
6:24:33 PM: ────────────────────────────────────────────────────────────────
6:24:33 PM: ​
6:24:33 PM: Generating Lighthouse report. This may take a minute…
6:24:33 PM: Running Lighthouse on .next/
6:24:33 PM: Serving and scanning site from directory .next
6:24:44 PM: Lighthouse scores for .next/
6:24:44 PM: - Performance: 100
6:24:44 PM: - Accessibility: 95
6:24:44 PM: - Best Practices: 92
6:24:44 PM: - SEO: 92
6:24:44 PM: - PWA: 90
6:24:44 PM: ​
6:24:44 PM: (@netlify/plugin-lighthouse onPostBuild completed in 11.1s)
6:24:44 PM: ​
6:24:44 PM: @netlify/plugin-nextjs (onPostBuild event)                    
6:24:44 PM: ────────────────────────────────────────────────────────────────
6:24:44 PM: ​
6:24:44 PM: Next.js cache saved.
6:24:44 PM: ​
6:24:44 PM: (@netlify/plugin-nextjs onPostBuild completed in 466ms)
6:24:44 PM: ​
6:24:44 PM: Deploy site                                                   
6:24:44 PM: ────────────────────────────────────────────────────────────────
6:24:44 PM: ​
6:24:44 PM: Starting to deploy site from ".next"
6:24:44 PM: Calculating files to upload
6:24:45 PM: 19 new files to upload
6:24:45 PM: 3 new functions to upload
6:24:53 PM: Skipping form detection
6:24:53 PM: Post processing - header rules
6:24:53 PM: Post processing - redirect rules
6:24:53 PM: Post processing done
6:24:53 PM: Section completed: postprocessing
6:24:53 PM: Starting post processing
6:24:53 PM: Section completed: deploying
6:24:53 PM: Site deploy was successfully initiated
6:24:53 PM: ​
6:24:53 PM: (Deploy site completed in 8.4s)
6:24:53 PM: ​
6:24:53 PM: Netlify Build Complete                                        
6:24:53 PM: ────────────────────────────────────────────────────────────────
6:24:53 PM: ​
6:24:53 PM: (Netlify Build completed in 2m 50s)
6:24:53 PM: Caching artifacts
6:24:53 PM: Started saving node modules
6:24:54 PM: Finished saving node modules
6:24:54 PM: Started saving build plugins
6:24:54 PM: Site is live ✨
6:24:54 PM: Finished saving build plugins
6:24:54 PM: Started saving corepack cache
6:24:54 PM: Finished saving corepack cache
6:24:54 PM: Started saving yarn cache
6:24:54 PM: Finished saving yarn cache
6:24:54 PM: Started saving pip cache
6:24:54 PM: Finished saving pip cache
6:24:54 PM: Started saving emacs cask dependencies
6:24:54 PM: Finished saving emacs cask dependencies
6:24:54 PM: Started saving maven dependencies
6:24:54 PM: Finished saving maven dependencies
6:24:54 PM: Started saving boot dependencies
6:24:54 PM: Finished saving boot dependencies
6:24:54 PM: Started saving rust rustup cache
6:24:54 PM: Finished saving rust rustup cache
6:24:54 PM: Started saving go dependencies
6:24:54 PM: Finished saving go dependencies
6:25:14 PM: Build script success
6:25:14 PM: Section completed: building
6:26:10 PM: Uploading Cache of size 1.1GB
6:26:18 PM: Section completed: cleanup
6:26:18 PM: Finished processing build request in 5m16.024s

(I had to remove some logs because my message was too large.

I switched to Vercel and it works out of the box.