You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Configure the [OpenNext](https://opennext.js.org) version used to build the Next.js app.
402
403
*
403
404
* :::note
404
-
* This does not automatically update to the latest OpenNext version. It remains pinned to the version of SST you have.
405
+
* The default OpenNext version is auto-detected based on your Next.js version and pinned to the version of SST you have.
405
406
* :::
406
407
*
407
-
* By default, this is pinned to the version of OpenNext that was released with the SST version you are using. You can [find this in the source](https://github.com/sst/sst/blob/dev/platform/src/components/aws/nextjs.ts#L30) under `DEFAULT_OPEN_NEXT_VERSION`.
408
+
* By default, SST auto-detects the Next.js version from your `package.json` and picks a compatible OpenNext version. For Next.js 15+, it uses `3.9.14`. For Next.js 14, it uses `3.6.6` since newer versions of OpenNext dropped Next.js 14 support. If set, this overrides the auto-detection.
409
+
*
410
+
* You can [find the defaults in the source](https://github.com/sst/sst/blob/dev/platform/src/components/aws/nextjs.ts#L30) under `DEFAULT_OPEN_NEXT_VERSION`.
408
411
* OpenNext changed its package name from `open-next` to `@opennextjs/aws` in version `3.1.4`. SST will choose the correct one based on the version you provide.
409
412
*
410
-
* @defaultThe latest version of OpenNext pinned to the version of SST you are using.
413
+
* @defaultAuto-detected based on your Next.js version.
411
414
* @example
412
415
* ```js
413
416
* {
@@ -592,10 +595,26 @@ export class Nextjs extends SsrSite {
0 commit comments