Command failed with exit code 1: CI= npm run build (https://ntl.fyi/exit-code-1) with CI= npm run build

10:09:24 PM: build-image version: 596993885fcc8df0dd6d507c57c5c9cb7c3a8576 (focal)
10:09:24 PM: buildbot version: 163fe70070e26a02d64141bf435d02320d25b8c1
10:09:24 PM: Fetching cached dependencies
10:09:24 PM: Failed to fetch cache, continuing with build
10:09:24 PM: Starting to prepare the repo for build
10:09:24 PM: No cached dependencies found. Cloning fresh repo
10:09:24 PM: git clone --filter=blob:none https://github.com/mertkesimliileri/ileri-sanity-website
10:09:24 PM: Preparing Git Reference refs/heads/main
10:09:25 PM: Parsing package.json dependencies
10:09:26 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: 'out' versus '.next' in the Netlify UI
10:09:26 PM: Different functions path detected, going to use the one specified in the Netlify configuration file: 'functions' versus 'functions/' in the Netlify UI
10:09:26 PM: Starting to install dependencies
10:09:26 PM: Python version set to 3.8
10:09:26 PM: Attempting Ruby version 2.7.2, read from environment
10:09:27 PM: Using Ruby version 2.7.2
10:09:27 PM: Started restoring cached go cache
10:09:27 PM: Finished restoring cached go cache
10:09:27 PM: Installing Go version 1.19.5 (requested 1.19.5)
10:09:32 PM: go version go1.19.5 linux/amd64
10:09:32 PM: Using PHP version 8.0
10:09:33 PM: v16.20.0 is already installed.
10:09:34 PM: Now using node v16.20.0 (npm v8.19.4)
10:09:34 PM: Enabling Node.js Corepack
10:09:34 PM: Started restoring cached build plugins
10:09:34 PM: Finished restoring cached build plugins
10:09:34 PM: Started restoring cached corepack dependencies
10:09:34 PM: Finished restoring cached corepack dependencies
10:09:34 PM: Started restoring cached yarn cache
10:09:34 PM: Finished restoring cached yarn cache
10:09:34 PM: No yarn workspaces detected
10:09:34 PM: Started restoring cached node modules
10:09:34 PM: Finished restoring cached node modules
10:09:34 PM: Installing npm packages using Yarn version 1.22.19
10:09:34 PM: yarn install v1.22.19
10:09:35 PM: warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
10:09:35 PM: [1/4] Resolving packages...
10:09:35 PM: [2/4] Fetching packages...
10:10:03 PM: [3/4] Linking dependencies...
10:10:03 PM: warning "netlify-cli > @netlify/build > ts-node@10.8.1" has unmet peer dependency "@types/node@*".
10:10:03 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".
10:10:04 PM: warning Workspaces can only be enabled in private projects.
10:10:37 PM: [4/4] Building fresh packages...
10:10:46 PM: Done in 71.40s.
10:10:46 PM: npm packages installed using Yarn
10:10:46 PM: Install dependencies script success
10:10:46 PM: Starting build script
10:10:47 PM: Detected 1 framework(s)
10:10:47 PM: "next" at version "12.2.4"
10:10:47 PM: Section completed: initializing
10:10:48 PM: ​
10:10:48 PM:   Netlify Build                                                 
10:10:48 PM: ────────────────────────────────────────────────────────────────
10:10:48 PM: ​
10:10:48 PM: ❯ Version
10:10:48 PM:   @netlify/build 29.9.0
10:10:48 PM: ​
10:10:48 PM: ❯ Flags
10:10:48 PM:   baseRelDir: true
10:10:48 PM:   buildId: 64306a3e2a64ab18901bf88d
10:10:48 PM:   deployId: 64306a3e2a64ab18901bf88f
10:10:48 PM: ​
10:10:48 PM: ❯ Current directory
10:10:48 PM:   /opt/build/repo
10:10:48 PM: ​
10:10:48 PM: ❯ Config file
10:10:48 PM:   /opt/build/repo/netlify.toml
10:10:48 PM: ​
10:10:48 PM: ❯ Context
10:10:48 PM:   production
10:10:48 PM: ​
10:10:48 PM: ❯ Using Next.js Runtime - v4.33.0
10:10:48 PM: ​
10:10:48 PM: ❯ Loading plugins
10:10:48 PM:    - netlify-plugin-cypress@2.2.1 from netlify.toml and package.json
10:10:50 PM: ​
10:10:50 PM:   1. @netlify/plugin-nextjs (onPreBuild event)                  
10:10:50 PM: ────────────────────────────────────────────────────────────────
10:10:50 PM: ​
10:10:50 PM: No Next.js cache to restore.
10:10:50 PM: Not running Next Runtime
10:10:50 PM: ​
10:10:50 PM: (@netlify/plugin-nextjs onPreBuild completed in 7ms)
10:10:50 PM: ​
10:10:50 PM:   2. netlify-plugin-cypress (onPreBuild event)                  
10:10:50 PM: ────────────────────────────────────────────────────────────────
10:10:50 PM: ​
10:10:57 PM: [STARTED] Task without title.
10:10:59 PM: [TITLE]  Verified Cypress! /opt/build/repo/node_modules/.cache/CypressBinary/10.11.0/Cypress
10:10:59 PM: [SUCCESS]  Verified Cypress! /opt/build/repo/node_modules/.cache/CypressBinary/10.11.0/Cypress
10:11:00 PM: [4108:0407/191100.367061:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
10:11:00 PM: Displaying Cypress info...
10:11:00 PM: Detected no known browsers installed
10:11:00 PM: Proxy Settings: none detected
10:11:00 PM: Environment Variables:
10:11:00 PM: CYPRESS_CACHE_FOLDER: ./node_modules/.cache/CypressBinary
10:11:00 PM: Application Data: /opt/buildhome/.config/cypress/cy/development
10:11:00 PM: Browser Profiles: /opt/buildhome/.config/cypress/cy/development/browsers
10:11:00 PM: Binary Caches: /opt/build/repo/node_modules/.cache/CypressBinary
10:11:00 PM: Cypress Version: 10.11.0 (stable)
10:11:00 PM: System Platform: linux (Ubuntu - 20.04)
10:11:00 PM: System Memory: 66.4 GB free 60.8 GB
10:11:00 PM: ​
10:11:00 PM: (netlify-plugin-cypress onPreBuild completed in 10.3s)
10:11:00 PM: ​
10:11:00 PM:   3. Build command from Netlify app                             
10:11:00 PM: ────────────────────────────────────────────────────────────────
10:11:00 PM: ​
10:11:00 PM: $ CI= npm run build
10:11:00 PM: > build
10:11:00 PM: > next build
10:11:01 PM: warn  - Invalid next.config.js options detected:
10:11:01 PM:   - The root value has an unexpected property, target, which is not in the list of allowed properties (amp, analyticsId, assetPrefix, basePath, cleanDistDir, compiler, compress, crossOrigin, devIndicators, distDir, env, eslint, excludeDefaultMomentLocales, experimental, exportPathMap, future, generateBuildId, generateEtags, headers, httpAgentOptions, i18n, images, onDemandEntries, optimizeFonts, output, outputFileTracing, pageExtensions, poweredByHeader, productionBrowserSourceMaps, publicRuntimeConfig, reactStrictMode, redirects, rewrites, sassOptions, serverRuntimeConfig, staticPageGenerationTimeout, swcMinify, trailingSlash, typescript, useFileSystemPublicRoutes, webpack).
10:11:01 PM: See more info here: https://nextjs.org/docs/messages/invalid-next-config
10:11:01 PM: warn  - The `target` config is deprecated and will be removed in a future version.
10:11:01 PM: See more info here https://nextjs.org/docs/messages/deprecated-target-config
10:11:01 PM: warn  - No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
10:11:01 PM: info  - Linting and checking validity of types...
10:11:03 PM: ./pages/about.js
10:11:03 PM: 34:8  Warning: React Hook useEffect has a missing dependency: 'props.locale'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
10:11:03 PM: ./pages/career.js
10:11:03 PM: 35:8  Warning: React Hook useEffect has a missing dependency: 'props.locale'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
10:11:03 PM: ./pages/footer.js
10:11:03 PM: 45:5  Warning: React Hook useEffect contains a call to 'setWindowWidth'. Without a list of dependencies, this can lead to an infinite chain of updates. To fix this, pass [] as a second argument to the useEffect Hook.  react-hooks/exhaustive-deps
10:11:03 PM: 58:5  Warning: React Hook useEffect contains a call to 'setIsVisible'. Without a list of dependencies, this can lead to an infinite chain of updates. To fix this, pass [windowWidth] as a second argument to the useEffect Hook.  react-hooks/exhaustive-deps
10:11:03 PM: 71:25  Warning: Do not use `<img>` element. Use `<Image />` from `next/image` instead. See: https://nextjs.org/docs/messages/no-img-element  @next/next/no-img-element
10:11:03 PM: ./pages/navbar.js
10:11:03 PM: 48:5  Warning: React Hook useEffect contains a call to 'setWindowWidth'. Without a list of dependencies, this can lead to an infinite chain of updates. To fix this, pass [] as a second argument to the useEffect Hook.  react-hooks/exhaustive-deps
10:11:03 PM: 61:5  Warning: React Hook useEffect contains a call to 'setIsVisible'. Without a list of dependencies, this can lead to an infinite chain of updates. To fix this, pass [windowWidth] as a second argument to the useEffect Hook.  react-hooks/exhaustive-deps
10:11:03 PM: 80:13  Warning: Synchronous scripts should not be used. See: https://nextjs.org/docs/messages/no-sync-scripts  @next/next/no-sync-scripts
10:11:03 PM: 83:21  Warning: Do not use an `<a>` element to navigate to `/`. Use `<Link />` from `next/link` instead. See: https://nextjs.org/docs/messages/no-html-link-for-pages  @next/next/no-html-link-for-pages
10:11:03 PM: 84:25  Warning: Do not use `<img>` element. Use `<Image />` from `next/image` instead. See: https://nextjs.org/docs/messages/no-img-element  @next/next/no-img-element
10:11:03 PM: ./pages/projects.js
10:11:03 PM: 35:8  Warning: React Hook useEffect has a missing dependency: 'props.locale'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
10:11:03 PM: info  - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
10:11:03 PM: info  - Creating an optimized production build...
10:11:11 PM: warn  - Compiled with warnings
10:11:11 PM: ./node_modules/next-i18next/dist/commonjs/serverSideTranslations.js
10:11:11 PM: Critical dependency: the request of a dependency is an expression
10:11:11 PM: Import trace for requested module:
10:11:11 PM: ./node_modules/next-i18next/serverSideTranslations.js
10:11:11 PM: ./pages/career.js
10:11:11 PM: ./node_modules/next/dist/build/webpack/loaders/next-serverless-loader/index.js?absolute404Path=&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&absoluteErrorPath=next%2Fdist%2Fpages%2F_error&absolutePagePath=private-next-pages%2Fcareer.js&assetPrefix=&basePath=&buildId=kkBLRYcBMj8KPA6CLyWQU&canonicalBase=&distDir=private-dot-next&generateEtags=true&i18n=%7B%22locales%22%3A%5B%22tr%22%2C%22en%22%5D%2C%22defaultLocale%22%3A%22tr%22%7D&loadedEnvFiles=W10%3D&page=%2Fcareer&poweredByHeader=true&previewProps=%7B%22previewModeId%22%3A%228d54a9f60cebd85430abcb38a5eb11fc%22%2C%22previewModeSigningKey%22%3A%22115f2a3d9adc924f965f00c85dfcc6a2d81a1cd0990665c81059751e6a6d13c5%22%2C%22previewModeEncryptionKey%22%3A%224edfd89ffc73e5865c8673856259455693e5dbf5352329b7ccec2b3963c2fe8e%22%7D&runtimeConfig=!
10:11:11 PM: ./node_modules/i18next-fs-backend/cjs/readFile.js
10:11:11 PM: Critical dependency: the request of a dependency is an expression
10:11:11 PM: Import trace for requested module:
10:11:11 PM: ./node_modules/i18next-fs-backend/cjs/index.js
10:11:11 PM: ./node_modules/next-i18next/dist/commonjs/createClient/node.js
10:11:11 PM: ./node_modules/next-i18next/dist/commonjs/serverSideTranslations.js
10:11:11 PM: ./node_modules/next-i18next/serverSideTranslations.js
10:11:11 PM: ./pages/career.js
10:11:11 PM: ./node_modules/next/dist/build/webpack/loaders/next-serverless-loader/index.js?absolute404Path=&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&absoluteErrorPath=next%2Fdist%2Fpages%2F_error&absolutePagePath=private-next-pages%2Fcareer.js&assetPrefix=&basePath=&buildId=kkBLRYcBMj8KPA6CLyWQU&canonicalBase=&distDir=private-dot-next&generateEtags=true&i18n=%7B%22locales%22%3A%5B%22tr%22%2C%22en%22%5D%2C%22defaultLocale%22%3A%22tr%22%7D&loadedEnvFiles=W10%3D&page=%2Fcareer&poweredByHeader=true&previewProps=%7B%22previewModeId%22%3A%228d54a9f60cebd85430abcb38a5eb11fc%22%2C%22previewModeSigningKey%22%3A%22115f2a3d9adc924f965f00c85dfcc6a2d81a1cd0990665c81059751e6a6d13c5%22%2C%22previewModeEncryptionKey%22%3A%224edfd89ffc73e5865c8673856259455693e5dbf5352329b7ccec2b3963c2fe8e%22%7D&runtimeConfig=!
10:11:11 PM: ./node_modules/i18next-fs-backend/cjs/readFile.js
10:11:11 PM: Critical dependency: the request of a dependency is an expression
10:11:11 PM: Import trace for requested module:
10:11:11 PM: ./node_modules/i18next-fs-backend/cjs/index.js
10:11:11 PM: ./node_modules/next-i18next/dist/commonjs/createClient/node.js
10:11:11 PM: ./node_modules/next-i18next/dist/commonjs/serverSideTranslations.js
10:11:11 PM: ./node_modules/next-i18next/serverSideTranslations.js
10:11:11 PM: ./pages/career.js
10:11:11 PM: ./node_modules/next/dist/build/webpack/loaders/next-serverless-loader/index.js?absolute404Path=&absoluteAppPath=private-next-pages%2F_app.js&absoluteDocumentPath=private-next-pages%2F_document.js&absoluteErrorPath=next%2Fdist%2Fpages%2F_error&absolutePagePath=private-next-pages%2Fcareer.js&assetPrefix=&basePath=&buildId=kkBLRYcBMj8KPA6CLyWQU&canonicalBase=&distDir=private-dot-next&generateEtags=true&i18n=%7B%22locales%22%3A%5B%22tr%22%2C%22en%22%5D%2C%22defaultLocale%22%3A%22tr%22%7D&loadedEnvFiles=W10%3D&page=%2Fcareer&poweredByHeader=true&previewProps=%7B%22previewModeId%22%3A%228d54a9f60cebd85430abcb38a5eb11fc%22%2C%22previewModeSigningKey%22%3A%22115f2a3d9adc924f965f00c85dfcc6a2d81a1cd0990665c81059751e6a6d13c5%22%2C%22previewModeEncryptionKey%22%3A%224edfd89ffc73e5865c8673856259455693e5dbf5352329b7ccec2b3963c2fe8e%22%7D&runtimeConfig=!
10:11:11 PM: info  - Collecting page data...
10:11:12 PM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
10:11:12 PM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
10:11:12 PM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
10:11:12 PM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
10:11:12 PM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
10:11:12 PM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
10:11:14 PM: info  - Generating static pages (0/20)
10:11:15 PM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
10:11:15 PM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
10:11:15 PM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
10:11:15 PM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
10:11:15 PM: Unhandled error during request: Error: Cannot find module '/opt/build/repo/next-i18next.config.js'
10:11:15 PM:     at webpackEmptyContext (/opt/build/repo/.next/serverless/pages/footer.js:11:10)
10:11:15 PM:     at /opt/build/repo/.next/serverless/chunks/199.js:187:72 {
10:11:15 PM:   code: 'MODULE_NOT_FOUND'
10:11:15 PM: }
10:11:15 PM: Error occurred prerendering page "/en/footer". Read more: https://nextjs.org/docs/messages/prerender-error
10:11:15 PM: Error: Cannot find module '/opt/build/repo/next-i18next.config.js'
10:11:15 PM:     at webpackEmptyContext (/opt/build/repo/.next/serverless/pages/footer.js:11:10)
10:11:15 PM:     at /opt/build/repo/.next/serverless/chunks/199.js:187:72
10:11:15 PM: Unhandled error during request: Error: Cannot find module '/opt/build/repo/next-i18next.config.js'
10:11:15 PM:     at webpackEmptyContext (/opt/build/repo/.next/serverless/chunks/141.js:9:10)
10:11:15 PM:     at /opt/build/repo/.next/serverless/chunks/199.js:187:72 {
10:11:15 PM:   code: 'MODULE_NOT_FOUND'
10:11:15 PM: }
10:11:15 PM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
10:11:15 PM: Error occurred prerendering page "/en". Read more: https://nextjs.org/docs/messages/prerender-error
10:11:15 PM: Error: Cannot find module '/opt/build/repo/next-i18next.config.js'
10:11:15 PM:     at webpackEmptyContext (/opt/build/repo/.next/serverless/chunks/141.js:9:10)
10:11:15 PM:     at /opt/build/repo/.next/serverless/chunks/199.js:187:72
10:11:15 PM: Unhandled error during request: Error: Cannot find module '/opt/build/repo/next-i18next.config.js'
10:11:15 PM:     at webpackEmptyContext (/opt/build/repo/.next/serverless/chunks/141.js:9:10)
10:11:15 PM:     at /opt/build/repo/.next/serverless/chunks/199.js:187:72 {
10:11:15 PM:   code: 'MODULE_NOT_FOUND'
10:11:15 PM: }
10:11:15 PM: Error occurred prerendering page "/en/about". Read more: https://nextjs.org/docs/messages/prerender-error
10:11:15 PM: Error: Cannot find module '/opt/build/repo/next-i18next.config.js'
10:11:15 PM:     at webpackEmptyContext (/opt/build/repo/.next/serverless/chunks/141.js:9:10)
10:11:15 PM:     at /opt/build/repo/.next/serverless/chunks/199.js:187:72
10:11:15 PM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
10:11:15 PM: Unhandled error during request: Error: Cannot find module '/opt/build/repo/next-i18next.config.js'
10:11:15 PM:     at webpackEmptyContext (/opt/build/repo/.next/serverless/chunks/141.js:9:10)
10:11:15 PM:     at /opt/build/repo/.next/serverless/chunks/199.js:187:72 {
10:11:15 PM:   code: 'MODULE_NOT_FOUND'
10:11:15 PM: }
10:11:15 PM: Error occurred prerendering page "/tr/career". Read more: https://nextjs.org/docs/messages/prerender-error
10:11:15 PM: Error: Cannot find module '/opt/build/repo/next-i18next.config.js'
10:11:15 PM:     at webpackEmptyContext (/opt/build/repo/.next/serverless/chunks/141.js:9:10)
10:11:15 PM:     at /opt/build/repo/.next/serverless/chunks/199.js:187:72
10:11:15 PM: info  - Generating static pages (5/20)
10:11:15 PM: Unhandled error during request: Error: Cannot find module '/opt/build/repo/next-i18next.config.js'
10:11:15 PM:     at webpackEmptyContext (/opt/build/repo/.next/serverless/chunks/141.js:9:10)
10:11:15 PM:     at /opt/build/repo/.next/serverless/chunks/199.js:187:72 {
10:11:15 PM:   code: 'MODULE_NOT_FOUND'
10:11:15 PM: }
10:11:15 PM: Error occurred prerendering page "/tr/about". Read more: https://nextjs.org/docs/messages/prerender-error
10:11:15 PM: Error: Cannot find module '/opt/build/repo/next-i18next.config.js'
10:11:15 PM:     at webpackEmptyContext (/opt/build/repo/.next/serverless/chunks/141.js:9:10)
10:11:15 PM:     at /opt/build/repo/.next/serverless/chunks/199.js:187:72
10:11:15 PM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
10:11:15 PM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
10:11:15 PM: Unhandled error during request: Error: Cannot find module '/opt/build/repo/next-i18next.config.js'
10:11:15 PM:     at webpackEmptyContext (/opt/build/repo/.next/serverless/chunks/141.js:9:10)
10:11:15 PM:     at /opt/build/repo/.next/serverless/chunks/199.js:187:72 {
10:11:15 PM:   code: 'MODULE_NOT_FOUND'
10:11:15 PM: }
10:11:15 PM: Error occurred prerendering page "/en/projects". Read more: https://nextjs.org/docs/messages/prerender-error
10:11:15 PM: Error: Cannot find module '/opt/build/repo/next-i18next.config.js'
10:11:15 PM:     at webpackEmptyContext (/opt/build/repo/.next/serverless/chunks/141.js:9:10)
10:11:15 PM:     at /opt/build/repo/.next/serverless/chunks/199.js:187:72
10:11:15 PM: Unhandled error during request: Error: Cannot find module '/opt/build/repo/next-i18next.config.js'
10:11:15 PM:     at webpackEmptyContext (/opt/build/repo/.next/serverless/pages/footer.js:11:10)
10:11:15 PM:     at /opt/build/repo/.next/serverless/chunks/199.js:187:72 {
10:11:15 PM:   code: 'MODULE_NOT_FOUND'
10:11:15 PM: }
10:11:15 PM: Error occurred prerendering page "/tr/footer". Read more: https://nextjs.org/docs/messages/prerender-error
10:11:15 PM: Error: Cannot find module '/opt/build/repo/next-i18next.config.js'
10:11:15 PM:     at webpackEmptyContext (/opt/build/repo/.next/serverless/pages/footer.js:11:10)
10:11:15 PM:     at /opt/build/repo/.next/serverless/chunks/199.js:187:72
10:11:15 PM: info  - Generating static pages (10/20)
10:11:15 PM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
10:11:15 PM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
10:11:15 PM: Unhandled error during request: Error: Cannot find module '/opt/build/repo/next-i18next.config.js'
10:11:15 PM:     at webpackEmptyContext (/opt/build/repo/.next/serverless/chunks/141.js:9:10)
10:11:15 PM:     at /opt/build/repo/.next/serverless/chunks/199.js:187:72 {
10:11:15 PM:   code: 'MODULE_NOT_FOUND'
10:11:15 PM: }
10:11:15 PM: Error occurred prerendering page "/tr/projects". Read more: https://nextjs.org/docs/messages/prerender-error
10:11:15 PM: Error: Cannot find module '/opt/build/repo/next-i18next.config.js'
10:11:15 PM:     at webpackEmptyContext (/opt/build/repo/.next/serverless/chunks/141.js:9:10)
10:11:15 PM:     at /opt/build/repo/.next/serverless/chunks/199.js:187:72
10:11:15 PM: Unhandled error during request: Error: Cannot find module '/opt/build/repo/next-i18next.config.js'
10:11:15 PM:     at webpackEmptyContext (/opt/build/repo/.next/serverless/chunks/141.js:9:10)
10:11:15 PM:     at /opt/build/repo/.next/serverless/chunks/199.js:187:72 {
10:11:15 PM:   code: 'MODULE_NOT_FOUND'
10:11:15 PM: }
10:11:16 PM: Error occurred prerendering page "/tr". Read more: https://nextjs.org/docs/messages/prerender-error
10:11:16 PM: Error: Cannot find module '/opt/build/repo/next-i18next.config.js'
10:11:16 PM:     at webpackEmptyContext (/opt/build/repo/.next/serverless/chunks/141.js:9:10)
10:11:16 PM:     at /opt/build/repo/.next/serverless/chunks/199.js:187:72
10:11:16 PM: Unhandled error during request: Error: Cannot find module '/opt/build/repo/next-i18next.config.js'
10:11:16 PM:     at webpackEmptyContext (/opt/build/repo/.next/serverless/chunks/141.js:9:10)
10:11:16 PM:     at /opt/build/repo/.next/serverless/chunks/199.js:187:72 {
10:11:16 PM:   code: 'MODULE_NOT_FOUND'
10:11:16 PM: }
10:11:16 PM: Error occurred prerendering page "/tr/navbar". Read more: https://nextjs.org/docs/messages/prerender-error
10:11:16 PM: Error: Cannot find module '/opt/build/repo/next-i18next.config.js'
10:11:16 PM:     at webpackEmptyContext (/opt/build/repo/.next/serverless/chunks/141.js:9:10)
10:11:16 PM:     at /opt/build/repo/.next/serverless/chunks/199.js:187:72
10:11:16 PM: Unhandled error during request: Error: Cannot find module '/opt/build/repo/next-i18next.config.js'
10:11:16 PM:     at webpackEmptyContext (/opt/build/repo/.next/serverless/chunks/141.js:9:10)
10:11:16 PM:     at /opt/build/repo/.next/serverless/chunks/199.js:187:72 {
10:11:16 PM:   code: 'MODULE_NOT_FOUND'
10:11:16 PM: }
10:11:16 PM: Error occurred prerendering page "/en/contact". Read more: https://nextjs.org/docs/messages/prerender-error
10:11:16 PM: Error: Cannot find module '/opt/build/repo/next-i18next.config.js'
10:11:16 PM:     at webpackEmptyContext (/opt/build/repo/.next/serverless/chunks/141.js:9:10)
10:11:16 PM:     at /opt/build/repo/.next/serverless/chunks/199.js:187:72
10:11:16 PM: info  - Generating static pages (15/20)
10:11:16 PM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
10:11:16 PM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
10:11:16 PM: Unhandled error during request: Error: Cannot find module '/opt/build/repo/next-i18next.config.js'
10:11:16 PM:     at webpackEmptyContext (/opt/build/repo/.next/serverless/chunks/141.js:9:10)
10:11:16 PM:     at /opt/build/repo/.next/serverless/chunks/199.js:187:72 {
10:11:16 PM:   code: 'MODULE_NOT_FOUND'
10:11:16 PM: }
10:11:16 PM: Error occurred prerendering page "/en/navbar". Read more: https://nextjs.org/docs/messages/prerender-error
10:11:16 PM: Error: Cannot find module '/opt/build/repo/next-i18next.config.js'
10:11:16 PM:     at webpackEmptyContext (/opt/build/repo/.next/serverless/chunks/141.js:9:10)
10:11:16 PM:     at /opt/build/repo/.next/serverless/chunks/199.js:187:72
10:11:16 PM: Unhandled error during request: Error: Cannot find module '/opt/build/repo/next-i18next.config.js'
10:11:16 PM:     at webpackEmptyContext (/opt/build/repo/.next/serverless/chunks/141.js:9:10)
10:11:16 PM:     at /opt/build/repo/.next/serverless/chunks/199.js:187:72 {
10:11:16 PM:   code: 'MODULE_NOT_FOUND'
10:11:16 PM: }
10:11:16 PM: Error occurred prerendering page "/en/career". Read more: https://nextjs.org/docs/messages/prerender-error
10:11:16 PM: Error: Cannot find module '/opt/build/repo/next-i18next.config.js'
10:11:16 PM:     at webpackEmptyContext (/opt/build/repo/.next/serverless/chunks/141.js:9:10)
10:11:16 PM:     at /opt/build/repo/.next/serverless/chunks/199.js:187:72
10:11:16 PM: Unhandled error during request: Error: Cannot find module '/opt/build/repo/next-i18next.config.js'
10:11:16 PM:     at webpackEmptyContext (/opt/build/repo/.next/serverless/chunks/141.js:9:10)
10:11:16 PM:     at /opt/build/repo/.next/serverless/chunks/199.js:187:72 {
10:11:16 PM:   code: 'MODULE_NOT_FOUND'
10:11:16 PM: }
10:11:16 PM: Error occurred prerendering page "/tr/contact". Read more: https://nextjs.org/docs/messages/prerender-error
10:11:16 PM: Error: Cannot find module '/opt/build/repo/next-i18next.config.js'
10:11:16 PM:     at webpackEmptyContext (/opt/build/repo/.next/serverless/chunks/141.js:9:10)
10:11:16 PM:     at /opt/build/repo/.next/serverless/chunks/199.js:187:72
10:11:16 PM: info  - Generating static pages (20/20)
10:11:16 PM: > Build error occurred
10:11:16 PM: Error: Export encountered errors on following paths:
10:11:16 PM: 	/: /en
10:11:16 PM: 	/: /tr
10:11:16 PM: 	/about: /en/about
10:11:16 PM: 	/about: /tr/about
10:11:16 PM: 	/career: /en/career
10:11:16 PM: 	/career: /tr/career
10:11:16 PM: 	/contact: /en/contact
10:11:16 PM: 	/contact: /tr/contact
10:11:16 PM: 	/footer: /en/footer
10:11:16 PM: 	/footer: /tr/footer
10:11:16 PM: 	/navbar: /en/navbar
10:11:16 PM: 	/navbar: /tr/navbar
10:11:16 PM: 	/projects: /en/projects
10:11:16 PM: 	/projects: /tr/projects
10:11:16 PM:     at /opt/build/repo/node_modules/next/dist/export/index.js:395:19
10:11:16 PM:     at runMicrotasks (<anonymous>)
10:11:16 PM:     at processTicksAndRejections (node:internal/process/task_queues:96:5)
10:11:16 PM:     at async Span.traceAsyncFn (/opt/build/repo/node_modules/next/dist/trace/trace.js:79:20)
10:11:16 PM:     at async /opt/build/repo/node_modules/next/dist/build/index.js:1094:21
10:11:16 PM:     at async Span.traceAsyncFn (/opt/build/repo/node_modules/next/dist/trace/trace.js:79:20)
10:11:16 PM:     at async /opt/build/repo/node_modules/next/dist/build/index.js:971:17
10:11:16 PM:     at async Span.traceAsyncFn (/opt/build/repo/node_modules/next/dist/trace/trace.js:79:20)
10:11:16 PM:     at async Object.build [as default] (/opt/build/repo/node_modules/next/dist/build/index.js:64:29)
10:11:16 PM: ​
10:11:16 PM:   "build.command" failed                                        
10:11:16 PM: ────────────────────────────────────────────────────────────────
10:11:16 PM: ​
10:11:16 PM:   Error message
10:11:16 PM:   Command failed with exit code 1: CI= npm run build (https://ntl.fyi/exit-code-1)
10:11:16 PM: ​
10:11:16 PM:   Error location
10:11:16 PM:   In Build command from Netlify app:
10:11:16 PM:   CI= npm run build
10:11:16 PM: ​
10:11:16 PM:   Resolved config
10:11:16 PM:   build:
10:11:16 PM:     command: CI= npm run build
10:11:16 PM:     commandOrigin: ui
10:11:16 PM:     environment:
10:11:16 PM:       - CI
10:11:16 PM:       - NETLIFY_NEXT_PLUGIN_SKIP
10:11:16 PM:     publish: /opt/build/repo/out
10:11:16 PM:     publishOrigin: config
10:11:16 PM:   functions:
10:11:16 PM:     '*':
10:11:16 PM:       node_bundler: esbuild
10:11:16 PM:   functionsDirectory: /opt/build/repo/functions
10:11:16 PM:   plugins:
10:11:16 PM:     - inputs: {}
10:11:16 PM:       origin: ui
10:11:16 PM:       package: '@netlify/plugin-nextjs'
10:11:16 PM:     - inputs: {}
10:11:16 PM:       origin: config
10:11:16 PM:       package: netlify-plugin-cypress
10:11:16 PM: Caching artifacts
10:11:16 PM: Started saving node modules
10:11:23 PM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
10:11:16 PM: Finished saving node modules
10:11:16 PM: Started saving build plugins
10:11:16 PM: Finished saving build plugins
10:11:16 PM: Started saving corepack cache
10:11:16 PM: Finished saving corepack cache
10:11:16 PM: Started saving yarn cache
10:11:22 PM: Finished saving yarn cache
10:11:22 PM: Started saving pip cache
10:11:22 PM: Finished saving pip cache
10:11:22 PM: Started saving emacs cask dependencies
10:11:22 PM: Finished saving emacs cask dependencies
10:11:22 PM: Started saving maven dependencies
10:11:22 PM: Finished saving maven dependencies
10:11:22 PM: Started saving boot dependencies
10:11:22 PM: Finished saving boot dependencies
10:11:22 PM: Started saving rust rustup cache
10:11:22 PM: Finished saving rust rustup cache
10:11:22 PM: Started saving go dependencies
10:11:22 PM: Finished saving go dependencies
10:11:23 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
10:11:23 PM: Failing build: Failed to build site
10:11:24 PM: Finished processing build request in 1m59.774s

I apllied CI= npm run build solution and adding CI=false to enviroment variables, still I get this error.

git repo: GitHub - mertkesimliileri/ileri-sanity-website
Thanks

I see you have opened another thread on the same topic. Please don’t as it won’t get you support quicker.

The section of the build log you have posted does not display the reason for the error, only the fact the build failed because of an error.

Please either post the entire build log and/or permalink to the public log. Providing a link to the repository you are deploying from would also help.

Thanks for reply, I provided git repo and added entire log

@mert1 Setting CI= npm run build lets the build progress past the warnings being thrown, but it’s not a magic bullet that will bypass all errors.

When I pull your repository and execute npm run build locally, I encounter the same error that I see in your build log…

10:11:15 PM: Unhandled error during request: Error: Cannot find module '/opt/build/repo/next-i18next.config.js'
10:11:15 PM:     at webpackEmptyContext (/opt/build/repo/.next/serverless/pages/footer.js:11:10)
10:11:15 PM:     at /opt/build/repo/.next/serverless/chunks/199.js:187:72 {
10:11:15 PM:   code: 'MODULE_NOT_FOUND'
10:11:15 PM: }

Have you been able to successfully run your project locally?

when I run netlify dev I get :

 Error: The site this folder is linked to can't be found

cant run locally

What is the build command you are running? I see that in the netlify.toml the publish directory is set to out. This would indicate you are running next export. If this is the case, you don’t want to use the Next.js Runtime instead, as outlined in the Next.js Framework Integrations documentation

For apps that use next export to generate static HTML, set the NETLIFY_NEXT_PLUGIN_SKIP environment variable to true.

after some changes I can build locally but on netlify log:

8:20:23 AM: build-image version: 596993885fcc8df0dd6d507c57c5c9cb7c3a8576 (focal)
8:20:23 AM: buildbot version: 163fe70070e26a02d64141bf435d02320d25b8c1
8:20:23 AM: Fetching cached dependencies
8:20:23 AM: Starting to download cache of 1.1GB
8:20:32 AM: Finished downloading cache in 8.594s
8:20:32 AM: Starting to extract cache
8:20:40 AM: Finished extracting cache in 8.404s
8:20:40 AM: Finished fetching cache in 17.1s
8:20:40 AM: Starting to prepare the repo for build
8:20:40 AM: Preparing Git Reference refs/heads/main
8:20:41 AM: Parsing package.json dependencies
8:20:42 AM: Different publish path detected, going to use the one specified in the Netlify configuration file: 'out' versus '.next' in the Netlify UI
8:20:42 AM: Different functions path detected, going to use the one specified in the Netlify configuration file: 'functions' versus 'functions/' in the Netlify UI
8:20:42 AM: Different build command detected, going to use the one specified in the Netlify configuration file: 'npm run build && npm run export' versus 'npm run build && npm export' in the Netlify UI
8:20:42 AM: Starting to install dependencies
8:20:42 AM: Python version set to 3.8
8:20:42 AM: Attempting Ruby version 2.7.2, read from environment
8:20:43 AM: Using Ruby version 2.7.2
8:20:43 AM: Started restoring cached go cache
8:20:43 AM: Finished restoring cached go cache
8:20:43 AM: Installing Go version 1.19.5 (requested 1.19.5)
8:20:49 AM: go version go1.19.5 linux/amd64
8:20:49 AM: Using PHP version 8.0
8:20:50 AM: Started restoring cached Node.js version
8:20:50 AM: Finished restoring cached Node.js version
8:20:50 AM: v16.20.0 is already installed.
8:20:51 AM: Now using node v16.20.0 (npm v8.19.4)
8:20:51 AM: Enabling Node.js Corepack
8:20:51 AM: Started restoring cached build plugins
8:20:51 AM: Finished restoring cached build plugins
8:20:51 AM: Started restoring cached corepack dependencies
8:20:51 AM: Finished restoring cached corepack dependencies
8:20:51 AM: Started restoring cached yarn cache
8:20:57 AM: Finished restoring cached yarn cache
8:20:58 AM: No yarn workspaces detected
8:20:58 AM: Started restoring cached node modules
8:20:58 AM: Finished restoring cached node modules
8:20:58 AM: Installing npm packages using Yarn version 1.22.19
8:20:58 AM: yarn install v1.22.19
8:20:58 AM: warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
8:20:58 AM: [1/4] Resolving packages...
8:20:59 AM: success Already up-to-date.
8:20:59 AM: Done in 0.48s.
8:20:59 AM: npm packages installed using Yarn
8:20:59 AM: Install dependencies script success
8:20:59 AM: Starting build script
8:21:00 AM: Detected 1 framework(s)
8:21:00 AM: "next" at version "12.2.4"
8:21:00 AM: Section completed: initializing
8:21:01 AM: ​
8:21:01 AM:   Netlify Build                                                 
8:21:01 AM: ────────────────────────────────────────────────────────────────
8:21:01 AM: ​
8:21:01 AM: ❯ Version
8:21:01 AM:   @netlify/build 29.9.0
8:21:01 AM: ​
8:21:01 AM: ❯ Flags
8:21:01 AM:   baseRelDir: true
8:21:01 AM:   buildId: 6430f98d3141440008bdcdf2
8:21:01 AM:   deployId: 6430f98d3141440008bdcdf4
8:21:01 AM: ​
8:21:01 AM: ❯ Current directory
8:21:01 AM:   /opt/build/repo
8:21:01 AM: ​
8:21:01 AM: ❯ Config file
8:21:01 AM:   /opt/build/repo/netlify.toml
8:21:01 AM: ​
8:21:01 AM: ❯ Context
8:21:01 AM:   production
8:21:01 AM: ​
8:21:01 AM: ❯ Using Next.js Runtime - v4.33.0
8:21:01 AM: ​
8:21:01 AM: ❯ Loading plugins
8:21:01 AM:    - netlify-plugin-cypress@2.2.1 from netlify.toml and package.json
8:21:03 AM: ​
8:21:03 AM:   1. @netlify/plugin-nextjs (onPreBuild event)                  
8:21:03 AM: ────────────────────────────────────────────────────────────────
8:21:03 AM: ​
8:21:03 AM: Next.js cache restored.
8:21:03 AM: Not running Next Runtime
8:21:03 AM: ​
8:21:03 AM: (@netlify/plugin-nextjs onPreBuild completed in 120ms)
8:21:03 AM: ​
8:21:03 AM:   2. netlify-plugin-cypress (onPreBuild event)                  
8:21:03 AM: ────────────────────────────────────────────────────────────────
8:21:03 AM: ​
8:21:03 AM: [STARTED] Task without title.
8:21:05 AM: [TITLE]  Verified Cypress! /opt/build/repo/node_modules/.cache/CypressBinary/10.11.0/Cypress
8:21:05 AM: [SUCCESS]  Verified Cypress! /opt/build/repo/node_modules/.cache/CypressBinary/10.11.0/Cypress
8:21:07 AM: [3751:0408/052107.032945:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
8:21:07 AM: Displaying Cypress info...
8:21:07 AM: Detected no known browsers installed
8:21:07 AM: Proxy Settings: none detected
8:21:07 AM: Environment Variables:
8:21:07 AM: CYPRESS_CACHE_FOLDER: ./node_modules/.cache/CypressBinary
8:21:07 AM: Application Data: /opt/buildhome/.config/cypress/cy/development
8:21:07 AM: Browser Profiles: /opt/buildhome/.config/cypress/cy/development/browsers
8:21:07 AM: Binary Caches: /opt/build/repo/node_modules/.cache/CypressBinary
8:21:07 AM: Cypress Version: 10.11.0 (stable)
8:21:07 AM: System Platform: linux (Ubuntu - 20.04)
8:21:07 AM: System Memory: 66.4 GB free 55.1 GB
8:21:07 AM: ​
8:21:07 AM: (netlify-plugin-cypress onPreBuild completed in 3.8s)
8:21:07 AM: ​
8:21:07 AM:   3. build.command from netlify.toml                            
8:21:07 AM: ────────────────────────────────────────────────────────────────
8:21:07 AM: ​
8:21:07 AM: $ npm run build && npm run export
8:21:07 AM: > build
8:21:07 AM: > next build
8:21:07 AM: info  - Linting and checking validity of types...
8:21:10 AM: ./pages/about.js
8:21:10 AM: 34:8  Warning: React Hook useEffect has a missing dependency: 'props.locale'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
8:21:10 AM: ./pages/career.js
8:21:10 AM: 35:8  Warning: React Hook useEffect has a missing dependency: 'props.locale'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
8:21:10 AM: ./pages/footer.js
8:21:10 AM: 45:5  Warning: React Hook useEffect contains a call to 'setWindowWidth'. Without a list of dependencies, this can lead to an infinite chain of updates. To fix this, pass [] as a second argument to the useEffect Hook.  react-hooks/exhaustive-deps
8:21:10 AM: 58:5  Warning: React Hook useEffect contains a call to 'setIsVisible'. Without a list of dependencies, this can lead to an infinite chain of updates. To fix this, pass [windowWidth] as a second argument to the useEffect Hook.  react-hooks/exhaustive-deps
8:21:10 AM: 71:25  Warning: Do not use `<img>` element. Use `<Image />` from `next/image` instead. See: https://nextjs.org/docs/messages/no-img-element  @next/next/no-img-element
8:21:10 AM: ./pages/navbar.js
8:21:10 AM: 48:5  Warning: React Hook useEffect contains a call to 'setWindowWidth'. Without a list of dependencies, this can lead to an infinite chain of updates. To fix this, pass [] as a second argument to the useEffect Hook.  react-hooks/exhaustive-deps
8:21:10 AM: 61:5  Warning: React Hook useEffect contains a call to 'setIsVisible'. Without a list of dependencies, this can lead to an infinite chain of updates. To fix this, pass [windowWidth] as a second argument to the useEffect Hook.  react-hooks/exhaustive-deps
8:21:10 AM: 80:13  Warning: Synchronous scripts should not be used. See: https://nextjs.org/docs/messages/no-sync-scripts  @next/next/no-sync-scripts
8:21:10 AM: 83:21  Warning: Do not use an `<a>` element to navigate to `/`. Use `<Link />` from `next/link` instead. See: https://nextjs.org/docs/messages/no-html-link-for-pages  @next/next/no-html-link-for-pages
8:21:10 AM: 84:25  Warning: Do not use `<img>` element. Use `<Image />` from `next/image` instead. See: https://nextjs.org/docs/messages/no-img-element  @next/next/no-img-element
8:21:10 AM: ./pages/projects.js
8:21:10 AM: 35:8  Warning: React Hook useEffect has a missing dependency: 'props.locale'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
8:21:10 AM: info  - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
8:21:10 AM: info  - Creating an optimized production build...
8:21:14 AM: info  - Compiled successfully
8:21:14 AM: info  - Collecting page data...
8:21:15 AM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
8:21:15 AM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
8:21:15 AM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
8:21:15 AM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
8:21:15 AM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
8:21:15 AM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
8:21:15 AM: info  - Generating static pages (0/20)
8:21:17 AM: info  - Generating static pages (5/20)
8:21:17 AM: info  - Generating static pages (10/20)
8:21:17 AM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
8:21:17 AM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
8:21:17 AM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
8:21:17 AM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
8:21:17 AM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
8:21:17 AM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
8:21:17 AM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
8:21:17 AM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
8:21:17 AM: info  - Generating static pages (15/20)
8:21:17 AM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
8:21:17 AM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
8:21:17 AM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
8:21:17 AM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
8:21:17 AM: info  - Generating static pages (20/20)
8:21:17 AM: info  - Finalizing page optimization...
8:21:17 AM: Page                                       Size     First Load JS
8:21:17 AM: β”Œ ● /                                      3.16 kB         104 kB
8:21:17 AM: β”œ   β”” css/8d11b05d73f8ff07.css             1.81 kB
8:21:17 AM: β”œ   /_app                                  0 B            98.6 kB
8:21:17 AM: β”œ β—‹ /404                                   194 B          98.8 kB
8:21:17 AM: β”œ ● /about                                 2.17 kB         133 kB
8:21:17 AM: β”œ   β”” css/9bcc0b30f5581407.css             1.65 kB
8:21:17 AM: β”œ ● /career                                2.18 kB         133 kB
8:21:17 AM: β”œ   β”” css/303137dcac857dce.css             1.65 kB
8:21:17 AM: β”œ ● /contact                               11 kB           112 kB
8:21:17 AM: β”œ   β”” css/d5ec719747b57d3b.css             2.41 kB
8:21:17 AM: β”œ ● /footer                                991 B           102 kB
8:21:17 AM: β”œ   β”” css/722d1fa284bf1eeb.css             529 B
8:21:17 AM: β”œ ● /navbar                                2.04 kB         103 kB
8:21:17 AM: β”œ   β”” css/b491afdc8e07b89c.css             1.04 kB
8:21:17 AM: β”” ● /projects                              2.18 kB         133 kB
8:21:17 AM:     β”” css/77375b590fae8adb.css             1.66 kB
8:21:17 AM: + First Load JS shared by all              98.6 kB
8:21:17 AM:   β”œ chunks/framework-4556c45dd113b893.js   45.2 kB
8:21:17 AM:   β”œ chunks/main-954ad260bd289753.js        31.3 kB
8:21:17 AM:   β”œ chunks/pages/_app-62f0019fb6805018.js  20.1 kB
8:21:17 AM:   β”œ chunks/webpack-438f1a2238bf9a70.js     1.87 kB
8:21:17 AM:   β”” css/645c3622376074db.css               432 B
8:21:17 AM: β—‹  (Static)  automatically rendered as static HTML (uses no initial props)
8:21:17 AM: ●  (SSG)     automatically generated as static HTML + JSON (uses getStaticProps)
8:21:18 AM: > export
8:21:18 AM: > next build && next export
8:21:18 AM: info  - Linting and checking validity of types...
8:21:20 AM: ./pages/about.js
8:21:20 AM: 34:8  Warning: React Hook useEffect has a missing dependency: 'props.locale'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
8:21:20 AM: ./pages/career.js
8:21:20 AM: 35:8  Warning: React Hook useEffect has a missing dependency: 'props.locale'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
8:21:20 AM: ./pages/footer.js
8:21:20 AM: 45:5  Warning: React Hook useEffect contains a call to 'setWindowWidth'. Without a list of dependencies, this can lead to an infinite chain of updates. To fix this, pass [] as a second argument to the useEffect Hook.  react-hooks/exhaustive-deps
8:21:20 AM: 58:5  Warning: React Hook useEffect contains a call to 'setIsVisible'. Without a list of dependencies, this can lead to an infinite chain of updates. To fix this, pass [windowWidth] as a second argument to the useEffect Hook.  react-hooks/exhaustive-deps
8:21:20 AM: 71:25  Warning: Do not use `<img>` element. Use `<Image />` from `next/image` instead. See: https://nextjs.org/docs/messages/no-img-element  @next/next/no-img-element
8:21:20 AM: ./pages/navbar.js
8:21:20 AM: 48:5  Warning: React Hook useEffect contains a call to 'setWindowWidth'. Without a list of dependencies, this can lead to an infinite chain of updates. To fix this, pass [] as a second argument to the useEffect Hook.  react-hooks/exhaustive-deps
8:21:20 AM: 61:5  Warning: React Hook useEffect contains a call to 'setIsVisible'. Without a list of dependencies, this can lead to an infinite chain of updates. To fix this, pass [windowWidth] as a second argument to the useEffect Hook.  react-hooks/exhaustive-deps
8:21:20 AM: 80:13  Warning: Synchronous scripts should not be used. See: https://nextjs.org/docs/messages/no-sync-scripts  @next/next/no-sync-scripts
8:21:20 AM: 83:21  Warning: Do not use an `<a>` element to navigate to `/`. Use `<Link />` from `next/link` instead. See: https://nextjs.org/docs/messages/no-html-link-for-pages  @next/next/no-html-link-for-pages
8:21:20 AM: 84:25  Warning: Do not use `<img>` element. Use `<Image />` from `next/image` instead. See: https://nextjs.org/docs/messages/no-img-element  @next/next/no-img-element
8:21:20 AM: ./pages/projects.js
8:21:20 AM: 35:8  Warning: React Hook useEffect has a missing dependency: 'props.locale'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
8:21:20 AM: info  - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
8:21:20 AM: info  - Creating an optimized production build...
8:21:23 AM: info  - Compiled successfully
8:21:23 AM: info  - Collecting page data...
8:21:25 AM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
8:21:25 AM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
8:21:25 AM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
8:21:25 AM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
8:21:25 AM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
8:21:25 AM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
8:21:25 AM: info  - Generating static pages (0/20)
8:21:26 AM: info  - Generating static pages (5/20)
8:21:27 AM: info  - Generating static pages (10/20)
8:21:27 AM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
8:21:27 AM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
8:21:27 AM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
8:21:27 AM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
8:21:27 AM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
8:21:27 AM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
8:21:27 AM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
8:21:27 AM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
8:21:27 AM: info  - Generating static pages (15/20)
8:21:27 AM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
8:21:27 AM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
8:21:27 AM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
8:21:27 AM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
8:21:27 AM: info  - Generating static pages (20/20)
8:21:27 AM: info  - Finalizing page optimization...
8:21:27 AM: Page                                       Size     First Load JS
8:21:27 AM: β”Œ ● /                                      3.16 kB         104 kB
8:21:27 AM: β”œ   β”” css/8d11b05d73f8ff07.css             1.81 kB
8:21:27 AM: β”œ   /_app                                  0 B            98.6 kB
8:21:27 AM: β”œ β—‹ /404                                   194 B          98.8 kB
8:21:27 AM: β”œ ● /about                                 2.17 kB         133 kB
8:21:27 AM: β”œ   β”” css/9bcc0b30f5581407.css             1.65 kB
8:21:27 AM: β”œ ● /career                                2.18 kB         133 kB
8:21:27 AM: β”œ   β”” css/303137dcac857dce.css             1.65 kB
8:21:27 AM: β”œ ● /contact                               11 kB           112 kB
8:21:27 AM: β”œ   β”” css/d5ec719747b57d3b.css             2.41 kB
8:21:27 AM: β”œ ● /footer                                991 B           102 kB
8:21:27 AM: β”œ   β”” css/722d1fa284bf1eeb.css             529 B
8:21:27 AM: β”œ ● /navbar                                2.04 kB         103 kB
8:21:27 AM: β”œ   β”” css/b491afdc8e07b89c.css             1.04 kB
8:21:27 AM: β”” ● /projects                              2.18 kB         133 kB
8:21:27 AM:     β”” css/77375b590fae8adb.css             1.66 kB
8:21:27 AM: + First Load JS shared by all              98.6 kB
8:21:27 AM:   β”œ chunks/framework-4556c45dd113b893.js   45.2 kB
8:21:27 AM:   β”œ chunks/main-954ad260bd289753.js        31.3 kB
8:21:27 AM:   β”œ chunks/pages/_app-62f0019fb6805018.js  20.1 kB
8:21:27 AM:   β”œ chunks/webpack-438f1a2238bf9a70.js     1.87 kB
8:21:27 AM:   β”” css/645c3622376074db.css               432 B
8:21:27 AM: β—‹  (Static)  automatically rendered as static HTML (uses no initial props)
8:21:27 AM: ●  (SSG)     automatically generated as static HTML + JSON (uses getStaticProps)
8:21:27 AM: info  - using build directory: /opt/build/repo/.next
8:21:27 AM: info  - Copying "static build" directory
8:21:27 AM: info  - No "exportPathMap" found in "/opt/build/repo/next.config.js". Generating map from "./pages"
8:21:27 AM: Error: i18n support is not compatible with next export. See here for more info on deploying: https://nextjs.org/docs/deployment
8:21:27 AM:     at /opt/build/repo/node_modules/next/dist/export/index.js:144:19
8:21:27 AM:     at async Span.traceAsyncFn (/opt/build/repo/node_modules/next/dist/trace/trace.js:79:20)
8:21:28 AM: ​
8:21:28 AM:   "build.command" failed                                        
8:21:28 AM: ────────────────────────────────────────────────────────────────
8:21:28 AM: ​
8:21:28 AM:   Error message
8:21:28 AM:   Command failed with exit code 1: npm run build && npm run export (https://ntl.fyi/exit-code-1)
8:21:28 AM: ​
8:21:28 AM:   Error location
8:21:28 AM:   In build.command from netlify.toml:
8:21:28 AM:   npm run build && npm run export
8:21:28 AM: ​
8:21:28 AM:   Resolved config
8:21:28 AM:   build:
8:21:28 AM:     command: npm run build && npm run export
8:21:28 AM:     commandOrigin: config
8:21:28 AM:     environment:
8:21:28 AM:       - CI
8:21:28 AM:       - NETLIFY_NEXT_PLUGIN_SKIP
8:21:28 AM:     publish: /opt/build/repo/out
8:21:28 AM:     publishOrigin: config
8:21:28 AM:   functions:
8:21:28 AM:     '*':
8:21:28 AM:       node_bundler: esbuild
8:21:28 AM:   functionsDirectory: /opt/build/repo/functions
8:21:28 AM:   plugins:
8:21:28 AM:     - inputs: {}
8:21:28 AM:       origin: ui
8:21:28 AM:       package: '@netlify/plugin-nextjs'
8:21:28 AM:     - inputs: {}
8:21:28 AM:       origin: config
8:21:28 AM:       package: netlify-plugin-cypress
8:21:28 AM: Caching artifacts
8:21:28 AM: Started saving node modules
8:21:28 AM: Finished saving node modules
8:21:28 AM: Started saving build plugins
8:21:28 AM: Finished saving build plugins
8:21:28 AM: Started saving corepack cache
8:21:28 AM: Finished saving corepack cache
8:21:28 AM: Started saving yarn cache
8:21:33 AM: Finished saving yarn cache
8:21:33 AM: Started saving pip cache
8:21:33 AM: Finished saving pip cache
8:21:33 AM: Started saving emacs cask dependencies
8:21:33 AM: Finished saving emacs cask dependencies
8:21:33 AM: Started saving maven dependencies
8:21:33 AM: Finished saving maven dependencies
8:21:33 AM: Started saving boot dependencies
8:21:33 AM: Finished saving boot dependencies
8:21:33 AM: Started saving rust rustup cache
8:21:33 AM: Finished saving rust rustup cache
8:21:33 AM: Started saving go dependencies
8:21:33 AM: Finished saving go dependencies
8:21:34 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
8:21:34 AM: Failing build: Failed to build site
8:21:34 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
8:21:34 AM: Finished processing build request in 1m11.486s

Look at this line

It is saying that is you wish to i18n support, you cannot use next export. This means you will need to use the Next.js Runtime and only use next build. This also means you will need to change the publish directory from out to .next as per documentation linked earlier.

I edited .toml as you suggested, log:

8:57:29 AM: build-image version: 596993885fcc8df0dd6d507c57c5c9cb7c3a8576 (focal)
8:57:29 AM: buildbot version: 163fe70070e26a02d64141bf435d02320d25b8c1
8:57:29 AM: Fetching cached dependencies
8:57:29 AM: Starting to download cache of 1.1GB
8:57:37 AM: Finished downloading cache in 8.144s
8:57:37 AM: Starting to extract cache
8:57:46 AM: Finished extracting cache in 8.326s
8:57:46 AM: Finished fetching cache in 16.598s
8:57:46 AM: Starting to prepare the repo for build
8:57:46 AM: Preparing Git Reference refs/heads/main
8:57:46 AM: Parsing package.json dependencies
8:57:47 AM: Different functions path detected, going to use the one specified in the Netlify configuration file: 'functions' versus 'functions/' in the Netlify UI
8:57:47 AM: Different build command detected, going to use the one specified in the Netlify configuration file: 'next build' versus 'npm run build && npm export' in the Netlify UI
8:57:48 AM: Starting to install dependencies
8:57:48 AM: Python version set to 3.8
8:57:48 AM: Attempting Ruby version 2.7.2, read from environment
8:57:49 AM: Using Ruby version 2.7.2
8:57:49 AM: Started restoring cached go cache
8:57:49 AM: Finished restoring cached go cache
8:57:49 AM: Installing Go version 1.19.5 (requested 1.19.5)
8:57:55 AM: go version go1.19.5 linux/amd64
8:57:55 AM: Using PHP version 8.0
8:57:56 AM: Started restoring cached Node.js version
8:57:56 AM: Finished restoring cached Node.js version
8:57:57 AM: v16.20.0 is already installed.
8:57:57 AM: Now using node v16.20.0 (npm v8.19.4)
8:57:57 AM: Enabling Node.js Corepack
8:57:57 AM: Started restoring cached build plugins
8:57:57 AM: Finished restoring cached build plugins
8:57:57 AM: Started restoring cached corepack dependencies
8:57:57 AM: Finished restoring cached corepack dependencies
8:57:57 AM: Started restoring cached yarn cache
8:58:02 AM: Finished restoring cached yarn cache
8:58:03 AM: No yarn workspaces detected
8:58:03 AM: Started restoring cached node modules
8:58:03 AM: Finished restoring cached node modules
8:58:03 AM: Installing npm packages using Yarn version 1.22.19
8:58:03 AM: yarn install v1.22.19
8:58:03 AM: warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
8:58:03 AM: [1/4] Resolving packages...
8:58:04 AM: success Already up-to-date.
8:58:04 AM: Done in 0.47s.
8:58:04 AM: npm packages installed using Yarn
8:58:04 AM: Install dependencies script success
8:58:04 AM: Starting build script
8:58:05 AM: Detected 1 framework(s)
8:58:05 AM: "next" at version "12.2.4"
8:58:05 AM: Section completed: initializing
8:58:07 AM: ​
8:58:07 AM:   Netlify Build                                                 
8:58:07 AM: ────────────────────────────────────────────────────────────────
8:58:07 AM: ​
8:58:07 AM: ❯ Version
8:58:07 AM:   @netlify/build 29.9.0
8:58:07 AM: ​
8:58:07 AM: ❯ Flags
8:58:07 AM:   baseRelDir: true
8:58:07 AM:   buildId: 643102450f8ba60008732551
8:58:07 AM:   deployId: 643102450f8ba60008732553
8:58:07 AM: ​
8:58:07 AM: ❯ Current directory
8:58:07 AM:   /opt/build/repo
8:58:07 AM: ​
8:58:07 AM: ❯ Config file
8:58:07 AM:   /opt/build/repo/netlify.toml
8:58:07 AM: ​
8:58:07 AM: ❯ Context
8:58:07 AM:   production
8:58:07 AM: ​
8:58:07 AM: ❯ Using Next.js Runtime - v4.33.0
8:58:07 AM: ​
8:58:07 AM: ❯ Loading plugins
8:58:07 AM:    - netlify-plugin-cypress@2.2.1 from netlify.toml and package.json
8:58:08 AM: ​
8:58:08 AM:   1. @netlify/plugin-nextjs (onPreBuild event)                  
8:58:08 AM: ────────────────────────────────────────────────────────────────
8:58:08 AM: ​
8:58:08 AM: Next.js cache restored.
8:58:08 AM: Not running Next Runtime
8:58:08 AM: ​
8:58:08 AM: (@netlify/plugin-nextjs onPreBuild completed in 57ms)
8:58:08 AM: ​
8:58:08 AM:   2. netlify-plugin-cypress (onPreBuild event)                  
8:58:08 AM: ────────────────────────────────────────────────────────────────
8:58:08 AM: ​
8:58:09 AM: [STARTED] Task without title.
8:58:11 AM: [TITLE]  Verified Cypress! /opt/build/repo/node_modules/.cache/CypressBinary/10.11.0/Cypress
8:58:11 AM: [SUCCESS]  Verified Cypress! /opt/build/repo/node_modules/.cache/CypressBinary/10.11.0/Cypress
8:58:12 AM: [3748:0408/055812.545448:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
8:58:12 AM: Displaying Cypress info...
8:58:12 AM: Detected no known browsers installed
8:58:12 AM: Proxy Settings: none detected
8:58:12 AM: Environment Variables:
8:58:12 AM: CYPRESS_CACHE_FOLDER: ./node_modules/.cache/CypressBinary
8:58:12 AM: Application Data: /opt/buildhome/.config/cypress/cy/development
8:58:12 AM: Browser Profiles: /opt/buildhome/.config/cypress/cy/development/browsers
8:58:12 AM: Binary Caches: /opt/build/repo/node_modules/.cache/CypressBinary
8:58:12 AM: Cypress Version: 10.11.0 (stable)
8:58:12 AM: System Platform: linux (Ubuntu - 20.04)
8:58:12 AM: System Memory: 66.4 GB free 52.9 GB
8:58:12 AM: ​
8:58:12 AM: (netlify-plugin-cypress onPreBuild completed in 3.8s)
8:58:12 AM: ​
8:58:12 AM:   3. build.command from netlify.toml                            
8:58:12 AM: ────────────────────────────────────────────────────────────────
8:58:12 AM: ​
8:58:12 AM: $ next build
8:58:13 AM: info  - Linting and checking validity of types...
8:58:15 AM: ./pages/about.js
8:58:15 AM: 34:8  Warning: React Hook useEffect has a missing dependency: 'props.locale'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
8:58:15 AM: ./pages/career.js
8:58:15 AM: 35:8  Warning: React Hook useEffect has a missing dependency: 'props.locale'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
8:58:15 AM: ./pages/footer.js
8:58:15 AM: 45:5  Warning: React Hook useEffect contains a call to 'setWindowWidth'. Without a list of dependencies, this can lead to an infinite chain of updates. To fix this, pass [] as a second argument to the useEffect Hook.  react-hooks/exhaustive-deps
8:58:15 AM: 58:5  Warning: React Hook useEffect contains a call to 'setIsVisible'. Without a list of dependencies, this can lead to an infinite chain of updates. To fix this, pass [windowWidth] as a second argument to the useEffect Hook.  react-hooks/exhaustive-deps
8:58:15 AM: 71:25  Warning: Do not use `<img>` element. Use `<Image />` from `next/image` instead. See: https://nextjs.org/docs/messages/no-img-element  @next/next/no-img-element
8:58:15 AM: ./pages/navbar.js
8:58:15 AM: 48:5  Warning: React Hook useEffect contains a call to 'setWindowWidth'. Without a list of dependencies, this can lead to an infinite chain of updates. To fix this, pass [] as a second argument to the useEffect Hook.  react-hooks/exhaustive-deps
8:58:15 AM: 61:5  Warning: React Hook useEffect contains a call to 'setIsVisible'. Without a list of dependencies, this can lead to an infinite chain of updates. To fix this, pass [windowWidth] as a second argument to the useEffect Hook.  react-hooks/exhaustive-deps
8:58:15 AM: 80:13  Warning: Synchronous scripts should not be used. See: https://nextjs.org/docs/messages/no-sync-scripts  @next/next/no-sync-scripts
8:58:15 AM: 83:21  Warning: Do not use an `<a>` element to navigate to `/`. Use `<Link />` from `next/link` instead. See: https://nextjs.org/docs/messages/no-html-link-for-pages  @next/next/no-html-link-for-pages
8:58:15 AM: 84:25  Warning: Do not use `<img>` element. Use `<Image />` from `next/image` instead. See: https://nextjs.org/docs/messages/no-img-element  @next/next/no-img-element
8:58:15 AM: ./pages/projects.js
8:58:15 AM: 35:8  Warning: React Hook useEffect has a missing dependency: 'props.locale'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
8:58:15 AM: info  - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
8:58:15 AM: info  - Creating an optimized production build...
8:58:19 AM: info  - Compiled successfully
8:58:19 AM: info  - Collecting page data...
8:58:20 AM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
8:58:20 AM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
8:58:20 AM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
8:58:20 AM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
8:58:20 AM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
8:58:20 AM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
8:58:20 AM: info  - Generating static pages (0/20)
8:58:22 AM: info  - Generating static pages (5/20)
8:58:22 AM: info  - Generating static pages (10/20)
8:58:22 AM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
8:58:22 AM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
8:58:22 AM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
8:58:22 AM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
8:58:22 AM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
8:58:22 AM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
8:58:22 AM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
8:58:22 AM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
8:58:22 AM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
8:58:22 AM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
8:58:22 AM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
8:58:23 AM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
8:58:23 AM: info  - Generating static pages (15/20)
8:58:23 AM: info  - Generating static pages (20/20)
8:58:23 AM: info  - Finalizing page optimization...
8:58:23 AM: Page                                       Size     First Load JS
8:58:23 AM: β”Œ ● /                                      3.16 kB         104 kB
8:58:23 AM: β”œ   β”” css/8d11b05d73f8ff07.css             1.81 kB
8:58:23 AM: β”œ   /_app                                  0 B            98.6 kB
8:58:23 AM: β”œ β—‹ /404                                   194 B          98.8 kB
8:58:23 AM: β”œ ● /about                                 2.17 kB         133 kB
8:58:23 AM: β”œ   β”” css/9bcc0b30f5581407.css             1.65 kB
8:58:23 AM: β”œ ● /career                                2.18 kB         133 kB
8:58:23 AM: β”œ   β”” css/303137dcac857dce.css             1.65 kB
8:58:23 AM: β”œ ● /contact                               11 kB           112 kB
8:58:23 AM: β”œ   β”” css/d5ec719747b57d3b.css             2.41 kB
8:58:23 AM: β”œ ● /footer                                991 B           102 kB
8:58:23 AM: β”œ   β”” css/722d1fa284bf1eeb.css             529 B
8:58:23 AM: β”œ ● /navbar                                2.04 kB         103 kB
8:58:23 AM: β”œ   β”” css/b491afdc8e07b89c.css             1.04 kB
8:58:23 AM: β”” ● /projects                              2.18 kB         133 kB
8:58:23 AM:     β”” css/77375b590fae8adb.css             1.66 kB
8:58:23 AM: + First Load JS shared by all              98.6 kB
8:58:23 AM:   β”œ chunks/framework-4556c45dd113b893.js   45.2 kB
8:58:23 AM:   β”œ chunks/main-954ad260bd289753.js        31.3 kB
8:58:23 AM:   β”œ chunks/pages/_app-62f0019fb6805018.js  20.1 kB
8:58:23 AM:   β”œ chunks/webpack-438f1a2238bf9a70.js     1.87 kB
8:58:23 AM:   β”” css/645c3622376074db.css               432 B
8:58:23 AM: β—‹  (Static)  automatically rendered as static HTML (uses no initial props)
8:58:23 AM: ●  (SSG)     automatically generated as static HTML + JSON (uses getStaticProps)
8:58:23 AM: ​
8:58:23 AM: (build.command completed in 10.5s)
8:58:23 AM: ​
8:58:24 AM: Starting post processing
8:58:23 AM:   4. @netlify/plugin-nextjs (onBuild event)                     
8:58:23 AM: ────────────────────────────────────────────────────────────────
8:58:23 AM: ​
8:58:23 AM: ​
8:58:24 AM: Post processing - HTML
8:58:23 AM: (@netlify/plugin-nextjs onBuild completed in 3ms)
8:58:23 AM: ​
8:58:23 AM:   5. Functions bundling                                         
8:58:23 AM: ────────────────────────────────────────────────────────────────
8:58:23 AM: ​
8:58:23 AM: Packaging Functions from functions directory:
8:58:23 AM:  - submission-created.js
8:58:23 AM: ​
8:58:23 AM: ​
8:58:23 AM: (Functions bundling completed in 308ms)
8:58:23 AM: ​
8:58:23 AM:   6. @netlify/plugin-nextjs (onPostBuild event)                 
8:58:23 AM: ────────────────────────────────────────────────────────────────
8:58:23 AM: ​
8:58:23 AM: Next.js cache saved.
8:58:23 AM: ​
8:58:25 AM: Processing form - contact-form
8:58:23 AM: (@netlify/plugin-nextjs onPostBuild completed in 67ms)
8:58:23 AM: ​
8:58:25 AM: Detected form fields:
 - formId
 - name
 - email
 - message
8:58:23 AM:   7. netlify-plugin-cypress (onPostBuild event)                 
8:58:23 AM: ────────────────────────────────────────────────────────────────
8:58:23 AM: ​
8:58:23 AM: ​
8:58:23 AM: (netlify-plugin-cypress onPostBuild completed in 4ms)
8:58:25 AM: Post processing - header rules
8:58:23 AM: ​
8:58:23 AM:   8. Deploy site                                                
8:58:23 AM: ────────────────────────────────────────────────────────────────
8:58:25 AM: Post processing - redirect rules
8:58:23 AM: ​
8:58:23 AM: Starting to deploy site from '.next'
8:58:25 AM: Post processing done
8:58:23 AM: Calculating files to upload
8:58:23 AM: 39 new files to upload
8:58:23 AM: 1 new functions to upload
8:58:26 AM: Section completed: postprocessing
8:58:24 AM: Section completed: deploying
8:58:26 AM: Site is live ✨
8:58:28 AM: Finished waiting for live deploy in 4.055s
8:58:28 AM: Site deploy was successfully initiated
8:58:28 AM: ​
8:58:28 AM: (Deploy site completed in 4.7s)
8:58:28 AM: ​
8:58:28 AM:   9. netlify-plugin-cypress (onSuccess event)                   
8:58:28 AM: ────────────────────────────────────────────────────────────────
8:58:28 AM: ​
8:58:28 AM: testing deployed url https://main--roaring-madeleine-cbaf87.netlify.app
8:58:29 AM: [4767:0408/055829.653820:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
8:58:31 AM: Couldn't find tsconfig.json. tsconfig-paths will be skipped
8:58:31 AM: tput: No value for $TERM and no -T specified
8:58:31 AM: ====================================================================================================
8:58:31 AM:   (Run Starting)
8:58:31 AM:   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
8:58:31 AM:   β”‚ Cypress:        10.11.0                                                                        β”‚
8:58:31 AM:   β”‚ Browser:        Custom Chromium 107 (headless)                                                 β”‚
8:58:31 AM:   β”‚ Node Version:   v16.20.0 (/opt/buildhome/.nvm/versions/node/v16.20.0/bin/node)                 β”‚
8:58:31 AM:   β”‚ Specs:          1 found (basic.cy.js)                                                          β”‚
8:58:31 AM:   β”‚ Searched:       cypress/e2e/**/*.cy.{js,jsx,ts,tsx}                                            β”‚
8:58:31 AM:   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
8:58:31 AM: ────────────────────────────────────────────────────────────────────────────────────────────────────
8:58:31 AM:   Running:  basic.cy.js                                                                     (1 of 1)
8:58:33 AM: 
8:58:33 AM:   sample render test
8:58:33 AM:     1) "before each" hook for "displays the title text"
8:58:33 AM:   0 passing (394ms)
8:58:33 AM:   1 failing
8:58:33 AM:   1) sample render test
8:58:33 AM:        "before each" hook for "displays the title text":
8:58:33 AM:      CypressError: `cy.visit()` failed trying to load:
8:58:33 AM: https://main--roaring-madeleine-cbaf87.netlify.app/
8:58:33 AM: The response we received from your web server was:
8:58:33 AM:   > 404: Not Found
8:58:33 AM: This was considered a failure because the status code was not `2xx`.
8:58:33 AM: If you do not want status codes to cause failures pass the option: `failOnStatusCode: false`
8:58:33 AM: Because this error occurred during a `before each` hook we are skipping the remaining tests in the current suite: `sample render test`
8:58:33 AM:       at <unknown> (https://main--roaring-madeleine-cbaf87.netlify.app/__cypress/runner/cypress_runner.js:142324:84)
8:58:33 AM:       at visitFailedByErr (https://main--roaring-madeleine-cbaf87.netlify.app/__cypress/runner/cypress_runner.js:141629:12)
8:58:33 AM:       at <unknown> (https://main--roaring-madeleine-cbaf87.netlify.app/__cypress/runner/cypress_runner.js:142304:13)
8:58:33 AM:       at tryCatcher (https://main--roaring-madeleine-cbaf87.netlify.app/__cypress/runner/cypress_runner.js:11318:23)
8:58:33 AM:       at Promise._settlePromiseFromHandler (https://main--roaring-madeleine-cbaf87.netlify.app/__cypress/runner/cypress_runner.js:9253:31)
8:58:33 AM:       at Promise._settlePromise (https://main--roaring-madeleine-cbaf87.netlify.app/__cypress/runner/cypress_runner.js:9310:18)
8:58:33 AM:       at Promise._settlePromise0 (https://main--roaring-madeleine-cbaf87.netlify.app/__cypress/runner/cypress_runner.js:9355:10)
8:58:33 AM:       at Promise._settlePromises (https://main--roaring-madeleine-cbaf87.netlify.app/__cypress/runner/cypress_runner.js:9431:18)
8:58:33 AM:       at _drainQueueStep (https://main--roaring-madeleine-cbaf87.netlify.app/__cypress/runner/cypress_runner.js:6025:12)
8:58:33 AM:       at _drainQueue (https://main--roaring-madeleine-cbaf87.netlify.app/__cypress/runner/cypress_runner.js:6018:9)
8:58:33 AM:       at ../../node_modules/bluebird/js/release/async.js.Async._drainQueues (https://main--roaring-madeleine-cbaf87.netlify.app/__cypress/runner/cypress_runner.js:6034:5)
8:58:33 AM:       at Async.drainQueues (https://main--roaring-madeleine-cbaf87.netlify.app/__cypress/runner/cypress_runner.js:5904:14)
8:58:33 AM:   From Your Spec Code:
8:58:33 AM:       at Context.eval (webpack:///./cypress/e2e/basic.cy.js:3:7)
8:58:33 AM: 
8:58:34 AM:   (Results)
8:58:34 AM:   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
8:58:34 AM:   β”‚ Tests:        1                                                                                β”‚
8:58:34 AM:   β”‚ Passing:      0                                                                                β”‚
8:58:34 AM:   β”‚ Failing:      1                                                                                β”‚
8:58:34 AM:   β”‚ Pending:      0                                                                                β”‚
8:58:34 AM:   β”‚ Skipped:      0                                                                                β”‚
8:58:34 AM:   β”‚ Screenshots:  1                                                                                β”‚
8:58:34 AM:   β”‚ Video:        true                                                                             β”‚
8:58:34 AM:   β”‚ Duration:     0 seconds                                                                        β”‚
8:58:34 AM:   β”‚ Spec Ran:     basic.cy.js                                                                      β”‚
8:58:34 AM:   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
8:58:34 AM:   (Screenshots)
8:58:34 AM:   -  /opt/build/repo/cypress/screenshots/basic.cy.js/sample render test -- displays t     (1280x720)
8:58:34 AM:      he title text -- before each hook (failed).png
8:58:34 AM:   (Video)
8:58:34 AM:   -  Started processing:  Compressing to 32 CRF
8:58:35 AM:   -  Finished processing: /opt/build/repo/cypress/videos/basic.cy.js.mp4                 (0 seconds)
8:58:35 AM: tput: No value for $TERM and no -T specified
8:58:35 AM: ====================================================================================================
8:58:35 AM:   (Run Finished)
8:58:35 AM:        Spec                                              Tests  Passing  Failing  Pending  Skipped  
8:58:35 AM:   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
8:58:35 AM:   β”‚ βœ–  basic.cy.js                              387ms        1        -        1        -        - β”‚
8:58:35 AM:   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
8:58:35 AM:     βœ–  1 of 1 failed (100%)                     387ms        1        -        1        -        -  
8:58:35 AM: ​
8:58:35 AM:   Plugin "netlify-plugin-cypress" failed                        
8:58:35 AM: ────────────────────────────────────────────────────────────────
8:58:35 AM: ​
8:58:35 AM:   Error message
8:58:35 AM:   Error: Failed Cypress tests
8:58:35 AM:   1 test(s) failed
8:58:35 AM: ​
8:58:35 AM:   Plugin details
8:58:35 AM:   Package:        netlify-plugin-cypress
8:58:35 AM:   Version:        2.2.1
8:58:35 AM:   Repository:     git+https://github.com/cypress-io/netlify-plugin-cypress.git
8:58:35 AM:   npm link:       https://www.npmjs.com/package/netlify-plugin-cypress
8:58:35 AM:   Report issues:  https://github.com/cypress-io/netlify-plugin-cypress/issues
8:58:35 AM: ​
8:58:35 AM:   Error location
8:58:35 AM:   In "onSuccess" event in "netlify-plugin-cypress" from netlify.toml and package.json
8:58:35 AM: ​
8:58:35 AM:   Resolved config
8:58:35 AM:   build:
8:58:35 AM:     command: next build
8:58:35 AM:     commandOrigin: config
8:58:35 AM:     environment:
8:58:35 AM:       - CI
8:58:35 AM:       - NETLIFY_NEXT_PLUGIN_SKIP
8:58:35 AM:     publish: /opt/build/repo/.next
8:58:35 AM:     publishOrigin: config
8:58:35 AM:   functions:
8:58:35 AM:     '*':
8:58:35 AM:       node_bundler: esbuild
8:58:35 AM:   functionsDirectory: /opt/build/repo/functions
8:58:35 AM:   plugins:
8:58:35 AM:     - inputs: {}
8:58:35 AM:       origin: ui
8:58:35 AM:       package: '@netlify/plugin-nextjs'
8:58:35 AM:     - inputs: {}
8:58:35 AM:       origin: config
8:58:35 AM:       package: netlify-plugin-cypress
8:58:35 AM: ​
8:58:35 AM:   Netlify Build Complete                                        
8:58:35 AM: ────────────────────────────────────────────────────────────────
8:58:35 AM: ​
8:58:35 AM: (Netlify Build completed in 28.3s)
8:58:35 AM: Caching artifacts
8:58:35 AM: Started saving node modules
8:58:35 AM: Finished saving node modules
8:58:35 AM: Started saving build plugins
8:58:35 AM: Finished saving build plugins
8:58:35 AM: Started saving corepack cache
8:58:35 AM: Finished saving corepack cache
8:58:35 AM: Started saving yarn cache
8:58:41 AM: Finished saving yarn cache
8:58:41 AM: Started saving pip cache
8:58:41 AM: Finished saving pip cache
8:58:41 AM: Started saving emacs cask dependencies
8:58:41 AM: Finished saving emacs cask dependencies
8:58:41 AM: Started saving maven dependencies
8:58:41 AM: Finished saving maven dependencies
8:58:41 AM: Started saving boot dependencies
8:58:41 AM: Finished saving boot dependencies
8:58:41 AM: Started saving rust rustup cache
8:58:41 AM: Finished saving rust rustup cache
8:58:41 AM: Started saving go dependencies
8:58:41 AM: Finished saving go dependencies
8:58:41 AM: Build script success
8:58:41 AM: Section completed: building
8:58:47 AM: Uploading Cache of size 1.1GB
8:58:54 AM: Section completed: cleanup
8:58:54 AM: Finished processing build request in 1m25.629s

but it displays 404 not found

The log does show files are uploaded.

However, reading the netlify-plugin-cypress even though the site shows as deployed, because the cypress plugin has failed the site deploy apparently fails too.

My suggestion is to try removing the netlify-plugin-cypress to see if the site deploys successfully. You can then work on tracking down why the plugin fails.

FWIW: When I run the project locally with Netlify CLI, the domain root redirects to /en (guess it would redirect to /tr if my language was set to Türkçe.)

removed netlify-plugin-cypress, still displays 404. here is the log:

9:16:06 AM: build-image version: 596993885fcc8df0dd6d507c57c5c9cb7c3a8576 (focal)
9:16:06 AM: buildbot version: 163fe70070e26a02d64141bf435d02320d25b8c1
9:16:06 AM: Fetching cached dependencies
9:16:06 AM: Starting to download cache of 1.1GB
9:16:14 AM: Finished downloading cache in 8.296s
9:16:14 AM: Starting to extract cache
9:16:22 AM: Finished extracting cache in 7.882s
9:16:22 AM: Finished fetching cache in 16.322s
9:16:22 AM: Starting to prepare the repo for build
9:16:22 AM: Preparing Git Reference refs/heads/main
9:16:23 AM: Parsing package.json dependencies
9:16:24 AM: Different functions path detected, going to use the one specified in the Netlify configuration file: 'functions' versus 'functions/' in the Netlify UI
9:16:24 AM: Different build command detected, going to use the one specified in the Netlify configuration file: 'next build' versus 'npm run build && npm export' in the Netlify UI
9:16:24 AM: Starting to install dependencies
9:16:24 AM: Python version set to 3.8
9:16:25 AM: Attempting Ruby version 2.7.2, read from environment
9:16:25 AM: Using Ruby version 2.7.2
9:16:26 AM: Started restoring cached go cache
9:16:26 AM: Finished restoring cached go cache
9:16:26 AM: Installing Go version 1.19.5 (requested 1.19.5)
9:16:32 AM: go version go1.19.5 linux/amd64
9:16:32 AM: Using PHP version 8.0
9:16:33 AM: Started restoring cached Node.js version
9:16:34 AM: Finished restoring cached Node.js version
9:16:34 AM: v16.20.0 is already installed.
9:16:34 AM: Now using node v16.20.0 (npm v8.19.4)
9:16:34 AM: Enabling Node.js Corepack
9:16:34 AM: Started restoring cached build plugins
9:16:34 AM: Finished restoring cached build plugins
9:16:34 AM: Started restoring cached corepack dependencies
9:16:34 AM: Finished restoring cached corepack dependencies
9:16:34 AM: Started restoring cached yarn cache
9:16:40 AM: Finished restoring cached yarn cache
9:16:41 AM: No yarn workspaces detected
9:16:41 AM: Started restoring cached node modules
9:16:41 AM: Finished restoring cached node modules
9:16:41 AM: Installing npm packages using Yarn version 1.22.19
9:16:41 AM: yarn install v1.22.19
9:16:41 AM: warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
9:16:41 AM: [1/4] Resolving packages...
9:16:42 AM: success Already up-to-date.
9:16:42 AM: Done in 0.42s.
9:16:42 AM: npm packages installed using Yarn
9:16:42 AM: Install dependencies script success
9:16:42 AM: Starting build script
9:16:43 AM: Detected 1 framework(s)
9:16:43 AM: "next" at version "12.2.4"
9:16:43 AM: Section completed: initializing
9:16:44 AM: ​
9:16:44 AM:   Netlify Build                                                 
9:16:44 AM: ────────────────────────────────────────────────────────────────
9:16:44 AM: ​
9:16:44 AM: ❯ Version
9:16:44 AM:   @netlify/build 29.9.0
9:16:44 AM: ​
9:16:44 AM: ❯ Flags
9:16:44 AM:   baseRelDir: true
9:16:44 AM:   buildId: 643106a0a7bfd40008105e1f
9:16:44 AM:   deployId: 643106a0a7bfd40008105e21
9:16:44 AM: ​
9:16:44 AM: ❯ Current directory
9:16:44 AM:   /opt/build/repo
9:16:44 AM: ​
9:16:44 AM: ❯ Config file
9:16:44 AM:   /opt/build/repo/netlify.toml
9:16:44 AM: ​
9:16:44 AM: ❯ Context
9:16:44 AM:   production
9:16:44 AM: ​
9:16:44 AM: ❯ Using Next.js Runtime - v4.33.0
9:16:45 AM: ​
9:16:45 AM:   1. @netlify/plugin-nextjs (onPreBuild event)                  
9:16:45 AM: ────────────────────────────────────────────────────────────────
9:16:45 AM: ​
9:16:45 AM: Next.js cache restored.
9:16:45 AM: Not running Next Runtime
9:16:45 AM: ​
9:16:45 AM: (@netlify/plugin-nextjs onPreBuild completed in 58ms)
9:16:45 AM: ​
9:16:45 AM:   2. build.command from netlify.toml                            
9:16:45 AM: ────────────────────────────────────────────────────────────────
9:16:45 AM: ​
9:16:45 AM: $ next build
9:16:46 AM: info  - Linting and checking validity of types...
9:16:48 AM: ./pages/about.js
9:16:48 AM: 34:8  Warning: React Hook useEffect has a missing dependency: 'props.locale'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
9:16:48 AM: ./pages/career.js
9:16:48 AM: 35:8  Warning: React Hook useEffect has a missing dependency: 'props.locale'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
9:16:48 AM: ./pages/footer.js
9:16:48 AM: 45:5  Warning: React Hook useEffect contains a call to 'setWindowWidth'. Without a list of dependencies, this can lead to an infinite chain of updates. To fix this, pass [] as a second argument to the useEffect Hook.  react-hooks/exhaustive-deps
9:16:48 AM: 58:5  Warning: React Hook useEffect contains a call to 'setIsVisible'. Without a list of dependencies, this can lead to an infinite chain of updates. To fix this, pass [windowWidth] as a second argument to the useEffect Hook.  react-hooks/exhaustive-deps
9:16:48 AM: 71:25  Warning: Do not use `<img>` element. Use `<Image />` from `next/image` instead. See: https://nextjs.org/docs/messages/no-img-element  @next/next/no-img-element
9:16:48 AM: ./pages/navbar.js
9:16:48 AM: 48:5  Warning: React Hook useEffect contains a call to 'setWindowWidth'. Without a list of dependencies, this can lead to an infinite chain of updates. To fix this, pass [] as a second argument to the useEffect Hook.  react-hooks/exhaustive-deps
9:16:48 AM: 61:5  Warning: React Hook useEffect contains a call to 'setIsVisible'. Without a list of dependencies, this can lead to an infinite chain of updates. To fix this, pass [windowWidth] as a second argument to the useEffect Hook.  react-hooks/exhaustive-deps
9:16:48 AM: 80:13  Warning: Synchronous scripts should not be used. See: https://nextjs.org/docs/messages/no-sync-scripts  @next/next/no-sync-scripts
9:16:48 AM: 83:21  Warning: Do not use an `<a>` element to navigate to `/`. Use `<Link />` from `next/link` instead. See: https://nextjs.org/docs/messages/no-html-link-for-pages  @next/next/no-html-link-for-pages
9:16:48 AM: 84:25  Warning: Do not use `<img>` element. Use `<Image />` from `next/image` instead. See: https://nextjs.org/docs/messages/no-img-element  @next/next/no-img-element
9:16:48 AM: ./pages/projects.js
9:16:48 AM: 35:8  Warning: React Hook useEffect has a missing dependency: 'props.locale'. Either include it or remove the dependency array.  react-hooks/exhaustive-deps
9:16:48 AM: info  - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
9:16:48 AM: info  - Creating an optimized production build...
9:16:51 AM: info  - Compiled successfully
9:16:51 AM: info  - Collecting page data...
9:16:52 AM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
9:16:52 AM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
9:16:52 AM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
9:16:52 AM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
9:16:52 AM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
9:16:52 AM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
9:16:52 AM: info  - Generating static pages (0/20)
9:16:53 AM: info  - Generating static pages (5/20)
9:16:54 AM: info  - Generating static pages (10/20)
9:16:54 AM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
9:16:54 AM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
9:16:54 AM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
9:16:54 AM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
9:16:54 AM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
9:16:54 AM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
9:16:54 AM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
9:16:54 AM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
9:16:54 AM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
9:16:54 AM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
9:16:54 AM: info  - Generating static pages (15/20)
9:16:54 AM: The default export of @sanity/client has been deprecated. Use the named export `createClient` instead
9:16:54 AM: Using the Sanity client without specifying an API version is deprecated. See https://www.sanity.io/help/js-client-api-version
9:16:54 AM: info  - Generating static pages (20/20)
9:16:54 AM: info  - Finalizing page optimization...
9:16:54 AM: Page                                       Size     First Load JS
9:16:54 AM: β”Œ ● /                                      3.16 kB         104 kB
9:16:54 AM: β”œ   β”” css/8d11b05d73f8ff07.css             1.81 kB
9:16:54 AM: β”œ   /_app                                  0 B            98.6 kB
9:16:54 AM: β”œ β—‹ /404                                   194 B          98.8 kB
9:16:54 AM: β”œ ● /about                                 2.17 kB         133 kB
9:16:54 AM: β”œ   β”” css/9bcc0b30f5581407.css             1.65 kB
9:16:54 AM: β”œ ● /career                                2.18 kB         133 kB
9:16:54 AM: β”œ   β”” css/303137dcac857dce.css             1.65 kB
9:16:54 AM: β”œ ● /contact                               11 kB           112 kB
9:16:54 AM: β”œ   β”” css/d5ec719747b57d3b.css             2.41 kB
9:16:54 AM: β”œ ● /footer                                991 B           102 kB
9:16:54 AM: β”œ   β”” css/722d1fa284bf1eeb.css             529 B
9:16:54 AM: β”œ ● /navbar                                2.04 kB         103 kB
9:16:54 AM: β”œ   β”” css/b491afdc8e07b89c.css             1.04 kB
9:16:54 AM: β”” ● /projects                              2.18 kB         133 kB
9:16:55 AM: Starting post processing
9:16:54 AM:     β”” css/77375b590fae8adb.css             1.66 kB
9:16:54 AM: + First Load JS shared by all              98.6 kB
9:16:54 AM:   β”œ chunks/framework-4556c45dd113b893.js   45.2 kB
9:16:54 AM:   β”œ chunks/main-954ad260bd289753.js        31.3 kB
9:16:54 AM:   β”œ chunks/pages/_app-62f0019fb6805018.js  20.1 kB
9:16:55 AM: Post processing - HTML
9:16:54 AM:   β”œ chunks/webpack-438f1a2238bf9a70.js     1.87 kB
9:16:54 AM:   β”” css/645c3622376074db.css               432 B
9:16:54 AM: β—‹  (Static)  automatically rendered as static HTML (uses no initial props)
9:16:54 AM: ●  (SSG)     automatically generated as static HTML + JSON (uses getStaticProps)
9:16:54 AM: ​
9:16:54 AM: (build.command completed in 8.8s)
9:16:54 AM: ​
9:16:54 AM:   3. @netlify/plugin-nextjs (onBuild event)                     
9:16:54 AM: ────────────────────────────────────────────────────────────────
9:16:54 AM: ​
9:16:54 AM: ​
9:16:54 AM: (@netlify/plugin-nextjs onBuild completed in 7ms)
9:16:54 AM: ​
9:16:54 AM:   4. Functions bundling                                         
9:16:54 AM: ────────────────────────────────────────────────────────────────
9:16:54 AM: ​
9:16:54 AM: Packaging Functions from functions directory:
9:16:56 AM: Processing form - contact-form
9:16:54 AM:  - submission-created.js
9:16:54 AM: ​
9:16:54 AM: ​
9:16:56 AM: Detected form fields:
 - formId
 - name
 - email
 - message
9:16:54 AM: (Functions bundling completed in 177ms)
9:16:54 AM: ​
9:16:54 AM:   5. @netlify/plugin-nextjs (onPostBuild event)                 
9:16:54 AM: ────────────────────────────────────────────────────────────────
9:16:56 AM: Post processing - header rules
9:16:54 AM: ​
9:16:55 AM: Next.js cache saved.
9:16:55 AM: ​
9:16:56 AM: Post processing - redirect rules
9:16:55 AM: (@netlify/plugin-nextjs onPostBuild completed in 57ms)
9:16:55 AM: ​
9:16:55 AM:   6. Deploy site                                                
9:16:57 AM: Post processing done
9:16:55 AM: ────────────────────────────────────────────────────────────────
9:16:55 AM: ​
9:16:55 AM: Starting to deploy site from '.next'
9:16:57 AM: Section completed: postprocessing
9:16:55 AM: Calculating files to upload
9:16:55 AM: 43 new files to upload
9:16:55 AM: 0 new functions to upload
9:16:55 AM: Section completed: deploying
9:16:55 AM: Site deploy was successfully initiated
9:16:55 AM: ​
9:16:55 AM: (Deploy site completed in 485ms)
9:16:55 AM: ​
9:16:55 AM:   Netlify Build Complete                                        
9:16:55 AM: ────────────────────────────────────────────────────────────────
9:16:55 AM: ​
9:16:55 AM: (Netlify Build completed in 11.2s)
9:16:55 AM: Caching artifacts
9:16:55 AM: Started saving node modules
9:16:57 AM: Site is live ✨
9:16:55 AM: Finished saving node modules
9:16:55 AM: Started saving build plugins
9:16:55 AM: Finished saving build plugins
9:16:55 AM: Started saving corepack cache
9:16:55 AM: Finished saving corepack cache
9:16:55 AM: Started saving yarn cache
9:17:02 AM: Finished saving yarn cache
9:17:02 AM: Started saving pip cache
9:17:02 AM: Finished saving pip cache
9:17:02 AM: Started saving emacs cask dependencies
9:17:02 AM: Finished saving emacs cask dependencies
9:17:02 AM: Started saving maven dependencies
9:17:02 AM: Finished saving maven dependencies
9:17:02 AM: Started saving boot dependencies
9:17:02 AM: Finished saving boot dependencies
9:17:02 AM: Started saving rust rustup cache
9:17:02 AM: Finished saving rust rustup cache
9:17:02 AM: Started saving go dependencies
9:17:02 AM: Finished saving go dependencies
9:17:03 AM: Build script success
9:17:03 AM: Section completed: building
9:17:08 AM: Uploading Cache of size 1.1GB
9:17:16 AM: Section completed: cleanup
9:17:16 AM: Finished processing build request in 1m9.818s

What is the URL for the deploy?

app: https://643106a0a7bfd40008105e21--roaring-madeleine-cbaf87.netlify.app/
deploy url: Netlify App

For some reason, the Next.js Runtime is not doing anything, so none of the required configuration works. Try creating another site to see if it helps.

1 Like

It worked, thank you!!!

Yay! Thanks for confirming you found a solution. (: