@vercel/fs-detectors 5.8.13 → 5.8.15

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.
@@ -244,7 +244,7 @@ async function detectBuilders(files, pkg, options = {}) {
244
244
  builders.push(...apiBuilders);
245
245
  }
246
246
  if (frontendBuilder) {
247
- if (frontendBuilder?.use === "@vercel/express" || frontendBuilder?.use === "@vercel/hono" || frontendBuilder?.use === "@vercel/python" || frontendBuilder?.use === "@vercel/go") {
247
+ if ((0, import_is_official_runtime.isOfficialRuntime)("express", frontendBuilder?.use) || (0, import_is_official_runtime.isOfficialRuntime)("hono", frontendBuilder?.use) || (0, import_is_official_runtime.isOfficialRuntime)("python", frontendBuilder?.use) || (0, import_is_official_runtime.isOfficialRuntime)("go", frontendBuilder?.use) || (0, import_is_official_runtime.isOfficialRuntime)("backends", frontendBuilder?.use)) {
248
248
  builders.push({
249
249
  src: "public/**/*",
250
250
  use: "@vercel/static",
@@ -750,7 +750,7 @@ function getRouteResult(apiRoutes, dynamicRoutes, outputDirectory, apiBuilders,
750
750
  const hasApiBuild = apiBuilders.find((builder) => {
751
751
  return builder.src?.startsWith("api/");
752
752
  });
753
- if (typeof ignoreRuntimes === "undefined" && hasApiBuild) {
753
+ if (typeof ignoreRuntimes === "undefined" && hasApiBuild && !isNextjs) {
754
754
  rewriteRoutes.push({
755
755
  src: "^/api(/.*)?$",
756
756
  status: 404
@@ -758,7 +758,7 @@ function getRouteResult(apiRoutes, dynamicRoutes, outputDirectory, apiBuilders,
758
758
  }
759
759
  } else {
760
760
  defaultRoutes.push(...apiRoutes);
761
- if (apiRoutes.length) {
761
+ if (apiRoutes.length && !isNextjs) {
762
762
  defaultRoutes.push({
763
763
  status: 404,
764
764
  src: "^/api(/.*)?$"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/fs-detectors",
3
- "version": "5.8.13",
3
+ "version": "5.8.15",
4
4
  "description": "Vercel filesystem detectors",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -32,7 +32,7 @@
32
32
  "@types/semver": "7.3.10",
33
33
  "jest-junit": "16.0.0",
34
34
  "typescript": "4.9.5",
35
- "@vercel/build-utils": "13.6.1"
35
+ "@vercel/build-utils": "13.6.2"
36
36
  },
37
37
  "scripts": {
38
38
  "build": "node ../../utils/build.mjs",