@vercel/static-build 2.5.17 → 2.5.19

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 +55 -8
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -10141,6 +10141,49 @@ var require_frameworks = __commonJS({
10141
10141
  }
10142
10142
  ]
10143
10143
  },
10144
+ {
10145
+ name: "FastHTML (Experimental)",
10146
+ slug: "fasthtml",
10147
+ demo: "https://fasthtml-template.vercel.app",
10148
+ logo: "https://api-frameworks.vercel.sh/framework-logos/fasthtml.png",
10149
+ darkModeLogo: "https://api-frameworks.vercel.sh/framework-logos/fasthtml-dark.png",
10150
+ tagline: "The fastest way to create an HTML app",
10151
+ description: "A library for writing fast and scalable Starlette-powered web applications",
10152
+ website: "https://fastht.ml",
10153
+ useRuntime: { src: "main.py", use: "@vercel/python" },
10154
+ detectors: {
10155
+ every: [
10156
+ {
10157
+ path: "main.py"
10158
+ }
10159
+ ]
10160
+ },
10161
+ settings: {
10162
+ installCommand: {
10163
+ placeholder: "`pip install`"
10164
+ },
10165
+ buildCommand: {
10166
+ placeholder: "None",
10167
+ value: null
10168
+ },
10169
+ devCommand: {
10170
+ value: "uvicorn main:app --reload"
10171
+ },
10172
+ outputDirectory: {
10173
+ value: "N/A"
10174
+ }
10175
+ },
10176
+ getOutputDirName: async () => "",
10177
+ defaultRoutes: [
10178
+ {
10179
+ handle: "filesystem"
10180
+ },
10181
+ {
10182
+ src: "/(.*)",
10183
+ dest: "/main"
10184
+ }
10185
+ ]
10186
+ },
10144
10187
  {
10145
10188
  name: "Sanity",
10146
10189
  slug: "sanity",
@@ -17772,6 +17815,9 @@ var require_detect_builders = __commonJS({
17772
17815
  var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
17773
17816
  var detect_builders_exports = {};
17774
17817
  __export2(detect_builders_exports, {
17818
+ REGEX_MIDDLEWARE_FILES: () => REGEX_MIDDLEWARE_FILES,
17819
+ REGEX_NON_VERCEL_PLATFORM_FILES: () => REGEX_NON_VERCEL_PLATFORM_FILES2,
17820
+ REGEX_VERCEL_PLATFORM_FILES: () => REGEX_VERCEL_PLATFORM_FILES,
17775
17821
  detectApiDirectory: () => detectApiDirectory2,
17776
17822
  detectApiExtensions: () => detectApiExtensions2,
17777
17823
  detectBuilders: () => detectBuilders2,
@@ -17784,6 +17830,9 @@ var require_detect_builders = __commonJS({
17784
17830
  var import_path7 = require("path");
17785
17831
  var import_frameworks2 = __toESM2(require_frameworks());
17786
17832
  var import_is_official_runtime = require_is_official_runtime();
17833
+ var REGEX_MIDDLEWARE_FILES = "middleware.[jt]s";
17834
+ var REGEX_VERCEL_PLATFORM_FILES = `api/**,package.json,${REGEX_MIDDLEWARE_FILES}`;
17835
+ var REGEX_NON_VERCEL_PLATFORM_FILES2 = `!{${REGEX_VERCEL_PLATFORM_FILES}}`;
17787
17836
  var slugToFramework = new Map(
17788
17837
  import_frameworks2.default.map((f) => [f.slug, f])
17789
17838
  );
@@ -17940,7 +17989,7 @@ var require_detect_builders = __commonJS({
17940
17989
  } else if (apiBuilders.length && hasNoneApiFiles) {
17941
17990
  frontendBuilder = {
17942
17991
  use: "@vercel/static",
17943
- src: "!{api/**,package.json,middleware.[jt]s}",
17992
+ src: REGEX_NON_VERCEL_PLATFORM_FILES2,
17944
17993
  config: {
17945
17994
  zeroConfig: true
17946
17995
  }
@@ -18062,7 +18111,7 @@ var require_detect_builders = __commonJS({
18062
18111
  const config = { zeroConfig: true };
18063
18112
  return [
18064
18113
  {
18065
- src: "middleware.[jt]s",
18114
+ src: REGEX_MIDDLEWARE_FILES,
18066
18115
  use: `@vercel/node`,
18067
18116
  config: { ...config, middleware: true }
18068
18117
  },
@@ -26270,6 +26319,7 @@ var require_dist4 = __commonJS({
26270
26319
  GetWorkspaceOptions: () => import_get_workspaces.GetWorkspaceOptions,
26271
26320
  GetWorkspacePackagePathsOptions: () => import_get_workspace_package_paths.GetWorkspacePackagePathsOptions,
26272
26321
  LocalFileSystemDetector: () => import_local_file_system_detector.LocalFileSystemDetector,
26322
+ REGEX_NON_VERCEL_PLATFORM_FILES: () => import_detect_builders2.REGEX_NON_VERCEL_PLATFORM_FILES,
26273
26323
  Workspace: () => import_get_workspaces.Workspace,
26274
26324
  WorkspaceType: () => import_get_workspaces.WorkspaceType,
26275
26325
  detectApiDirectory: () => import_detect_builders.detectApiDirectory,
@@ -26304,6 +26354,7 @@ var require_dist4 = __commonJS({
26304
26354
  var import_is_official_runtime = require_is_official_runtime();
26305
26355
  var import_package_managers = require_package_managers();
26306
26356
  __reExport(src_exports2, require_get_monorepo_default_settings(), module2.exports);
26357
+ var import_detect_builders2 = require_detect_builders();
26307
26358
  }
26308
26359
  });
26309
26360
 
@@ -27687,9 +27738,7 @@ Details: https://err.sh/vercel/vercel/now-static-build-failed-to-detect-a-server
27687
27738
  distPath,
27688
27739
  config
27689
27740
  ) || distPath;
27690
- const buildOutputPathV3 = await getBuildOutputDirectory2(
27691
- outputDirPrefix
27692
- );
27741
+ const buildOutputPathV3 = await getBuildOutputDirectory2(outputDirPrefix);
27693
27742
  if (buildOutputPathV3) {
27694
27743
  return createBuildOutput2(
27695
27744
  meta,
@@ -27698,9 +27747,7 @@ Details: https://err.sh/vercel/vercel/now-static-build-failed-to-detect-a-server
27698
27747
  framework
27699
27748
  );
27700
27749
  }
27701
- const buildOutputPathV2 = await getBuildOutputDirectory(
27702
- outputDirPrefix
27703
- );
27750
+ const buildOutputPathV2 = await getBuildOutputDirectory(outputDirPrefix);
27704
27751
  if (buildOutputPathV2) {
27705
27752
  return await createBuildOutput(workPath);
27706
27753
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/static-build",
3
- "version": "2.5.17",
3
+ "version": "2.5.19",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/build-step",
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "@vercel/gatsby-plugin-vercel-analytics": "1.0.11",
17
- "@vercel/gatsby-plugin-vercel-builder": "2.0.39",
17
+ "@vercel/gatsby-plugin-vercel-builder": "2.0.41",
18
18
  "@vercel/static-config": "3.0.0",
19
19
  "ts-morph": "12.0.0"
20
20
  },
@@ -28,10 +28,10 @@
28
28
  "@types/node-fetch": "2.5.4",
29
29
  "@types/promise-timeout": "1.3.0",
30
30
  "@types/semver": "7.3.13",
31
- "@vercel/build-utils": "8.3.5",
31
+ "@vercel/build-utils": "8.3.7",
32
32
  "@vercel/error-utils": "2.0.2",
33
- "@vercel/frameworks": "3.0.3",
34
- "@vercel/fs-detectors": "5.2.5",
33
+ "@vercel/frameworks": "3.1.1",
34
+ "@vercel/fs-detectors": "5.2.8",
35
35
  "@vercel/routing-utils": "3.1.0",
36
36
  "execa": "3.2.0",
37
37
  "fs-extra": "10.0.0",