Build on Staging Environment Failing But Production is Fine
mediqihealth
PROOP

3 months ago

I have a Next.js project in two environments (production and staging). The prod build goes through no issues, but staging build fails every time with errors i've not been able to make sense of. The local build on my machine works fine, but it gets to rail way it fails. Can any one help me make sense of these errors

npm run build npm warn config production Use --omit=dev instead. > mediqi-webapp@0.1.0 build > next build warning emoji You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env ▲ Next.js 16.0.10 (Turbopack) - Environments: .env Creating an optimized production build ... ✓ Compiled successfully in 5.9s Running TypeScript ... Collecting page data using 47 workers ... Generating static pages using 47 workers (0/22) ... Each child in a list should have a unique "key" prop. Check the top-level render call using <__next_viewport_boundary__>. See https://react.dev/link/warning-keys for more information. Each child in a list should have a unique "key" prop. Check the top-level render call using <U>. See https://react.dev/link/warning-keys for more information. Each child in a list should have a unique "key" prop. Check the top-level render call using <meta>. See https://react.dev/link/warning-keys for more information. Each child in a list should have a unique "key" prop. Check the top-level render call using <head>. See https://react.dev/link/warning-keys for more information. Each child in a list should have a unique "key" prop. Check the top-level render call using <meta>. See https://react.dev/link/warning-keys for more information. Each child in a list should have a unique "key" prop. Check the top-level render call using <html>. See https://react.dev/link/warning-keys for more information. Each child in a list should have a unique "key" prop. Check the top-level render call using <meta>. See https://react.dev/link/warning-keys for more information. Each child in a list should have a unique "key" prop. Check the top-level render call using <head>. See https://react.dev/link/warning-keys for more information. Each child in a list should have a unique "key" prop. Check the top-level render call using <__next_viewport_boundary__>. See https://react.dev/link/warning-keys for more information. Each child in a list should have a unique "key" prop. Check the top-level render call using <html>. See https://react.dev/link/warning-keys for more information. Each child in a list should have a unique "key" prop. Check the top-level render call using <meta>. See https://react.dev/link/warning-keys for more information. Each child in a list should have a unique "key" prop. Check the top-level render call using <head>. See https://react.dev/link/warning-keys for more information. Each child in a list should have a unique "key" prop. Check the top-level render call using <__next_viewport_boundary__>. See https://react.dev/link/warning-keys for more information. Each child in a list should have a unique "key" prop. Check the top-level render call using <html>. See https://react.dev/link/warning-keys for more information. Each child in a list should have a unique "key" prop. Check the top-level render call using <meta>. See https://react.dev/link/warning-keys for more information. Each child in a list should have a unique "key" prop. Check the top-level render call using <head>. See https://react.dev/link/warning-keys for more information. Each child in a list should have a unique "key" prop. Check the top-level render call using <__next_viewport_boundary__>. See https://react.dev/link/warning-keys for more information. Each child in a list should have a unique "key" prop. Check the top-level render call using <html>. See https://react.dev/link/warning-keys for more information. Each child in a list should have a unique "key" prop. Check the top-level render call using <meta>. See https://react.dev/link/warning-keys for more information. Each child in a list should have a unique "key" prop. Check the top-level render call using <head>. See https://react.dev/link/warning-keys for more information. Each child in a list should have a unique "key" prop. Check the top-level render call using <__next_viewport_boundary__>. See https://react.dev/link/warning-keys for more information. Each child in a list should have a unique "key" prop. Check the top-level render call using <html>. See https://react.dev/link/warning-keys for more information. Each child in a list should have a unique "key" prop. Check the top-level render call using <meta>. See https://react.dev/link/warning-keys for more information. Each child in a list should have a unique "key" prop. Check the top-level render call using <head>. See https://react.dev/link/warning-keys for more information. Each child in a list should have a unique

$20 Bounty

2 Replies

mediqihealth
PROOP

3 months ago

Nevermind, I found a fix


aditya41150
FREE

3 months ago

bruh


Loading...