@vercel/static-build 2.8.32 → 2.8.34
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 +65 -2
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -12138,6 +12138,62 @@ var require_frameworks = __commonJS({
|
|
|
12138
12138
|
}
|
|
12139
12139
|
]
|
|
12140
12140
|
},
|
|
12141
|
+
{
|
|
12142
|
+
name: "Go",
|
|
12143
|
+
slug: "go",
|
|
12144
|
+
experimental: true,
|
|
12145
|
+
runtimeFramework: true,
|
|
12146
|
+
logo: "https://api-frameworks.vercel.sh/framework-logos/go.svg",
|
|
12147
|
+
tagline: "An open-source programming language supported by Google.",
|
|
12148
|
+
description: "A generic Go application deployed as a serverless function.",
|
|
12149
|
+
website: "https://go.dev",
|
|
12150
|
+
useRuntime: { src: "index.go", use: "@vercel/go" },
|
|
12151
|
+
ignoreRuntimes: ["@vercel/go"],
|
|
12152
|
+
detectors: {
|
|
12153
|
+
every: [
|
|
12154
|
+
{
|
|
12155
|
+
path: "go.mod"
|
|
12156
|
+
}
|
|
12157
|
+
],
|
|
12158
|
+
some: [
|
|
12159
|
+
{
|
|
12160
|
+
path: "main.go"
|
|
12161
|
+
},
|
|
12162
|
+
{
|
|
12163
|
+
path: "cmd/api/main.go"
|
|
12164
|
+
},
|
|
12165
|
+
{
|
|
12166
|
+
path: "cmd/server/main.go"
|
|
12167
|
+
}
|
|
12168
|
+
]
|
|
12169
|
+
},
|
|
12170
|
+
settings: {
|
|
12171
|
+
installCommand: {
|
|
12172
|
+
placeholder: "`go mod download`"
|
|
12173
|
+
},
|
|
12174
|
+
buildCommand: {
|
|
12175
|
+
placeholder: "None",
|
|
12176
|
+
value: null
|
|
12177
|
+
},
|
|
12178
|
+
devCommand: {
|
|
12179
|
+
placeholder: "`go run .` or `go run ./cmd/api`",
|
|
12180
|
+
value: null
|
|
12181
|
+
},
|
|
12182
|
+
outputDirectory: {
|
|
12183
|
+
value: "N/A"
|
|
12184
|
+
}
|
|
12185
|
+
},
|
|
12186
|
+
getOutputDirName: async () => "public",
|
|
12187
|
+
defaultRoutes: [
|
|
12188
|
+
{
|
|
12189
|
+
handle: "filesystem"
|
|
12190
|
+
},
|
|
12191
|
+
{
|
|
12192
|
+
src: "/(.*)",
|
|
12193
|
+
dest: "/"
|
|
12194
|
+
}
|
|
12195
|
+
]
|
|
12196
|
+
},
|
|
12141
12197
|
{
|
|
12142
12198
|
name: "Services",
|
|
12143
12199
|
slug: "services",
|
|
@@ -12146,7 +12202,6 @@ var require_frameworks = __commonJS({
|
|
|
12146
12202
|
tagline: "Multiple services deployed as serverless functions within your project.",
|
|
12147
12203
|
description: "Multiple services deployed as serverless functions within your project.",
|
|
12148
12204
|
website: "https://vercel.com",
|
|
12149
|
-
detectors: {},
|
|
12150
12205
|
settings: {
|
|
12151
12206
|
installCommand: {
|
|
12152
12207
|
placeholder: "None"
|
|
@@ -19860,7 +19915,15 @@ var require_resolve = __commonJS({
|
|
|
19860
19915
|
var import_utils = require_utils4();
|
|
19861
19916
|
var import_frameworks2 = __toESM2(require_frameworks());
|
|
19862
19917
|
var frameworksBySlug = new Map(import_frameworks2.default.map((f) => [f.slug, f]));
|
|
19918
|
+
var SERVICE_NAME_REGEX = /^[a-zA-Z]([a-zA-Z0-9_-]*[a-zA-Z0-9])?$/;
|
|
19863
19919
|
function validateServiceConfig(name, config) {
|
|
19920
|
+
if (!SERVICE_NAME_REGEX.test(name)) {
|
|
19921
|
+
return {
|
|
19922
|
+
code: "INVALID_SERVICE_NAME",
|
|
19923
|
+
message: `Service name "${name}" is invalid. Names must start with a letter, end with an alphanumeric character, and contain only alphanumeric characters, hyphens, and underscores.`,
|
|
19924
|
+
serviceName: name
|
|
19925
|
+
};
|
|
19926
|
+
}
|
|
19864
19927
|
if (!config || typeof config !== "object") {
|
|
19865
19928
|
return {
|
|
19866
19929
|
code: "INVALID_SERVICE_CONFIG",
|
|
@@ -21165,7 +21228,7 @@ var require_detect_builders = __commonJS({
|
|
|
21165
21228
|
builders.push(...apiBuilders);
|
|
21166
21229
|
}
|
|
21167
21230
|
if (frontendBuilder) {
|
|
21168
|
-
if (frontendBuilder?.use === "@vercel/express" || frontendBuilder?.use === "@vercel/hono" || frontendBuilder?.use === "@vercel/python") {
|
|
21231
|
+
if (frontendBuilder?.use === "@vercel/express" || frontendBuilder?.use === "@vercel/hono" || frontendBuilder?.use === "@vercel/python" || frontendBuilder?.use === "@vercel/go") {
|
|
21169
21232
|
builders.push({
|
|
21170
21233
|
src: "public/**/*",
|
|
21171
21234
|
use: "@vercel/static",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/static-build",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.34",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/build-step",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"ts-morph": "12.0.0",
|
|
17
17
|
"@vercel/gatsby-plugin-vercel-analytics": "1.0.11",
|
|
18
|
-
"@vercel/
|
|
19
|
-
"@vercel/
|
|
18
|
+
"@vercel/gatsby-plugin-vercel-builder": "2.0.132",
|
|
19
|
+
"@vercel/static-config": "3.1.2"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@types/aws-lambda": "8.10.64",
|
|
@@ -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.3.
|
|
42
|
-
"@vercel/frameworks": "3.16.1",
|
|
41
|
+
"@vercel/build-utils": "13.3.3",
|
|
43
42
|
"@vercel/error-utils": "2.0.3",
|
|
44
|
-
"@vercel/fs-detectors": "5.8.
|
|
45
|
-
"@vercel/routing-utils": "5.3.2"
|
|
43
|
+
"@vercel/fs-detectors": "5.8.3",
|
|
44
|
+
"@vercel/routing-utils": "5.3.2",
|
|
45
|
+
"@vercel/frameworks": "3.17.1"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "node ../../utils/build-builder.mjs",
|