@vercel/python 6.52.0 → 6.53.0

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.
Files changed (2) hide show
  1. package/dist/index.js +11 -2
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -9442,7 +9442,8 @@ ${detail}`
9442
9442
  pythonEnv,
9443
9443
  detected,
9444
9444
  workPath,
9445
- venvPath
9445
+ venvPath,
9446
+ pyprojectData
9446
9447
  }) => {
9447
9448
  if (!detected?.entrypoint || !workPath || !venvPath) {
9448
9449
  (0, import_build_utils22.debug)(
@@ -9463,6 +9464,13 @@ ${detail}`
9463
9464
  );
9464
9465
  return;
9465
9466
  }
9467
+ const staticCdn = pyprojectData?.tool?.vercel?.fastapi?.static?.cdn;
9468
+ if (staticCdn === false) {
9469
+ (0, import_build_utils22.debug)(
9470
+ "FastAPI: static.cdn = false in pyproject.toml, skipping CDN collection"
9471
+ );
9472
+ return;
9473
+ }
9466
9474
  const fastapiStatic = await runFastAPICollectStatic(
9467
9475
  venvPath,
9468
9476
  workPath,
@@ -9882,7 +9890,8 @@ var build = async ({
9882
9890
  workPath,
9883
9891
  venvPath,
9884
9892
  entrypoint,
9885
- detected
9893
+ detected,
9894
+ pyprojectData: pythonPackage.manifest?.data
9886
9895
  });
9887
9896
  const resolved = isPyprojectEntrypoint ? detected?.entrypoint : hookResult?.entrypoint ?? detected?.entrypoint;
9888
9897
  if (!resolved && detected?.error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/python",
3
- "version": "6.52.0",
3
+ "version": "6.53.0",
4
4
  "main": "./dist/index.js",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/python",
@@ -14,7 +14,7 @@
14
14
  "directory": "packages/python"
15
15
  },
16
16
  "dependencies": {
17
- "@vercel/python-analysis": "0.11.1"
17
+ "@vercel/python-analysis": "0.12.0"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@renovatebot/pep440": "4.2.1",
@@ -35,7 +35,7 @@
35
35
  "smol-toml": "1.5.2",
36
36
  "vitest": "2.1.4",
37
37
  "which": "3.0.0",
38
- "@vercel/build-utils": "13.35.0",
38
+ "@vercel/build-utils": "13.36.0",
39
39
  "@vercel/error-utils": "2.2.0",
40
40
  "@vercel/python-runtime": "0.16.0"
41
41
  },