@vercel/static-build 2.5.18 → 2.5.20

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 +72 -8
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -10184,6 +10184,66 @@ var require_frameworks = __commonJS({
10184
10184
  }
10185
10185
  ]
10186
10186
  },
10187
+ {
10188
+ name: "Sanity (v3)",
10189
+ slug: "sanity-v3",
10190
+ demo: "https://sanity-studio-template.vercel.app",
10191
+ logo: "https://api-frameworks.vercel.sh/framework-logos/sanity.svg",
10192
+ tagline: "The structured content platform.",
10193
+ description: "A Sanity Studio",
10194
+ website: "https://www.sanity.io",
10195
+ envPrefix: "SANITY_STUDIO_",
10196
+ detectors: {
10197
+ some: [
10198
+ {
10199
+ path: "sanity.json"
10200
+ },
10201
+ {
10202
+ path: "sanity.config.js"
10203
+ },
10204
+ {
10205
+ path: "sanity.config.jsx"
10206
+ },
10207
+ {
10208
+ path: "sanity.config.ts"
10209
+ },
10210
+ {
10211
+ path: "sanity.config.tsx"
10212
+ }
10213
+ ],
10214
+ every: [
10215
+ {
10216
+ path: "package.json",
10217
+ matchContent: '"(dev)?(d|D)ependencies":\\s*{[^}]*"sanity":\\s*"\\^?3\\..*"[^}]*}'
10218
+ }
10219
+ ]
10220
+ },
10221
+ settings: {
10222
+ installCommand: {
10223
+ placeholder: "`yarn install`, `pnpm install`, `npm install`, or `bun install`"
10224
+ },
10225
+ buildCommand: {
10226
+ placeholder: "`npm run build` or `sanity build`",
10227
+ value: "sanity build"
10228
+ },
10229
+ devCommand: {
10230
+ value: "sanity dev --port $PORT"
10231
+ },
10232
+ outputDirectory: {
10233
+ value: "dist"
10234
+ }
10235
+ },
10236
+ getOutputDirName: async () => "dist",
10237
+ defaultRoutes: [
10238
+ {
10239
+ handle: "filesystem"
10240
+ },
10241
+ {
10242
+ src: "/(.*)",
10243
+ dest: "/index.html"
10244
+ }
10245
+ ]
10246
+ },
10187
10247
  {
10188
10248
  name: "Sanity",
10189
10249
  slug: "sanity",
@@ -17815,6 +17875,9 @@ var require_detect_builders = __commonJS({
17815
17875
  var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
17816
17876
  var detect_builders_exports = {};
17817
17877
  __export2(detect_builders_exports, {
17878
+ REGEX_MIDDLEWARE_FILES: () => REGEX_MIDDLEWARE_FILES,
17879
+ REGEX_NON_VERCEL_PLATFORM_FILES: () => REGEX_NON_VERCEL_PLATFORM_FILES2,
17880
+ REGEX_VERCEL_PLATFORM_FILES: () => REGEX_VERCEL_PLATFORM_FILES,
17818
17881
  detectApiDirectory: () => detectApiDirectory2,
17819
17882
  detectApiExtensions: () => detectApiExtensions2,
17820
17883
  detectBuilders: () => detectBuilders2,
@@ -17827,6 +17890,9 @@ var require_detect_builders = __commonJS({
17827
17890
  var import_path7 = require("path");
17828
17891
  var import_frameworks2 = __toESM2(require_frameworks());
17829
17892
  var import_is_official_runtime = require_is_official_runtime();
17893
+ var REGEX_MIDDLEWARE_FILES = "middleware.[jt]s";
17894
+ var REGEX_VERCEL_PLATFORM_FILES = `api/**,package.json,${REGEX_MIDDLEWARE_FILES}`;
17895
+ var REGEX_NON_VERCEL_PLATFORM_FILES2 = `!{${REGEX_VERCEL_PLATFORM_FILES}}`;
17830
17896
  var slugToFramework = new Map(
17831
17897
  import_frameworks2.default.map((f) => [f.slug, f])
17832
17898
  );
@@ -17983,7 +18049,7 @@ var require_detect_builders = __commonJS({
17983
18049
  } else if (apiBuilders.length && hasNoneApiFiles) {
17984
18050
  frontendBuilder = {
17985
18051
  use: "@vercel/static",
17986
- src: "!{api/**,package.json,middleware.[jt]s}",
18052
+ src: REGEX_NON_VERCEL_PLATFORM_FILES2,
17987
18053
  config: {
17988
18054
  zeroConfig: true
17989
18055
  }
@@ -18105,7 +18171,7 @@ var require_detect_builders = __commonJS({
18105
18171
  const config = { zeroConfig: true };
18106
18172
  return [
18107
18173
  {
18108
- src: "middleware.[jt]s",
18174
+ src: REGEX_MIDDLEWARE_FILES,
18109
18175
  use: `@vercel/node`,
18110
18176
  config: { ...config, middleware: true }
18111
18177
  },
@@ -26313,6 +26379,7 @@ var require_dist4 = __commonJS({
26313
26379
  GetWorkspaceOptions: () => import_get_workspaces.GetWorkspaceOptions,
26314
26380
  GetWorkspacePackagePathsOptions: () => import_get_workspace_package_paths.GetWorkspacePackagePathsOptions,
26315
26381
  LocalFileSystemDetector: () => import_local_file_system_detector.LocalFileSystemDetector,
26382
+ REGEX_NON_VERCEL_PLATFORM_FILES: () => import_detect_builders2.REGEX_NON_VERCEL_PLATFORM_FILES,
26316
26383
  Workspace: () => import_get_workspaces.Workspace,
26317
26384
  WorkspaceType: () => import_get_workspaces.WorkspaceType,
26318
26385
  detectApiDirectory: () => import_detect_builders.detectApiDirectory,
@@ -26347,6 +26414,7 @@ var require_dist4 = __commonJS({
26347
26414
  var import_is_official_runtime = require_is_official_runtime();
26348
26415
  var import_package_managers = require_package_managers();
26349
26416
  __reExport(src_exports2, require_get_monorepo_default_settings(), module2.exports);
26417
+ var import_detect_builders2 = require_detect_builders();
26350
26418
  }
26351
26419
  });
26352
26420
 
@@ -27730,9 +27798,7 @@ Details: https://err.sh/vercel/vercel/now-static-build-failed-to-detect-a-server
27730
27798
  distPath,
27731
27799
  config
27732
27800
  ) || distPath;
27733
- const buildOutputPathV3 = await getBuildOutputDirectory2(
27734
- outputDirPrefix
27735
- );
27801
+ const buildOutputPathV3 = await getBuildOutputDirectory2(outputDirPrefix);
27736
27802
  if (buildOutputPathV3) {
27737
27803
  return createBuildOutput2(
27738
27804
  meta,
@@ -27741,9 +27807,7 @@ Details: https://err.sh/vercel/vercel/now-static-build-failed-to-detect-a-server
27741
27807
  framework
27742
27808
  );
27743
27809
  }
27744
- const buildOutputPathV2 = await getBuildOutputDirectory(
27745
- outputDirPrefix
27746
- );
27810
+ const buildOutputPathV2 = await getBuildOutputDirectory(outputDirPrefix);
27747
27811
  if (buildOutputPathV2) {
27748
27812
  return await createBuildOutput(workPath);
27749
27813
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/static-build",
3
- "version": "2.5.18",
3
+ "version": "2.5.20",
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.40",
17
+ "@vercel/gatsby-plugin-vercel-builder": "2.0.42",
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.6",
31
+ "@vercel/build-utils": "8.3.8",
32
32
  "@vercel/error-utils": "2.0.2",
33
- "@vercel/frameworks": "3.1.1",
34
- "@vercel/fs-detectors": "5.2.7",
33
+ "@vercel/frameworks": "3.2.0",
34
+ "@vercel/fs-detectors": "5.2.9",
35
35
  "@vercel/routing-utils": "3.1.0",
36
36
  "execa": "3.2.0",
37
37
  "fs-extra": "10.0.0",