Next on netlify won't pick up pages/api

Hello,

I’m deploying my next application (cornero-stg.netlify.app) on a Yarn workspace monorepo.

For some time, the API functions in pages/api were uploading fine, but now they won’t upload to Netlify.

I use Essential next plugin from a file based configuration.
I have one main function to use which is “nextauth”

Netlify toml :


[build]
  base = "./packages/client"
  publish = ".next"
  command = "yarn build:stg"
  
[context.prod] 
  command = "yarn build:prod"

[[plugins]]
  package = "@netlify/plugin-nextjs"

Build log

5:40:24 PM: Build ready to start
5:40:26 PM: build-image version: 0e2f4c52031ab562db66aec633308326e3b108d0 (focal)
5:40:26 PM: build-image tag: focal
5:40:26 PM: buildbot version: 8dba8e08e1359f22ae92654e177dea552324c91c
5:40:26 PM: Fetching cached dependencies
5:40:28 PM: Finished downloading cache in 1.950987044s
5:40:28 PM: Starting to extract cache
5:40:51 PM: Finished extracting cache in 23.083097757s
5:40:51 PM: Finished fetching cache in 25.089124541s
5:40:51 PM: Starting to prepare the repo for build
5:40:51 PM: Preparing Git Reference refs/heads/stripe-connect
5:40:52 PM: Parsing package.json dependencies
5:40:53 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: 'packages/client/.next' versus '.next' in the Netlify UI
5:40:53 PM: Starting build script
5:40:53 PM: Installing dependencies
5:40:53 PM: Python version set to 2.7
5:40:53 PM: Started restoring cached node version
5:40:55 PM: Finished restoring cached node version
5:40:55 PM: v16.15.1 is already installed.
5:40:55 PM: Now using node v16.15.1 (npm v8.11.0)
5:40:55 PM: Started restoring cached build plugins
5:40:55 PM: Finished restoring cached build plugins
5:40:56 PM: Attempting ruby version 2.7.2, read from environment
5:40:57 PM: Using ruby version 2.7.2
5:40:57 PM: Using PHP version 8.0
5:40:57 PM: Started restoring cached yarn cache
5:41:04 PM: Finished restoring cached yarn cache
5:41:04 PM: No yarn workspaces detected
5:41:04 PM: Started restoring cached node modules
5:41:04 PM: Finished restoring cached node modules
5:41:04 PM: Installing NPM modules using Yarn version 1.22.10
5:41:05 PM: npm WARN config tmp This setting is no longer used.  npm stores temporary files in a special
5:41:05 PM: npm WARN config location in the cache, and they are managed by
5:41:05 PM: npm WARN config     [`cacache`](http://npm.im/cacache).
5:41:05 PM: yarn install v1.22.10
5:41:05 PM: [1/4] Resolving packages...
5:41:06 PM: [2/4] Fetching packages...
5:41:07 PM: info fsevents@2.3.2: The platform "linux" is incompatible with this module.
5:41:07 PM: info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
5:41:07 PM: info @next/swc-android-arm-eabi@12.1.5: The platform "linux" is incompatible with this module.
5:41:07 PM: info "@next/swc-android-arm-eabi@12.1.5" is an optional dependency and failed compatibility check. Excluding it from installation.
5:41:07 PM: info @next/swc-android-arm-eabi@12.1.5: The CPU architecture "x64" is incompatible with this module.
5:41:07 PM: info @next/swc-android-arm64@12.1.5: The platform "linux" is incompatible with this module.
5:41:07 PM: info "@next/swc-android-arm64@12.1.5" is an optional dependency and failed compatibility check. Excluding it from installation.
5:41:07 PM: info @next/swc-android-arm64@12.1.5: The CPU architecture "x64" is incompatible with this module.
5:41:07 PM: info @next/swc-darwin-arm64@12.1.5: The platform "linux" is incompatible with this module.
5:41:07 PM: info "@next/swc-darwin-arm64@12.1.5" is an optional dependency and failed compatibility check. Excluding it from installation.
5:41:07 PM: info @next/swc-darwin-arm64@12.1.5: The CPU architecture "x64" is incompatible with this module.
5:41:07 PM: info @next/swc-darwin-x64@12.1.5: The platform "linux" is incompatible with this module.
5:41:07 PM: info "@next/swc-darwin-x64@12.1.5" is an optional dependency and failed compatibility check. Excluding it from installation.
5:41:07 PM: info @next/swc-linux-arm-gnueabihf@12.1.5: The CPU architecture "x64" is incompatible with this module.
5:41:07 PM: info "@next/swc-linux-arm-gnueabihf@12.1.5" is an optional dependency and failed compatibility check. Excluding it from installation.
5:41:07 PM: info @next/swc-linux-arm64-gnu@12.1.5: The CPU architecture "x64" is incompatible with this module.
5:41:07 PM: info "@next/swc-linux-arm64-gnu@12.1.5" is an optional dependency and failed compatibility check. Excluding it from installation.
5:41:07 PM: info @next/swc-linux-arm64-musl@12.1.5: The CPU architecture "x64" is incompatible with this module.
5:41:07 PM: info "@next/swc-linux-arm64-musl@12.1.5" is an optional dependency and failed compatibility check. Excluding it from installation.
5:41:07 PM: info @next/swc-win32-arm64-msvc@12.1.5: The platform "linux" is incompatible with this module.
5:41:07 PM: info "@next/swc-win32-arm64-msvc@12.1.5" is an optional dependency and failed compatibility check. Excluding it from installation.
5:41:07 PM: info @next/swc-win32-arm64-msvc@12.1.5: The CPU architecture "x64" is incompatible with this module.
5:41:07 PM: info @next/swc-win32-ia32-msvc@12.1.5: The platform "linux" is incompatible with this module.
5:41:07 PM: info "@next/swc-win32-ia32-msvc@12.1.5" is an optional dependency and failed compatibility check. Excluding it from installation.
5:41:07 PM: info @next/swc-win32-ia32-msvc@12.1.5: The CPU architecture "x64" is incompatible with this module.
5:41:07 PM: info @next/swc-win32-x64-msvc@12.1.5: The platform "linux" is incompatible with this module.
5:41:07 PM: info "@next/swc-win32-x64-msvc@12.1.5" is an optional dependency and failed compatibility check. Excluding it from installation.
5:41:07 PM: [3/4] Linking dependencies...
5:41:07 PM: warning " > @graphql-codegen/named-operations-object@2.2.1" has unmet peer dependency "graphql-tag@^2.0.0".
5:41:07 PM: warning " > @graphql-codegen/typescript-react-apollo@3.2.15" has unmet peer dependency "graphql-tag@^2.0.0".
5:41:11 PM: [4/4] Building fresh packages...
5:41:11 PM: $ yarn  prisma:generate
5:41:11 PM: yarn run v1.22.10
5:41:11 PM: $ yarn prisma generate
5:41:12 PM: $ /opt/build/repo/packages/client/node_modules/.bin/prisma generate
5:41:12 PM: Prisma schema loaded from prisma/schema.prisma
5:41:13 PM: ✔ Generated Prisma Client (3.15.2 | library) to ./node_modules/@prisma/client in 199ms
5:41:13 PM: You can now start using Prisma Client in your code. Reference: https://pris.ly/d/client
5:41:13 PM: ```import { PrismaClient } from '@prisma/client'const prisma = new PrismaClient()```
5:41:13 PM: Done in 1.98s.
5:41:13 PM: Done in 8.30s.
5:41:13 PM: NPM modules installed using Yarn
5:41:14 PM: Started restoring cached go cache
5:41:14 PM: Finished restoring cached go cache
5:41:14 PM: Installing Go version 1.16.5 (requested 1.16.5)
5:41:19 PM: unset GOOS;
5:41:19 PM: unset GOARCH;
5:41:19 PM: export GOROOT='/opt/buildhome/.gimme/versions/go1.16.5.linux.amd64';
5:41:19 PM: export PATH="/opt/buildhome/.gimme/versions/go1.16.5.linux.amd64/bin:${PATH}";
5:41:19 PM: go version >&2;
5:41:19 PM: export GIMME_ENV="/opt/buildhome/.gimme/env/go1.16.5.linux.amd64.env"
5:41:19 PM: go version go1.16.5 linux/amd64
5:41:19 PM: Installing missing commands
5:41:19 PM: Verify run directory
5:41:21 PM: ​
5:41:21 PM: ────────────────────────────────────────────────────────────────
5:41:21 PM:   Netlify Build                                                 
5:41:21 PM: ────────────────────────────────────────────────────────────────
5:41:21 PM: ​
5:41:21 PM: ❯ Version
5:41:21 PM:   @netlify/build 27.3.1
5:41:21 PM: ​
5:41:21 PM: ❯ Flags
5:41:21 PM:   baseRelDir: true
5:41:21 PM:   buildId: 62c1b868037e2b0008739969
5:41:21 PM:   deployId: 62c1b868037e2b000873996b
5:41:21 PM: ​
5:41:21 PM: ❯ Current directory
5:41:21 PM:   /opt/build/repo/packages/client
5:41:21 PM: ​
5:41:21 PM: ❯ Config file
5:41:21 PM:   /opt/build/repo/packages/client/netlify.toml
5:41:21 PM: ​
5:41:21 PM: ❯ Context
5:41:21 PM:   branch-deploy
5:41:21 PM: ​
5:41:21 PM: ❯ Loading plugins
5:41:21 PM:    - @netlify/plugin-nextjs@4.11.1 from netlify.toml and package.json
5:41:22 PM: ​
5:41:22 PM: ────────────────────────────────────────────────────────────────
5:41:22 PM:   1. @netlify/plugin-nextjs (onPreBuild event)                  
5:41:22 PM: ────────────────────────────────────────────────────────────────
5:41:22 PM: ​
5:41:23 PM: Next.js cache restored.
5:41:23 PM: Netlify configuration property "build.environment.NEXT_PRIVATE_TARGET" value changed.
5:41:23 PM: ​
5:41:23 PM: (@netlify/plugin-nextjs onPreBuild completed in 212ms)
5:41:23 PM: ​
5:41:23 PM: ────────────────────────────────────────────────────────────────
5:41:23 PM:   2. build.command from netlify.toml                            
5:41:23 PM: ────────────────────────────────────────────────────────────────
5:41:23 PM: ​
5:41:23 PM: $ yarn build:stg
5:41:23 PM: yarn run v1.22.10
5:41:23 PM: $ env-cmd -f ./env/.env.stg next build 
5:41:24 PM: info  - Checking validity of types...
5:41:38 PM: ./pages/shop/[shopId]/index.tsx
5:41:38 PM: 42:6  Warning: React Hook useEffect has missing dependencies: 'bookState' and 'setBookState'. Either include them or remove the dependency array.  react-hooks/exhaustive-deps
5:41:38 PM: info  - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
5:41:38 PM: info  - Creating an optimized production build...
5:41:59 PM: info  - Compiled successfully
5:41:59 PM: info  - Collecting page data...
5:42:06 PM: info  - Generating static pages (0/30)
5:42:06 PM: Invalid href passed to next/router: //me/location/[id]/details, repeated forward-slashes (//) or backslashes \ are not valid in the href
5:42:06 PM: Invalid href passed to next/router: //me/location/[id]/price, repeated forward-slashes (//) or backslashes \ are not valid in the href
5:42:07 PM: Invalid href passed to next/router: //me/location/[id]/informations, repeated forward-slashes (//) or backslashes \ are not valid in the href
5:42:07 PM: info  - Generating static pages (7/30)
5:42:07 PM: Invalid href passed to next/router: //me/location/[id]/details, repeated forward-slashes (//) or backslashes \ are not valid in the href
5:42:07 PM: Invalid href passed to next/router: //me/location/[id]/price, repeated forward-slashes (//) or backslashes \ are not valid in the href
5:42:07 PM: Invalid href passed to next/router: //me/location/[id]/informations, repeated forward-slashes (//) or backslashes \ are not valid in the href
5:42:07 PM: info  - Generating static pages (14/30)
5:42:07 PM: Invalid href passed to next/router: //me/location/[id]/details, repeated forward-slashes (//) or backslashes \ are not valid in the href
5:42:07 PM: Invalid href passed to next/router: //me/location/[id]/price, repeated forward-slashes (//) or backslashes \ are not valid in the href
5:42:07 PM: Invalid href passed to next/router: //me/location/[id]/informations, repeated forward-slashes (//) or backslashes \ are not valid in the href
5:42:07 PM: Invalid href passed to next/router: //me/location/[id]/details, repeated forward-slashes (//) or backslashes \ are not valid in the href
5:42:07 PM: Invalid href passed to next/router: //me/location/[id]/price, repeated forward-slashes (//) or backslashes \ are not valid in the href
5:42:07 PM: Invalid href passed to next/router: //me/location/[id]/informations, repeated forward-slashes (//) or backslashes \ are not valid in the href
5:42:07 PM: info  - Generating static pages (22/30)
5:42:07 PM: Invalid href passed to next/router: //me/location/[id]/details, repeated forward-slashes (//) or backslashes \ are not valid in the href
5:42:07 PM: Invalid href passed to next/router: //me/location/[id]/price, repeated forward-slashes (//) or backslashes \ are not valid in the href
5:42:07 PM: Invalid href passed to next/router: //me/location/[id]/informations, repeated forward-slashes (//) or backslashes \ are not valid in the href
5:42:07 PM: Invalid href passed to next/router: //me/location/[id]/details, repeated forward-slashes (//) or backslashes \ are not valid in the href
5:42:07 PM: Invalid href passed to next/router: //me/location/[id]/price, repeated forward-slashes (//) or backslashes \ are not valid in the href
5:42:07 PM: Invalid href passed to next/router: //me/location/[id]/informations, repeated forward-slashes (//) or backslashes \ are not valid in the href
5:42:08 PM: info  - Generating static pages (30/30)
5:42:08 PM: info  - Finalizing page optimization...
5:42:08 PM: Page                                       Size     First Load JS
5:42:08 PM: ┌ ○ /                                      2.4 kB          197 kB
5:42:08 PM: ├   /_app                                  0 B             195 kB
5:42:08 PM: ├ ○ /404                                   952 B           196 kB
5:42:08 PM: ├ λ /api/auth/[...nextauth]                0 B             195 kB
5:42:08 PM: ├ λ /api/checkout_sessions                 0 B             195 kB
5:42:08 PM: ├ ○ /cookies                               1.36 kB         196 kB
5:42:08 PM: ├ ○ /me/account                            351 B           195 kB
5:42:08 PM: ├ ○ /me/booking                            359 B           245 kB
5:42:08 PM: ├ ○ /me/location                           2.29 kB         201 kB
5:42:08 PM: ├ ○ /me/location/[id] (1430 ms)            3.96 kB         300 kB
5:42:08 PM: ├ ○ /me/location/[id]/details (561 ms)     4.51 kB         301 kB
5:42:08 PM: ├ ○ /me/location/[id]/informations         922 B           196 kB
5:42:08 PM: ├ ○ /me/location/[id]/price (941 ms)       4.66 kB         238 kB
5:42:08 PM: ├ ○ /mentions (727 ms)                     944 B           228 kB
5:42:08 PM: ├ ○ /search                                2.79 kB         247 kB
5:42:08 PM: ├ ● /shop/[shopId]                         2.15 kB         253 kB
5:42:08 PM: ├ ○ /success                               994 B           196 kB
5:42:08 PM: └ ○ /terms (1150 ms)                       993 B           228 kB
5:42:08 PM: + First Load JS shared by all              195 kB
5:42:08 PM:   ├ chunks/framework-bb5c596eafb42b22.js   42.1 kB
5:42:08 PM:   ├ chunks/main-f3af58107e11d9b9.js        29.3 kB
5:42:08 PM:   ├ chunks/pages/_app-e6e0c6db95d77a22.js  122 kB
5:42:08 PM:   ├ chunks/webpack-15f0f90b3b80fe77.js     1.81 kB
5:42:08 PM:   └ css/3ad5b34de13196a2.css               13 kB
5:42:08 PM: λ  (Server)  server-side renders at runtime (uses getInitialProps or getServerSideProps)
5:42:08 PM: ○  (Static)  automatically rendered as static HTML (uses no initial props)
5:42:08 PM: ●  (SSG)     automatically generated as static HTML + JSON (uses getStaticProps)
5:42:08 PM: $ env-cmd -f ./env/.env.stg next-sitemap --config next-sitemap.config.js
5:42:08 PM: Done in 45.57s.
5:42:08 PM: ​
5:42:08 PM: (build.command completed in 45.7s)
5:42:08 PM: ​
5:42:08 PM: ────────────────────────────────────────────────────────────────
5:42:08 PM:   3. @netlify/plugin-nextjs (onBuild event)                     
5:42:08 PM: ────────────────────────────────────────────────────────────────
5:42:08 PM: ​
5:42:09 PM: NextAuth package detected, setting NEXTAUTH_URL environment variable to https://stg.cornerofly.com
5:42:09 PM: Patching /opt/build/repo/packages/client/node_modules/next/dist/server/base-server.js
5:42:09 PM: Done
5:42:09 PM: Patching /opt/build/repo/packages/client/node_modules/next/dist/server/next-server.js
5:42:09 PM: Done
5:42:09 PM: Moving static page files to serve from CDN...
5:42:09 PM: Moved 9 files
5:42:09 PM: Using Netlify Edge Functions for image format detection. Set env var "NEXT_DISABLE_EDGE_IMAGES=true" to disable.
5:42:09 PM: Netlify configuration property "redirects" value changed to [
5:42:09 PM:   { from: '/_next/static/*', to: '/static/:splat', status: 200 },
5:42:09 PM:   {
5:42:09 PM:     from: '/:locale/_next/static/*',
5:42:09 PM:     to: '/static/:splat',
5:42:09 PM:     status: 200
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/_next/image*',
5:42:09 PM:     query: { url: ':url', w: ':width', q: ':quality' },
5:42:09 PM:     to: '/_ipx/w_:width,q_:quality/:url',
5:42:09 PM:     status: 301
5:42:09 PM:   },
5:42:09 PM:   { from: '/_ipx/*', to: '/.netlify/builders/_ipx', status: 200 },
5:42:09 PM:   { from: '/cache/*', to: '/404.html', status: 404, force: true },
5:42:09 PM:   { from: '/server/*', to: '/404.html', status: 404, force: true },
5:42:09 PM:   { from: '/serverless/*', to: '/404.html', status: 404, force: true },
5:42:09 PM:   { from: '/trace', to: '/404.html', status: 404, force: true },
5:42:09 PM:   { from: '/traces', to: '/404.html', status: 404, force: true },
5:42:09 PM:   {
5:42:09 PM:     from: '/routes-manifest.json',
5:42:09 PM:     to: '/404.html',
5:42:09 PM:     status: 404,
5:42:09 PM:     force: true
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/build-manifest.json',
5:42:09 PM:     to: '/404.html',
5:42:09 PM:     status: 404,
5:42:09 PM:     force: true
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/prerender-manifest.json',
5:42:09 PM:     to: '/404.html',
5:42:09 PM:     status: 404,
5:42:09 PM:     force: true
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/react-loadable-manifest.json',
5:42:09 PM:     to: '/404.html',
5:42:09 PM:     status: 404,
5:42:09 PM:     force: true
5:42:09 PM:   },
5:42:09 PM:   { from: '/BUILD_ID', to: '/404.html', status: 404, force: true },
5:42:09 PM:   {
5:42:09 PM:     from: '/',
5:42:09 PM:     to: '/.netlify/functions/___netlify-handler',
5:42:09 PM:     status: 200,
5:42:09 PM:     force: true,
5:42:09 PM:     conditions: { Cookie: [Array] }
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/api',
5:42:09 PM:     to: '/.netlify/functions/___netlify-handler',
5:42:09 PM:     status: 200
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/api/*',
5:42:09 PM:     to: '/.netlify/functions/___netlify-handler',
5:42:09 PM:     status: 200
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/favicon.svg',
5:42:09 PM:     to: '/favicon.svg',
5:42:09 PM:     conditions: { Cookie: [Array] },
5:42:09 PM:     status: 200
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/logo.svg',
5:42:09 PM:     to: '/logo.svg',
5:42:09 PM:     conditions: { Cookie: [Array] },
5:42:09 PM:     status: 200
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/robots.txt',
5:42:09 PM:     to: '/robots.txt',
5:42:09 PM:     conditions: { Cookie: [Array] },
5:42:09 PM:     status: 200
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/sitemap.xml',
5:42:09 PM:     to: '/sitemap.xml',
5:42:09 PM:     conditions: { Cookie: [Array] },
5:42:09 PM:     status: 200
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/admin/config.yml',
5:42:09 PM:     to: '/admin/config.yml',
5:42:09 PM:     conditions: { Cookie: [Array] },
5:42:09 PM:     status: 200
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/admin/index.html',
5:42:09 PM:     to: '/admin/index.html',
5:42:09 PM:     conditions: { Cookie: [Array] },
5:42:09 PM:     status: 200
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/home/homehero.png',
5:42:09 PM:     to: '/home/homehero.png',
5:42:09 PM:     conditions: { Cookie: [Array] },
5:42:09 PM:     status: 200
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/*',
5:42:09 PM:     to: '/.netlify/functions/___netlify-handler',
5:42:09 PM:     status: 200,
5:42:09 PM:     conditions: { Cookie: [Array] },
5:42:09 PM:     force: true
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/_next/data/QnYeH-0v5mrB0aiX0tkLv/fr/index.json',
5:42:09 PM:     to: '/.netlify/functions/___netlify-handler',
5:42:09 PM:     status: 200,
5:42:09 PM:     force: false
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/',
5:42:09 PM:     to: '/.netlify/functions/___netlify-handler',
5:42:09 PM:     status: 200,
5:42:09 PM:     force: false
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/_next/data/QnYeH-0v5mrB0aiX0tkLv/fr/404.json',
5:42:09 PM:     to: '/.netlify/functions/___netlify-handler',
5:42:09 PM:     status: 200,
5:42:09 PM:     force: false
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/404',
5:42:09 PM:     to: '/.netlify/functions/___netlify-handler',
5:42:09 PM:     status: 200,
5:42:09 PM:     force: false
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/_next/data/QnYeH-0v5mrB0aiX0tkLv/fr/cookies.json',
5:42:09 PM:     to: '/.netlify/functions/___netlify-handler',
5:42:09 PM:     status: 200,
5:42:09 PM:     force: false
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/cookies',
5:42:09 PM:     to: '/.netlify/functions/___netlify-handler',
5:42:09 PM:     status: 200,
5:42:09 PM:     force: false
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/_next/data/QnYeH-0v5mrB0aiX0tkLv/fr/me/account.json',
5:42:09 PM:     to: '/.netlify/functions/___netlify-handler',
5:42:09 PM:     status: 200,
5:42:09 PM:     force: false
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/me/account',
5:42:09 PM:     to: '/.netlify/functions/___netlify-handler',
5:42:09 PM:     status: 200,
5:42:09 PM:     force: false
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/_next/data/QnYeH-0v5mrB0aiX0tkLv/fr/me/booking.json',
5:42:09 PM:     to: '/.netlify/functions/___netlify-handler',
5:42:09 PM:     status: 200,
5:42:09 PM:     force: false
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/me/booking',
5:42:09 PM:     to: '/.netlify/functions/___netlify-handler',
5:42:09 PM:     status: 200,
5:42:09 PM:     force: false
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/_next/data/QnYeH-0v5mrB0aiX0tkLv/fr/me/location.json',
5:42:09 PM:     to: '/.netlify/functions/___netlify-handler',
5:42:09 PM:     status: 200,
5:42:09 PM:     force: false
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/me/location',
5:42:09 PM:     to: '/.netlify/functions/___netlify-handler',
5:42:09 PM:     status: 200,
5:42:09 PM:     force: false
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/_next/data/QnYeH-0v5mrB0aiX0tkLv/fr/mentions.json',
5:42:09 PM:     to: '/.netlify/functions/___netlify-handler',
5:42:09 PM:     status: 200,
5:42:09 PM:     force: false
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/mentions',
5:42:09 PM:     to: '/.netlify/functions/___netlify-handler',
5:42:09 PM:     status: 200,
5:42:09 PM:     force: false
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/_next/data/QnYeH-0v5mrB0aiX0tkLv/fr/search.json',
5:42:09 PM:     to: '/.netlify/functions/___netlify-handler',
5:42:09 PM:     status: 200,
5:42:09 PM:     force: false
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/search',
5:42:09 PM:     to: '/.netlify/functions/___netlify-handler',
5:42:09 PM:     status: 200,
5:42:09 PM:     force: false
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/_next/data/QnYeH-0v5mrB0aiX0tkLv/fr/success.json',
5:42:09 PM:     to: '/.netlify/functions/___netlify-handler',
5:42:09 PM:     status: 200,
5:42:09 PM:     force: false
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/success',
5:42:09 PM:     to: '/.netlify/functions/___netlify-handler',
5:42:09 PM:     status: 200,
5:42:09 PM:     force: false
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/_next/data/QnYeH-0v5mrB0aiX0tkLv/fr/terms.json',
5:42:09 PM:     to: '/.netlify/functions/___netlify-handler',
5:42:09 PM:     status: 200,
5:42:09 PM:     force: false
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/terms',
5:42:09 PM:     to: '/.netlify/functions/___netlify-handler',
5:42:09 PM:     status: 200,
5:42:09 PM:     force: false
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/_next/data/QnYeH-0v5mrB0aiX0tkLv/fr/me/location/:id.json',
5:42:09 PM:     to: '/.netlify/functions/___netlify-handler',
5:42:09 PM:     status: 200,
5:42:09 PM:     force: false
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/me/location/:id',
5:42:09 PM:     to: '/.netlify/functions/___netlify-handler',
5:42:09 PM:     status: 200,
5:42:09 PM:     force: false
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/_next/data/QnYeH-0v5mrB0aiX0tkLv/fr/me/location/:id/details.json',
5:42:09 PM:     to: '/.netlify/functions/___netlify-handler',
5:42:09 PM:     status: 200,
5:42:09 PM:     force: false
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/me/location/:id/details',
5:42:09 PM:     to: '/.netlify/functions/___netlify-handler',
5:42:09 PM:     status: 200,
5:42:09 PM:     force: false
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/_next/data/QnYeH-0v5mrB0aiX0tkLv/fr/me/location/:id/informations.json',
5:42:09 PM:     to: '/.netlify/functions/___netlify-handler',
5:42:09 PM:     status: 200,
5:42:09 PM:     force: false
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/me/location/:id/informations',
5:42:09 PM:     to: '/.netlify/functions/___netlify-handler',
5:42:09 PM:     status: 200,
5:42:09 PM:     force: false
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/_next/data/QnYeH-0v5mrB0aiX0tkLv/fr/me/location/:id/price.json',
5:42:09 PM:     to: '/.netlify/functions/___netlify-handler',
5:42:09 PM:     status: 200,
5:42:09 PM:     force: false
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/me/location/:id/price',
5:42:09 PM:     to: '/.netlify/functions/___netlify-handler',
5:42:09 PM:     status: 200,
5:42:09 PM:     force: false
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/_next/data/QnYeH-0v5mrB0aiX0tkLv/fr/shop/:shopId.json',
5:42:09 PM:     to: '/.netlify/builders/___netlify-odb-handler',
5:42:09 PM:     status: 200,
5:42:09 PM:     force: false
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/shop/:shopId',
5:42:09 PM:     to: '/.netlify/builders/___netlify-odb-handler',
5:42:09 PM:     status: 200,
5:42:09 PM:     force: false
5:42:09 PM:   },
5:42:09 PM:   {
5:42:09 PM:     from: '/*',
5:42:09 PM:     to: '/.netlify/functions/___netlify-handler',
5:42:09 PM:     status: 200
5:42:09 PM:   }
5:42:09 PM: ].
5:42:09 PM: ​
5:42:09 PM: (@netlify/plugin-nextjs onBuild completed in 183ms)
5:42:09 PM: ​
5:42:09 PM: ────────────────────────────────────────────────────────────────
5:42:09 PM:   4. Functions bundling                                         
5:42:09 PM: ────────────────────────────────────────────────────────────────
5:42:09 PM: ​
5:42:09 PM: Packaging Functions from .netlify/functions-internal directory:
5:42:09 PM:  - ___netlify-handler/___netlify-handler.js
5:42:09 PM:  - ___netlify-odb-handler/___netlify-odb-handler.js
5:42:09 PM:  - _ipx/_ipx.js
5:42:09 PM: ​
5:42:41 PM: ​
5:42:41 PM: (Functions bundling completed in 32.8s)
5:42:42 PM: ​
5:42:42 PM: ────────────────────────────────────────────────────────────────
5:42:42 PM:   5. Edge Functions bundling                                    
5:42:42 PM: ────────────────────────────────────────────────────────────────
5:42:42 PM: ​
5:42:42 PM: Packaging Edge Functions from .netlify/edge-functions directory:
5:42:42 PM:  - ipx
5:42:46 PM: ​
5:42:46 PM: (Edge Functions bundling completed in 4.8s)
5:42:46 PM: ​
5:42:46 PM: ────────────────────────────────────────────────────────────────
5:42:46 PM:   6. @netlify/plugin-nextjs (onPostBuild event)                 
5:42:46 PM: ────────────────────────────────────────────────────────────────
5:42:46 PM: ​
5:42:47 PM: Next.js cache saved.
5:42:47 PM: ​
5:42:47 PM: (@netlify/plugin-nextjs onPostBuild completed in 447ms)
5:42:47 PM: ​
5:42:47 PM: ────────────────────────────────────────────────────────────────
5:42:47 PM:   7. Deploy site                                                
5:42:47 PM: ────────────────────────────────────────────────────────────────
5:42:47 PM: ​
5:42:47 PM: Starting to deploy site from 'packages/client/.next'
5:42:47 PM: Creating deploy tree 
5:42:47 PM: Creating deploy upload records
5:42:47 PM: ---------------------------------------------------------------------** WARNING **The default Node.js runtime will change to Node v16 on 2022-07-11.If you need to stay on v14, refer to https://ntl.fyi/pin-js-runtime.---------------------------------------------------------------------
5:42:48 PM: 56 new files to upload
5:42:48 PM: 3 new functions to upload
5:42:57 PM: Site deploy was successfully initiated
5:42:57 PM: ​
5:42:57 PM: (Deploy site completed in 10.6s)
5:42:58 PM: ​
5:42:58 PM: ────────────────────────────────────────────────────────────────
5:42:58 PM:   Netlify Build Complete                                        
5:42:58 PM: ────────────────────────────────────────────────────────────────
5:42:58 PM: ​
5:42:58 PM: (Netlify Build completed in 1m 36.6s)
5:42:58 PM: Starting post processing
5:42:58 PM: Post processing - HTML
5:42:58 PM: Caching artifacts
5:42:58 PM: Started saving node modules
5:42:58 PM: Finished saving node modules
5:42:58 PM: Started saving build plugins
5:42:58 PM: Finished saving build plugins
5:42:58 PM: Started saving yarn cache
5:42:58 PM: Processing form - newsletter
5:42:58 PM: Detected form fields: - bot-field - email
5:42:59 PM: Post processing - header rules
5:42:59 PM: Post processing - redirect rules
5:42:59 PM: Post processing done
5:43:04 PM: Site is live ✨
5:43:04 PM: Finished saving yarn cache
5:43:04 PM: Started saving pip cache
5:43:04 PM: Finished saving pip cache
5:43:04 PM: Started saving emacs cask dependencies
5:43:04 PM: Finished saving emacs cask dependencies
5:43:04 PM: Started saving maven dependencies
5:43:04 PM: Finished saving maven dependencies
5:43:04 PM: Started saving boot dependencies
5:43:04 PM: Finished saving boot dependencies
5:43:04 PM: Started saving rust rustup cache
5:43:04 PM: Finished saving rust rustup cache
5:43:04 PM: Started saving go dependencies
5:43:04 PM: Finished saving go dependencies
5:43:04 PM: Build script success
5:44:55 PM: Finished processing build request in 4m29.282574575s

Could you explain what exactly do you mean by won’t upload? What’s happening? Any errors?

Hello,

That’s the strange part, there are no error.
I am supposed to have 2 functions : […nextauth].js and checkout_sessions.js

But I only find the default Nextjs functions

On my local setup, I can build the next project and I can see my pages/api being build.

In order to see if the problem is coming from my build or netlify, I also tried my build on Vercel and the functions are uploading fine on their platform.

All of that is handled by netlify-handler. You won’t see any specific functions for each of your API.

Okkkkkk big sorry, I was sure i was supposed to have the functions.
Indeed my functions are working fine.

Thank you so much, I’ll be able to switch back to netlify.