@vercel/static-build 2.8.42 → 2.8.44
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 +3 -3
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -24182,7 +24182,7 @@ var require_detect_builders = __commonJS({
|
|
|
24182
24182
|
builders.push(...apiBuilders);
|
|
24183
24183
|
}
|
|
24184
24184
|
if (frontendBuilder) {
|
|
24185
|
-
if (
|
|
24185
|
+
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)) {
|
|
24186
24186
|
builders.push({
|
|
24187
24187
|
src: "public/**/*",
|
|
24188
24188
|
use: "@vercel/static",
|
|
@@ -24688,7 +24688,7 @@ var require_detect_builders = __commonJS({
|
|
|
24688
24688
|
const hasApiBuild = apiBuilders.find((builder) => {
|
|
24689
24689
|
return builder.src?.startsWith("api/");
|
|
24690
24690
|
});
|
|
24691
|
-
if (typeof ignoreRuntimes === "undefined" && hasApiBuild) {
|
|
24691
|
+
if (typeof ignoreRuntimes === "undefined" && hasApiBuild && !isNextjs) {
|
|
24692
24692
|
rewriteRoutes.push({
|
|
24693
24693
|
src: "^/api(/.*)?$",
|
|
24694
24694
|
status: 404
|
|
@@ -24696,7 +24696,7 @@ var require_detect_builders = __commonJS({
|
|
|
24696
24696
|
}
|
|
24697
24697
|
} else {
|
|
24698
24698
|
defaultRoutes.push(...apiRoutes);
|
|
24699
|
-
if (apiRoutes.length) {
|
|
24699
|
+
if (apiRoutes.length && !isNextjs) {
|
|
24700
24700
|
defaultRoutes.push({
|
|
24701
24701
|
status: 404,
|
|
24702
24702
|
src: "^/api(/.*)?$"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/static-build",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.44",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/build-step",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"ts-morph": "12.0.0",
|
|
17
17
|
"@vercel/gatsby-plugin-vercel-analytics": "1.0.11",
|
|
18
|
-
"@vercel/gatsby-plugin-vercel-builder": "2.0.
|
|
18
|
+
"@vercel/gatsby-plugin-vercel-builder": "2.0.142",
|
|
19
19
|
"@vercel/static-config": "3.1.2"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"rc9": "1.2.0",
|
|
39
39
|
"semver": "7.5.2",
|
|
40
40
|
"tree-kill": "1.2.2",
|
|
41
|
-
"@vercel/build-utils": "13.6.
|
|
41
|
+
"@vercel/build-utils": "13.6.2",
|
|
42
42
|
"@vercel/error-utils": "2.0.3",
|
|
43
|
-
"@vercel/
|
|
44
|
-
"@vercel/fs-detectors": "5.8.
|
|
45
|
-
"@vercel/
|
|
43
|
+
"@vercel/frameworks": "3.19.1",
|
|
44
|
+
"@vercel/fs-detectors": "5.8.15",
|
|
45
|
+
"@vercel/routing-utils": "6.0.1"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "node ../../utils/build-builder.mjs",
|