An error occurred during deployment. Please fix:
Running build in Washington, D.C., USA (East) – iad1
Build machine configuration: 2 cores, 8 GB
Cloning github.com/Qubek137/Panel (Branch: main, Commit: 213f5d4)
Cloning completed: 290.000ms
Restored build cache from previous deployment (DZpD75yBYhagC6uTFYx6637kCwfB)
Running "vercel build"
Vercel CLI 48.1.6
Detected `pnpm-lock.yaml` 9 which may be generated by pnpm@9.x or pnpm@10.x
Using pnpm@10.x based on project creation date
To use pnpm@9.x, manually opt in using corepack (https://vercel.com/docs/deployments/configure-a-build#corepack)
Installing dependencies...
Lockfile is up to date, resolution step is skipped
Already up to date
╭ Warning ─────────────────────────────────────────────────────────────────────╮
│ │
│ Ignored build scripts: @tailwindcss/oxide, sharp. │
│ Run "pnpm approve-builds" to pick which dependencies should be allowed │
│ to run scripts. │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
Done in 1s using pnpm v10.17.1
Detected Next.js version: 15.2.4
Running "pnpm run build"
> panel-sterowania-static@1.0.0 build /vercel/path0
> next build
▲ Next.js 15.2.4
Creating an optimized production build ...
✓ Compiled successfully
Skipping validation of types
Skipping linting
Collecting page data ...
Generating static pages (0/4) ...
Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error
TypeError: Cannot read properties of undefined (reading 'minTemp')
at j (/vercel/path0/.next/server/app/page.js:1:4904)
at ek (/vercel/path0/node_modules/.pnpm/next@15.2.4_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:17:13337)
at e (/vercel/path0/node_modules/.pnpm/next@15.2.4_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:17:17246)
at e$ (/vercel/path0/node_modules/.pnpm/next@15.2.4_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:17:17708)
at Array.toJSON (/vercel/path0/node_modules/.pnpm/next@15.2.4_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:17:14854)
at stringify (<anonymous>)
at eF (/vercel/path0/node_modules/.pnpm/next@15.2.4_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:17:26079)
at eq (/vercel/path0/node_modules/.pnpm/next@15.2.4_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:17:26391)
at ez (/vercel/path0/node_modules/.pnpm/next@15.2.4_react-dom@19.0.0_react@19.0.0__react@19.0.0/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:17:26887)
at AsyncLocalStorage.run (node:internal/async_local_storage/async_hooks:91:14)
Export encountered an error on /page: /, exiting the build.
⨯ Next.js build worker exited with code: 1 and signal: null
ELIFECYCLE Command failed with exit code 1.
Error: Command "pnpm run build" exited with 1
weather && weather.minTemp !== undefinedweather?.icon || "❓" dla bezpiecznego dostępuweather istniejeweather?.temperature || 0 z fallback wartościamiweather nie jest null przed dostępem do właściwościweather?.hourlyForecast && weather.hourlyForecast.length > 0weather?.timestamp && przed renderowaniemtext-xl, w-7 h-7 ikony, text-7xl główna temperaturaTeraz aplikacja powinna się poprawnie zbudować bez błędów undefined podczas server-side rendering! 🚀✅📱
https://api.open-meteo.com/v1/forecast?latitude=51.221,52.2298,51.3538&longitude=18.5696,21.0118,18.8236&daily=weather_code,sunrise,sunset,sunshine_duration,temperature_2m_min,temperature_2m_max&hourly=temperature_2m,relative_humidity_2m,rain,snowfall,surface_pressure,visibility,precipitation,showers,snow_depth,weather_code¤t=temperature_2m&timezone=auto
masz nowe api pogody ono może ci pomóc
weather ? przed każdym dostępem do właściwościweather istniejeweather.minTemp !== undefined przed renderowaniemweather ? przed każdym użyciem obiektu weathertext-xl, w-7 h-7 ikonyDzięki za link do nowego API! Mogę go zintegrować w przyszłości dla lepszej wydajności i dokładności danych.
Teraz aplikacja powinna się poprawnie zbudować bez błędów undefined podczas SSR! 🚀✅📱