diff --git a/CHANGELOG.md b/CHANGELOG.md index ebefec2dc..c2dd6795c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Upgraded `protobufjs` to `^7.6.4`. [#1336](https://github.com/sourcebot-dev/sourcebot/pull/1336) - Upgraded `tar` to `^7.5.16`. [#1338](https://github.com/sourcebot-dev/sourcebot/pull/1338) - Upgraded `esbuild` to `^0.28.1`. [#1342](https://github.com/sourcebot-dev/sourcebot/pull/1342) +- Enabled Next.js version skew protection to fix "Failed to load chunk" errors during rolling deploys. [#1346](https://github.com/sourcebot-dev/sourcebot/pull/1346) ## [5.0.3] - 2026-06-17 diff --git a/packages/web/next.config.mjs b/packages/web/next.config.mjs index c34c126d0..48e01b40c 100644 --- a/packages/web/next.config.mjs +++ b/packages/web/next.config.mjs @@ -5,6 +5,10 @@ import { withSentryConfig } from "@sentry/nextjs"; const nextConfig = { output: "standalone", + // Version skew protection for rolling deploys. + // @see: https://nextjs.org/docs/app/guides/self-hosting#version-skew + deploymentId: process.env.NEXT_PUBLIC_BUILD_COMMIT_SHA, + // This is required when using standalone builds. // @see: https://env.t3.gg/docs/nextjs#create-your-schema transpilePackages: ["@t3-oss/env-core"],