@opennextjs/aws 3.9.11 → 3.9.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -340,11 +340,12 @@ export function getPackagePath(options) {
340
340
  * @returns the Next.js runtime used: "webpack" or "turbopack"
341
341
  */
342
342
  export function getBundlerRuntime(options) {
343
- const dotNextPath = path.join(options.appPath, ".next");
344
- if (fs.existsSync(path.join(dotNextPath, "server/webpack-runtime.js"))) {
343
+ const dotNextServerPath = path.join(options.appPath, ".next/server");
344
+ if (fs.existsSync(path.join(dotNextServerPath, "webpack-runtime.js"))) {
345
345
  return "webpack";
346
346
  }
347
- if (fs.existsSync(path.join(dotNextPath, "server/chunks/[turbopack]_runtime.js"))) {
347
+ if (fs.existsSync(path.join(dotNextServerPath, "chunks/[turbopack]_runtime.js")) ||
348
+ fs.existsSync(path.join(dotNextServerPath, "chunks/ssr/[turbopack]_runtime.js"))) {
348
349
  return "turbopack";
349
350
  }
350
351
  throw new Error("Unable to determine Next.js runtime (webpack or turbopack)");
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "access": "public"
4
4
  },
5
5
  "name": "@opennextjs/aws",
6
- "version": "3.9.11",
6
+ "version": "3.9.12",
7
7
  "bin": {
8
8
  "open-next": "./dist/index.js"
9
9
  },