vercel 48.1.5 → 48.1.7
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 +23 -5
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -116302,7 +116302,7 @@ var require_frameworks = __commonJS2({
|
|
|
116302
116302
|
tagline: "FastAPI framework, high performance, easy to learn, fast to code, ready for production",
|
|
116303
116303
|
description: "FastAPI framework, high performance, easy to learn, fast to code, ready for production",
|
|
116304
116304
|
website: "https://fastapi.tiangolo.com",
|
|
116305
|
-
useRuntime: { src: "
|
|
116305
|
+
useRuntime: { src: "index.py", use: "@vercel/python" },
|
|
116306
116306
|
detectors: {
|
|
116307
116307
|
some: [
|
|
116308
116308
|
{
|
|
@@ -116328,20 +116328,21 @@ var require_frameworks = __commonJS2({
|
|
|
116328
116328
|
value: null
|
|
116329
116329
|
},
|
|
116330
116330
|
devCommand: {
|
|
116331
|
-
|
|
116331
|
+
placeholder: "None",
|
|
116332
|
+
value: null
|
|
116332
116333
|
},
|
|
116333
116334
|
outputDirectory: {
|
|
116334
116335
|
value: "N/A"
|
|
116335
116336
|
}
|
|
116336
116337
|
},
|
|
116337
|
-
getOutputDirName: async () => "",
|
|
116338
|
+
getOutputDirName: async () => "public",
|
|
116338
116339
|
defaultRoutes: [
|
|
116339
116340
|
{
|
|
116340
116341
|
handle: "filesystem"
|
|
116341
116342
|
},
|
|
116342
116343
|
{
|
|
116343
116344
|
src: "/(.*)",
|
|
116344
|
-
dest: "/
|
|
116345
|
+
dest: "/"
|
|
116345
116346
|
}
|
|
116346
116347
|
]
|
|
116347
116348
|
},
|
|
@@ -116756,6 +116757,7 @@ var require_frameworks = __commonJS2({
|
|
|
116756
116757
|
name: "Express",
|
|
116757
116758
|
slug: "express",
|
|
116758
116759
|
logo: "https://api-frameworks.vercel.sh/framework-logos/express.svg",
|
|
116760
|
+
demo: "https://express-vercel-example-demo.vercel.app/",
|
|
116759
116761
|
darkModeLogo: "https://api-frameworks.vercel.sh/framework-logos/express-dark.svg",
|
|
116760
116762
|
tagline: "Fast, unopinionated, minimalist web framework for Node.js",
|
|
116761
116763
|
description: "Fast, unopinionated, minimalist web framework for Node.js",
|
|
@@ -119377,7 +119379,7 @@ var require_detect_builders = __commonJS2({
|
|
|
119377
119379
|
builders.push(...apiBuilders);
|
|
119378
119380
|
}
|
|
119379
119381
|
if (frontendBuilder) {
|
|
119380
|
-
if (frontendBuilder?.use === "@vercel/express" || frontendBuilder?.use === "@vercel/hono") {
|
|
119382
|
+
if (frontendBuilder?.use === "@vercel/express" || frontendBuilder?.use === "@vercel/hono" || frontendBuilder?.use === "@vercel/python") {
|
|
119381
119383
|
builders.push({
|
|
119382
119384
|
src: "public/**/*",
|
|
119383
119385
|
use: "@vercel/static",
|
|
@@ -168230,6 +168232,22 @@ async function getBuildMatches(vercelConfig, cwd, devServer, fileList) {
|
|
|
168230
168232
|
if (buildConfig.config?.framework === "hono" || buildConfig.config?.framework === "express" || buildConfig.config?.framework === "h3") {
|
|
168231
168233
|
src = "package.json";
|
|
168232
168234
|
}
|
|
168235
|
+
if (buildConfig.config?.framework === "fastapi") {
|
|
168236
|
+
const candidateDirs = ["", "src", "app"];
|
|
168237
|
+
const candidateNames = ["app", "index", "server", "main"];
|
|
168238
|
+
const candidates = [];
|
|
168239
|
+
for (const dir of candidateDirs) {
|
|
168240
|
+
for (const name of candidateNames) {
|
|
168241
|
+
candidates.push(dir ? `${dir}/${name}.py` : `${name}.py`);
|
|
168242
|
+
}
|
|
168243
|
+
}
|
|
168244
|
+
if (!fileList.includes(src)) {
|
|
168245
|
+
const existing = candidates.filter((p) => fileList.includes(p));
|
|
168246
|
+
if (existing.length > 0) {
|
|
168247
|
+
src = existing[0];
|
|
168248
|
+
}
|
|
168249
|
+
}
|
|
168250
|
+
}
|
|
168233
168251
|
const mapToEntrypoint = /* @__PURE__ */ new Map();
|
|
168234
168252
|
const extensionless = devServer.getExtensionlessFile(src);
|
|
168235
168253
|
if (extensionless) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vercel",
|
|
3
|
-
"version": "48.1.
|
|
3
|
+
"version": "48.1.7",
|
|
4
4
|
"preferGlobal": true,
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"description": "The command-line interface for Vercel",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"@vercel/build-utils": "12.1.0",
|
|
26
26
|
"@vercel/fun": "1.1.6",
|
|
27
27
|
"@vercel/go": "3.2.3",
|
|
28
|
-
"@vercel/express": "0.0.
|
|
28
|
+
"@vercel/express": "0.0.22",
|
|
29
29
|
"@vercel/hono": "0.1.2",
|
|
30
30
|
"@vercel/h3": "0.1.2",
|
|
31
31
|
"@vercel/hydrogen": "1.2.4",
|
|
32
32
|
"@vercel/next": "4.13.0",
|
|
33
33
|
"@vercel/node": "5.3.24",
|
|
34
|
-
"@vercel/python": "5.0.
|
|
34
|
+
"@vercel/python": "5.0.6",
|
|
35
35
|
"@vercel/redwood": "2.3.6",
|
|
36
36
|
"@vercel/remix-builder": "5.4.12",
|
|
37
37
|
"@vercel/ruby": "2.2.1",
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
"@types/yauzl-promise": "2.1.0",
|
|
86
86
|
"@vercel/client": "17.0.0",
|
|
87
87
|
"@vercel/error-utils": "2.0.3",
|
|
88
|
-
"@vercel/frameworks": "3.
|
|
89
|
-
"@vercel/fs-detectors": "5.5.
|
|
88
|
+
"@vercel/frameworks": "3.10.0",
|
|
89
|
+
"@vercel/fs-detectors": "5.5.8",
|
|
90
90
|
"@vercel/routing-utils": "5.1.1",
|
|
91
91
|
"@vitest/expect": "2.1.3",
|
|
92
92
|
"ajv": "6.12.3",
|