@vercel/fs-detectors 5.8.14 → 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.
- package/dist/detect-builders.js +2 -2
- package/package.json +4 -4
package/dist/detect-builders.js
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "5.8.15",
|
|
4
4
|
"description": "Vercel filesystem detectors",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"minimatch": "3.1.2",
|
|
21
21
|
"semver": "6.3.1",
|
|
22
22
|
"@vercel/error-utils": "2.0.3",
|
|
23
|
-
"@vercel/
|
|
24
|
-
"@vercel/
|
|
23
|
+
"@vercel/frameworks": "3.19.1",
|
|
24
|
+
"@vercel/routing-utils": "6.0.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/glob": "7.2.0",
|
|
@@ -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.
|
|
35
|
+
"@vercel/build-utils": "13.6.2"
|
|
36
36
|
},
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "node ../../utils/build.mjs",
|