Deploy details
Your deploy failed due to an errorDeploy summary
Built using the Next.js Runtime
Deploy log
Initializing
Complete
Initializing
Complete
2:32:52 PM: Build ready to start
2:33:06 PM: build-image version: 9c9fb6952e50bb092d4b66daf2368677e5c68e34 (focal)
2:33:06 PM: buildbot version: 9c9fb6952e50bb092d4b66daf2368677e5c68e34
2:33:06 PM: Fetching cached dependencies
2:33:06 PM: Starting to download cache of 394.3MB
2:33:07 PM: Finished downloading cache in 1.383s
2:33:07 PM: Starting to extract cache
2:33:14 PM: Finished extracting cache in 6.601s
2:33:14 PM: Finished fetching cache in 8.067s
2:33:14 PM: Starting to prepare the repo for build
2:33:14 PM: Preparing Git Reference pull/70/head
2:33:16 PM: Starting to install dependencies
2:33:16 PM: Started restoring cached mise cache
2:33:17 PM: Finished restoring cached mise cache
2:33:18 PM: mise python@3.13.2 install
2:33:18 PM: mise python@3.13.2 download cpython-3.13.2+20250205-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz
2:33:18 PM: mise python@3.13.2 extract cpython-3.13.2+20250205-x86_64-unknown-linux-gnu-install_only_stripped.tar.gz
2:33:19 PM: mise python@3.13.2 python --version
2:33:19 PM: mise python@3.13.2 Python 3.13.2
2:33:19 PM: mise python@3.13.2 ✓ installed
2:33:19 PM: Python version set to 3.13
2:33:20 PM: Collecting pipenv
2:33:20 PM: Downloading pipenv-2024.4.1-py3-none-any.whl.metadata (17 kB)
2:33:20 PM: Collecting certifi (from pipenv)
2:33:20 PM: Downloading certifi-2025.1.31-py3-none-any.whl.metadata (2.5 kB)
2:33:20 PM: Collecting packaging>=22 (from pipenv)
2:33:20 PM: Downloading packaging-24.2-py3-none-any.whl.metadata (3.2 kB)
2:33:20 PM: Collecting setuptools>=67 (from pipenv)
2:33:20 PM: Downloading setuptools-75.8.0-py3-none-any.whl.metadata (6.7 kB)
2:33:20 PM: Collecting virtualenv>=20.24.2 (from pipenv)
2:33:20 PM: Downloading virtualenv-20.29.1-py3-none-any.whl.metadata (4.5 kB)
2:33:20 PM: Collecting distlib<1,>=0.3.7 (from virtualenv>=20.24.2->pipenv)
2:33:20 PM: Downloading distlib-0.3.9-py2.py3-none-any.whl.metadata (5.2 kB)
2:33:20 PM: Collecting filelock<4,>=3.12.2 (from virtualenv>=20.24.2->pipenv)
2:33:20 PM: Downloading filelock-3.17.0-py3-none-any.whl.metadata (2.9 kB)
2:33:21 PM: Collecting platformdirs<5,>=3.9.1 (from virtualenv>=20.24.2->pipenv)
2:33:21 PM: Downloading platformdirs-4.3.6-py3-none-any.whl.metadata (11 kB)
2:33:21 PM: Downloading pipenv-2024.4.1-py3-none-any.whl (3.0 MB)
2:33:21 PM: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.0/3.0 MB 52.9 MB/s eta 0:00:00
2:33:21 PM: Downloading packaging-24.2-py3-none-any.whl (65 kB)
2:33:21 PM: Downloading setuptools-75.8.0-py3-none-any.whl (1.2 MB)
2:33:21 PM: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 37.2 MB/s eta 0:00:00
2:33:21 PM: Downloading virtualenv-20.29.1-py3-none-any.whl (4.3 MB)
2:33:21 PM: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4.3/4.3 MB 151.8 MB/s eta 0:00:00
2:33:21 PM: Downloading certifi-2025.1.31-py3-none-any.whl (166 kB)
2:33:21 PM: Downloading distlib-0.3.9-py2.py3-none-any.whl (468 kB)
2:33:21 PM: Downloading filelock-3.17.0-py3-none-any.whl (16 kB)
2:33:21 PM: Downloading platformdirs-4.3.6-py3-none-any.whl (18 kB)
2:33:21 PM: Installing collected packages: distlib, setuptools, platformdirs, packaging, filelock, certifi, virtualenv, pipenv
2:33:23 PM: Successfully installed certifi-2025.1.31 distlib-0.3.9 filelock-3.17.0 packaging-24.2 pipenv-2024.4.1 platformdirs-4.3.6 setuptools-75.8.0 virtualenv-20.29.1
2:33:23 PM: [notice] A new release of pip is available: 24.3.1 -> 25.0
2:33:23 PM: [notice] To update, run: pip install --upgrade pip
2:33:23 PM: Attempting Ruby version 2.7.2, read from environment
2:33:24 PM: Using Ruby version 2.7.2
2:33:25 PM: Started restoring cached go cache
2:33:25 PM: Finished restoring cached go cache
2:33:26 PM: go version go1.19.13 linux/amd64
2:33:27 PM: Using PHP version 8.0
2:33:28 PM: Started restoring cached Node.js version
2:33:32 PM: Finished restoring cached Node.js version
2:33:32 PM: Attempting Node.js version 'lts/*' from .nvmrc
2:33:32 PM: v22.13.1 is already installed.
2:33:33 PM: Now using node v22.13.1 (npm v10.9.2)
2:33:33 PM: Enabling Node.js Corepack
2:33:33 PM: Started restoring cached build plugins
2:33:33 PM: Finished restoring cached build plugins
2:33:33 PM: Started restoring cached corepack dependencies
2:33:33 PM: Finished restoring cached corepack dependencies
2:33:33 PM: No npm workspaces detected
2:33:33 PM: Started restoring cached node modules
2:33:33 PM: Finished restoring cached node modules
2:33:33 PM: Installing npm packages using npm version 10.9.2
2:33:34 PM: up to date, audited 718 packages in 834ms
2:33:34 PM: 190 packages are looking for funding
2:33:34 PM: run `npm fund` for details
2:33:34 PM: found 0 vulnerabilities
2:33:34 PM: npm packages installed
2:33:34 PM: Successfully installed dependencies
2:33:34 PM: Starting build script
2:33:35 PM: Detected 1 framework(s)
2:33:35 PM: "next" at version "15.1.3"
2:33:35 PM: Section completed: initializing
Building
Failed
Building
Failed
2:33:37 PM: Netlify Build
2:33:37 PM: ────────────────────────────────────────────────────────────────
2:33:37 PM:
2:33:37 PM: ❯ Version
2:33:37 PM: @netlify/build 29.58.9
2:33:37 PM:
2:33:37 PM: ❯ Flags
2:33:37 PM: accountId: 5bbb83b1c6aed62fac3cac09
2:33:37 PM: baseRelDir: true
2:33:37 PM: buildId: 67a4c81427ec310008383987
2:33:37 PM: deployId: 67a4c81427ec310008383989
2:33:37 PM:
2:33:37 PM: ❯ Current directory
2:33:37 PM: /opt/build/repo
2:33:37 PM:
2:33:37 PM: ❯ Config file
2:33:37 PM: /opt/build/repo/netlify.toml
2:33:37 PM:
2:33:37 PM: ❯ Context
2:33:37 PM: deploy-preview
2:33:37 PM:
2:33:37 PM: ❯ Using Next.js Runtime - v5.9.4
2:33:38 PM: Next.js cache restored
2:33:38 PM:
2:33:38 PM: Build command from Netlify app
2:33:38 PM: ────────────────────────────────────────────────────────────────
2:33:38 PM:
2:33:38 PM: $ npm run build
2:33:38 PM: > @kontent-ai/sample-app-next-js@1.0.0 build
2:33:38 PM: > next build
2:33:39 PM: ▲ Next.js 15.1.3
2:33:39 PM: Creating an optimized production build ...
2:33:42 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
2:33:42 PM: Failed to compile.
2:33:42 PM:
2:33:42 PM: ./lib/routing.ts
2:33:42 PM: Module not found: Can't resolve '../models/content-types/WSL_WebSpotlightRoot'
2:33:42 PM: Import trace for requested module:
2:33:42 PM: ./components/shared/ui/menu.tsx
2:33:42 PM: ./lib/routing.ts
2:33:42 PM: Module not found: Can't resolve '../models/content-types/WSL_WebSpotlightRoot'
2:33:42 PM: Import trace for requested module:
2:33:42 PM: ./app/[envId]/products/page.tsx
2:33:42 PM: > Build failed because of webpack errors
2:33:42 PM:
2:33:42 PM: "build.command" failed
2:33:42 PM: ────────────────────────────────────────────────────────────────
2:33:42 PM:
2:33:42 PM: Error message
2:33:42 PM: Command failed with exit code 1: npm run build (https://ntl.fyi/exit-code-1)
2:33:42 PM:
2:33:42 PM: Error location
2:33:42 PM: In Build command from Netlify app:
2:33:42 PM: npm run build
2:33:42 PM:
2:33:42 PM: Resolved config
2:33:42 PM: build:
2:33:42 PM: command: npm run build
2:33:42 PM: commandOrigin: ui
2:33:42 PM: environment:
2:33:42 PM: - APP_NAME
2:33:42 PM: - APP_VERSION
2:33:42 PM: - KONTENT_PREVIEW_API_KEY
2:33:42 PM: - NEXT_PUBLIC_AUTH0_WEBAUTH_AUDIENCE
2:33:42 PM: - NEXT_PUBLIC_AUTH0_WEBAUTH_CLIENT_ID
2:33:42 PM: - NEXT_PUBLIC_KONTENT_COLLECTION_CODENAME
2:33:42 PM: - NEXT_PUBLIC_KONTENT_DOMAIN
2:33:42 PM: - NEXT_PUBLIC_KONTENT_ENVIRONMENT_ID
2:33:42 PM: - NEXT_PUBLIC_OTHER_COLLECTIONS_DOMAINS
2:33:42 PM: - REVIEW_ID
2:33:42 PM: publish: /opt/build/repo/.next
2:33:42 PM: publishOrigin: ui
2:33:42 PM: plugins:
2:33:42 PM: - inputs: {}
2:33:42 PM: origin: config
2:33:42 PM: package: '@netlify/plugin-nextjs'
2:33:42 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
2:33:42 PM: Failing build: Failed to build site
2:33:43 PM: Finished processing build request in 36.803s
Deploying
Skipped
Deploying
Skipped
There is no log for this section
Cleanup
Skipped
Cleanup
Skipped
There is no log for this section
Post-processing
Skipped
Post-processing
Skipped
There is no log for this section