@vercel/next 4.10.2 → 4.10.3

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 +8 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -13009,7 +13009,13 @@ async function getNodeMiddleware({
13009
13009
  import_path2.default.join(entryPath, outputDirectory)
13010
13010
  )
13011
13011
  })}`
13012
- ).replace("__NEXT_MIDDLEWARE_PATH__", `./.next/server/middleware.js`);
13012
+ ).replace(
13013
+ "__NEXT_MIDDLEWARE_PATH__",
13014
+ "./" + import_path2.default.posix.join(
13015
+ import_path2.default.posix.relative(projectDir, outputDirectory),
13016
+ `server/middleware.js`
13017
+ )
13018
+ );
13013
13019
  const lambda = new import_build_utils.NodejsLambda({
13014
13020
  ...vercelConfigOpts,
13015
13021
  runtime: nodeVersion,
@@ -15758,7 +15764,7 @@ ${JSON.stringify(
15758
15764
  if (routesManifest.i18n) {
15759
15765
  for (const locale of routesManifest.i18n?.locales || []) {
15760
15766
  const prerenderPathname = pathname.replace(
15761
- /^\/\$nextLocale/,
15767
+ /\/\$nextLocale/,
15762
15768
  `/${locale}`
15763
15769
  );
15764
15770
  if (prerenders[import_path4.default.join("./", prerenderPathname)]) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/next",
3
- "version": "4.10.2",
3
+ "version": "4.10.3",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",