@vercel/static-build 2.8.22 → 2.8.23
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 +91 -6
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -10237,6 +10237,7 @@ var require_frameworks = __commonJS({
|
|
|
10237
10237
|
tagline: "FastAPI framework, high performance, easy to learn, fast to code, ready for production",
|
|
10238
10238
|
description: "FastAPI framework, high performance, easy to learn, fast to code, ready for production",
|
|
10239
10239
|
website: "https://fastapi.tiangolo.com",
|
|
10240
|
+
supersedes: ["python"],
|
|
10240
10241
|
useRuntime: { src: "index.py", use: "@vercel/python" },
|
|
10241
10242
|
ignoreRuntimes: ["@vercel/python"],
|
|
10242
10243
|
detectors: {
|
|
@@ -10289,6 +10290,7 @@ var require_frameworks = __commonJS({
|
|
|
10289
10290
|
tagline: "The Python micro web framework",
|
|
10290
10291
|
description: "A Flask app, ready for production",
|
|
10291
10292
|
website: "https://flask.palletsprojects.com",
|
|
10293
|
+
supersedes: ["python"],
|
|
10292
10294
|
useRuntime: { src: "index.py", use: "@vercel/python" },
|
|
10293
10295
|
ignoreRuntimes: ["@vercel/python"],
|
|
10294
10296
|
detectors: {
|
|
@@ -10343,6 +10345,7 @@ var require_frameworks = __commonJS({
|
|
|
10343
10345
|
tagline: "The fastest way to create an HTML app",
|
|
10344
10346
|
description: "A library for writing fast and scalable Starlette-powered web applications",
|
|
10345
10347
|
website: "https://fastht.ml",
|
|
10348
|
+
supersedes: ["python"],
|
|
10346
10349
|
useRuntime: { src: "main.py", use: "@vercel/python" },
|
|
10347
10350
|
detectors: {
|
|
10348
10351
|
every: [
|
|
@@ -11940,6 +11943,56 @@ var require_frameworks = __commonJS({
|
|
|
11940
11943
|
dependency: "xmcp",
|
|
11941
11944
|
getOutputDirName: async () => "dist"
|
|
11942
11945
|
},
|
|
11946
|
+
{
|
|
11947
|
+
name: "Python",
|
|
11948
|
+
slug: "python",
|
|
11949
|
+
experimental: true,
|
|
11950
|
+
logo: "https://api-frameworks.vercel.sh/framework-logos/python.svg",
|
|
11951
|
+
tagline: "Python is a programming language that lets you work quickly and integrate systems more effectively.",
|
|
11952
|
+
description: "A generic Python application deployed as a serverless function.",
|
|
11953
|
+
website: "https://python.org",
|
|
11954
|
+
useRuntime: { src: "index.py", use: "@vercel/python" },
|
|
11955
|
+
ignoreRuntimes: ["@vercel/python"],
|
|
11956
|
+
detectors: {
|
|
11957
|
+
some: [
|
|
11958
|
+
{
|
|
11959
|
+
path: "requirements.txt"
|
|
11960
|
+
},
|
|
11961
|
+
{
|
|
11962
|
+
path: "pyproject.toml"
|
|
11963
|
+
},
|
|
11964
|
+
{
|
|
11965
|
+
path: "Pipfile"
|
|
11966
|
+
}
|
|
11967
|
+
]
|
|
11968
|
+
},
|
|
11969
|
+
settings: {
|
|
11970
|
+
installCommand: {
|
|
11971
|
+
placeholder: "`pip install -r requirements.txt`"
|
|
11972
|
+
},
|
|
11973
|
+
buildCommand: {
|
|
11974
|
+
placeholder: "None",
|
|
11975
|
+
value: null
|
|
11976
|
+
},
|
|
11977
|
+
devCommand: {
|
|
11978
|
+
placeholder: "None",
|
|
11979
|
+
value: null
|
|
11980
|
+
},
|
|
11981
|
+
outputDirectory: {
|
|
11982
|
+
value: "N/A"
|
|
11983
|
+
}
|
|
11984
|
+
},
|
|
11985
|
+
getOutputDirName: async () => "public",
|
|
11986
|
+
defaultRoutes: [
|
|
11987
|
+
{
|
|
11988
|
+
handle: "filesystem"
|
|
11989
|
+
},
|
|
11990
|
+
{
|
|
11991
|
+
src: "/(.*)",
|
|
11992
|
+
dest: "/"
|
|
11993
|
+
}
|
|
11994
|
+
]
|
|
11995
|
+
},
|
|
11943
11996
|
{
|
|
11944
11997
|
name: "Other",
|
|
11945
11998
|
slug: null,
|
|
@@ -20495,6 +20548,23 @@ var require_detect_framework = __commonJS({
|
|
|
20495
20548
|
});
|
|
20496
20549
|
module2.exports = __toCommonJS2(detect_framework_exports);
|
|
20497
20550
|
var import_child_process2 = require("child_process");
|
|
20551
|
+
function shouldIncludeExperimentalFrameworks(useExperimentalFrameworks) {
|
|
20552
|
+
if (typeof useExperimentalFrameworks === "boolean") {
|
|
20553
|
+
return useExperimentalFrameworks;
|
|
20554
|
+
}
|
|
20555
|
+
const experimentalEnv = process.env.VERCEL_USE_EXPERIMENTAL_FRAMEWORKS;
|
|
20556
|
+
const isEnabled = (val) => val === "1" || typeof val === "string" && val.toLowerCase() === "true";
|
|
20557
|
+
return isEnabled(experimentalEnv);
|
|
20558
|
+
}
|
|
20559
|
+
function filterFrameworkList(frameworkList, useExperimentalFrameworks) {
|
|
20560
|
+
if (shouldIncludeExperimentalFrameworks(useExperimentalFrameworks)) {
|
|
20561
|
+
return frameworkList;
|
|
20562
|
+
}
|
|
20563
|
+
return frameworkList.filter((f) => {
|
|
20564
|
+
const experimental = f.experimental;
|
|
20565
|
+
return !experimental;
|
|
20566
|
+
});
|
|
20567
|
+
}
|
|
20498
20568
|
async function matches(fs5, framework) {
|
|
20499
20569
|
const { detectors } = framework;
|
|
20500
20570
|
if (!detectors) {
|
|
@@ -20607,10 +20677,15 @@ var require_detect_framework = __commonJS({
|
|
|
20607
20677
|
}
|
|
20608
20678
|
async function detectFramework2({
|
|
20609
20679
|
fs: fs5,
|
|
20610
|
-
frameworkList
|
|
20680
|
+
frameworkList,
|
|
20681
|
+
useExperimentalFrameworks
|
|
20611
20682
|
}) {
|
|
20683
|
+
const filteredList = filterFrameworkList(
|
|
20684
|
+
frameworkList,
|
|
20685
|
+
useExperimentalFrameworks
|
|
20686
|
+
);
|
|
20612
20687
|
const result = await Promise.all(
|
|
20613
|
-
|
|
20688
|
+
filteredList.map(async (frameworkMatch) => {
|
|
20614
20689
|
if (await matches(fs5, frameworkMatch)) {
|
|
20615
20690
|
return frameworkMatch;
|
|
20616
20691
|
}
|
|
@@ -20622,10 +20697,15 @@ var require_detect_framework = __commonJS({
|
|
|
20622
20697
|
}
|
|
20623
20698
|
async function detectFrameworks2({
|
|
20624
20699
|
fs: fs5,
|
|
20625
|
-
frameworkList
|
|
20700
|
+
frameworkList,
|
|
20701
|
+
useExperimentalFrameworks
|
|
20626
20702
|
}) {
|
|
20703
|
+
const filteredList = filterFrameworkList(
|
|
20704
|
+
frameworkList,
|
|
20705
|
+
useExperimentalFrameworks
|
|
20706
|
+
);
|
|
20627
20707
|
const result = await Promise.all(
|
|
20628
|
-
|
|
20708
|
+
filteredList.map(async (frameworkMatch) => {
|
|
20629
20709
|
if (await matches(fs5, frameworkMatch)) {
|
|
20630
20710
|
return frameworkMatch;
|
|
20631
20711
|
}
|
|
@@ -20637,10 +20717,15 @@ var require_detect_framework = __commonJS({
|
|
|
20637
20717
|
}
|
|
20638
20718
|
async function detectFrameworkRecord3({
|
|
20639
20719
|
fs: fs5,
|
|
20640
|
-
frameworkList
|
|
20720
|
+
frameworkList,
|
|
20721
|
+
useExperimentalFrameworks
|
|
20641
20722
|
}) {
|
|
20723
|
+
const filteredList = filterFrameworkList(
|
|
20724
|
+
frameworkList,
|
|
20725
|
+
useExperimentalFrameworks
|
|
20726
|
+
);
|
|
20642
20727
|
const result = await Promise.all(
|
|
20643
|
-
|
|
20728
|
+
filteredList.map(async (frameworkMatch) => {
|
|
20644
20729
|
const matchResult = await matches(fs5, frameworkMatch);
|
|
20645
20730
|
if (matchResult) {
|
|
20646
20731
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/static-build",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.23",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "./dist/index",
|
|
6
6
|
"homepage": "https://vercel.com/docs/build-step",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"ts-morph": "12.0.0",
|
|
17
17
|
"@vercel/gatsby-plugin-vercel-analytics": "1.0.11",
|
|
18
18
|
"@vercel/static-config": "3.1.2",
|
|
19
|
-
"@vercel/gatsby-plugin-vercel-builder": "2.0.
|
|
19
|
+
"@vercel/gatsby-plugin-vercel-builder": "2.0.122"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@types/aws-lambda": "8.10.64",
|
|
@@ -38,10 +38,10 @@
|
|
|
38
38
|
"rc9": "1.2.0",
|
|
39
39
|
"semver": "7.5.2",
|
|
40
40
|
"tree-kill": "1.2.2",
|
|
41
|
-
"@vercel/build-utils": "13.2.
|
|
41
|
+
"@vercel/build-utils": "13.2.11",
|
|
42
42
|
"@vercel/error-utils": "2.0.3",
|
|
43
|
-
"@vercel/frameworks": "3.15.
|
|
44
|
-
"@vercel/fs-detectors": "5.7.
|
|
43
|
+
"@vercel/frameworks": "3.15.6",
|
|
44
|
+
"@vercel/fs-detectors": "5.7.14",
|
|
45
45
|
"@vercel/routing-utils": "5.3.2"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|