@vercel/next 4.10.6 → 4.10.7

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.
Files changed (2) hide show
  1. package/dist/index.js +3 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -13000,19 +13000,17 @@ async function getNodeMiddleware({
13000
13000
  )
13001
13001
  )).filter((entry) => !!entry)
13002
13002
  );
13003
+ const absoluteOutputDirectory = import_path2.default.posix.join(entryPath, outputDirectory);
13003
13004
  const launcherData = (await import_fs_extra3.default.readFile(import_path2.default.join(__dirname, "middleware-launcher.js"), "utf8")).replace(
13004
13005
  /(?:var|const) conf = __NEXT_CONFIG__/,
13005
13006
  `const conf = ${JSON.stringify({
13006
13007
  ...requiredServerFilesManifest.config,
13007
- distDir: import_path2.default.relative(
13008
- projectDir,
13009
- import_path2.default.join(entryPath, outputDirectory)
13010
- )
13008
+ distDir: import_path2.default.relative(projectDir, absoluteOutputDirectory)
13011
13009
  })}`
13012
13010
  ).replace(
13013
13011
  "__NEXT_MIDDLEWARE_PATH__",
13014
13012
  "./" + import_path2.default.posix.join(
13015
- import_path2.default.posix.relative(projectDir, outputDirectory),
13013
+ import_path2.default.posix.relative(projectDir, absoluteOutputDirectory),
13016
13014
  `server/middleware.js`
13017
13015
  )
13018
13016
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/next",
3
- "version": "4.10.6",
3
+ "version": "4.10.7",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",