chore: Upgrade to Next.js 16 (#1577)
* chore: upgrade to Next.js 16.0.4
Upgrades all Next.js apps and packages from 15.5.5 to 16.0.4
Signed-off-by: Ramtin Mesgari <26694963+iamramtin@users.noreply.github.com>
* fix: update to use async cookies() API in Next.js 16
Remove deprecated `UnsafeUnwrappedCookies` type and update `getPreferredSettings()` to await cookies(). Update all callers
to handle async function signature.
Signed-off-by: Ramtin Mesgari <26694963+iamramtin@users.noreply.github.com>
* fix: replace Image props with Next.js 16 equivalents
Signed-off-by: Ramtin Mesgari <26694963+iamramtin@users.noreply.github.com>
* fix: resolve Astro build warnings
Signed-off-by: Ramtin Mesgari <26694963+iamramtin@users.noreply.github.com>
* fix: add dynamic rendering to prevent build failures
Signed-off-by: Ramtin Mesgari <26694963+iamramtin@users.noreply.github.com>
* fix: resolve circular dependency between incident and monitor
Uses Proxy-wrapped lazy loading to defer monitor import to resolve Temporal Dead Zone errors in Next.js 16+ with Turbopack's module evaluation order.
Refs:
- https://nextjs.org/blog/next-16#turbopack-stable
- https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/let#temporal_dead_zone_tdz
Signed-off-by: Ramtin Mesgari <26694963+iamramtin@users.noreply.github.com>
* refactor: use env package to validate environment variable
Signed-off-by: Ramtin Mesgari <26694963+iamramtin@users.noreply.github.com>
* ci: apply automated fixes
* no lazyloading
* fix: remove circular dependency workarounds
Signed-off-by: Ramtin Mesgari <26694963+iamramtin@users.noreply.github.com>
* chore: migrate middleware to proxy convention
Migrate to Next.js 16 proxy convention to resolve deprecation warning
Signed-off-by: Ramtin Mesgari <26694963+iamramtin@users.noreply.github.com>
* pnpm dedupe
* fix buld
* ci: apply automated fixes
* chore: migrate middleware to proxy convention
Migrate to Next.js 16 proxy convention to resolve deprecation warning
Signed-off-by: Ramtin Mesgari <26694963+iamramtin@users.noreply.github.com>
---------
Signed-off-by: Ramtin Mesgari <26694963+iamramtin@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Thibault Le Ouay <thibaultleouay@gmail.com>
authored by