@vercel/next 3.8.4 → 3.8.5

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.
package/dist/index.js CHANGED
@@ -43257,14 +43257,12 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
43257
43257
  if ((0, utils_1.isDynamicRoute)(normalizedPathname)) {
43258
43258
  dynamicPages.push(normalizedPathname);
43259
43259
  }
43260
- if (pageMatchesApi(page)) {
43261
- apiPages.push(page);
43262
- }
43263
- else if ((appPathRoutesManifest?.[`${normalizedPathname}/page`] ||
43264
- appPathRoutesManifest?.[`${normalizedPathname}/route`]) &&
43265
- lambdaAppPaths[page]) {
43260
+ if (lambdaAppPaths[page]) {
43266
43261
  appRouterPages.push(page);
43267
43262
  }
43263
+ else if (pageMatchesApi(page)) {
43264
+ apiPages.push(page);
43265
+ }
43268
43266
  else {
43269
43267
  nonApiPages.push(page);
43270
43268
  }
@@ -183,14 +183,12 @@ async function serverBuild({ dynamicPages, pagesDir, config = {}, privateOutputs
183
183
  if ((0, utils_1.isDynamicRoute)(normalizedPathname)) {
184
184
  dynamicPages.push(normalizedPathname);
185
185
  }
186
- if (pageMatchesApi(page)) {
187
- apiPages.push(page);
188
- }
189
- else if ((appPathRoutesManifest?.[`${normalizedPathname}/page`] ||
190
- appPathRoutesManifest?.[`${normalizedPathname}/route`]) &&
191
- lambdaAppPaths[page]) {
186
+ if (lambdaAppPaths[page]) {
192
187
  appRouterPages.push(page);
193
188
  }
189
+ else if (pageMatchesApi(page)) {
190
+ apiPages.push(page);
191
+ }
194
192
  else {
195
193
  nonApiPages.push(page);
196
194
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/next",
3
- "version": "3.8.4",
3
+ "version": "3.8.5",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/next-js",
@@ -26,7 +26,7 @@
26
26
  "@types/semver": "6.0.0",
27
27
  "@types/text-table": "0.2.1",
28
28
  "@types/webpack-sources": "3.2.0",
29
- "@vercel/build-utils": "6.7.2",
29
+ "@vercel/build-utils": "6.7.3",
30
30
  "@vercel/nft": "0.22.5",
31
31
  "@vercel/routing-utils": "2.2.1",
32
32
  "async-sema": "3.0.1",