vercel 23.1.3-canary.40 → 23.1.3-canary.44

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 +343 -311
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -210923,7 +210923,7 @@ exports.frameworks = [
210923
210923
  name: 'Remix',
210924
210924
  slug: 'remix',
210925
210925
  demo: 'https://remix.examples.vercel.com',
210926
- logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/remix.svg',
210926
+ logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/remix-no-shadow.svg',
210927
210927
  tagline: 'Build Better Websites',
210928
210928
  description: 'A new Remix app — the result of running `npx create-remix`.',
210929
210929
  website: 'https://remix.run',
@@ -210978,8 +210978,8 @@ exports.frameworks = [
210978
210978
  ],
210979
210979
  defaultHeaders: [
210980
210980
  {
210981
- source: '^/build/(.*)$',
210982
- regex: '^/build/(.*)$',
210981
+ source: '/build/(.*)',
210982
+ regex: '/build/(.*)',
210983
210983
  headers: [
210984
210984
  { key: 'cache-control', value: 'public, max-age=31536000, immutable' },
210985
210985
  ],
@@ -212737,7 +212737,7 @@ exports.default = def;
212737
212737
  /***/ }),
212738
212738
 
212739
212739
  /***/ 3734:
212740
- /***/ (function(__unused_webpack_module, exports, __nested_webpack_require_795929__) {
212740
+ /***/ (function(__unused_webpack_module, exports, __nested_webpack_require_795935__) {
212741
212741
 
212742
212742
  "use strict";
212743
212743
 
@@ -212746,9 +212746,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
212746
212746
  };
212747
212747
  Object.defineProperty(exports, "__esModule", ({ value: true }));
212748
212748
  exports.readConfigFile = void 0;
212749
- const js_yaml_1 = __importDefault(__nested_webpack_require_795929__(641));
212750
- const toml_1 = __importDefault(__nested_webpack_require_795929__(9434));
212751
- const fs_1 = __nested_webpack_require_795929__(5747);
212749
+ const js_yaml_1 = __importDefault(__nested_webpack_require_795935__(641));
212750
+ const toml_1 = __importDefault(__nested_webpack_require_795935__(9434));
212751
+ const fs_1 = __nested_webpack_require_795935__(5747);
212752
212752
  const { readFile } = fs_1.promises;
212753
212753
  async function readFileOrNull(file) {
212754
212754
  try {
@@ -212797,13 +212797,13 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
212797
212797
  /***/ }),
212798
212798
 
212799
212799
  /***/ 641:
212800
- /***/ ((module, __unused_webpack_exports, __nested_webpack_require_797535__) => {
212800
+ /***/ ((module, __unused_webpack_exports, __nested_webpack_require_797541__) => {
212801
212801
 
212802
212802
  "use strict";
212803
212803
 
212804
212804
 
212805
212805
 
212806
- var yaml = __nested_webpack_require_797535__(9633);
212806
+ var yaml = __nested_webpack_require_797541__(9633);
212807
212807
 
212808
212808
 
212809
212809
  module.exports = yaml;
@@ -212812,14 +212812,14 @@ module.exports = yaml;
212812
212812
  /***/ }),
212813
212813
 
212814
212814
  /***/ 9633:
212815
- /***/ ((module, __unused_webpack_exports, __nested_webpack_require_797709__) => {
212815
+ /***/ ((module, __unused_webpack_exports, __nested_webpack_require_797715__) => {
212816
212816
 
212817
212817
  "use strict";
212818
212818
 
212819
212819
 
212820
212820
 
212821
- var loader = __nested_webpack_require_797709__(4349);
212822
- var dumper = __nested_webpack_require_797709__(8047);
212821
+ var loader = __nested_webpack_require_797715__(4349);
212822
+ var dumper = __nested_webpack_require_797715__(8047);
212823
212823
 
212824
212824
 
212825
212825
  function deprecated(name) {
@@ -212829,25 +212829,25 @@ function deprecated(name) {
212829
212829
  }
212830
212830
 
212831
212831
 
212832
- module.exports.Type = __nested_webpack_require_797709__(6876);
212833
- module.exports.Schema = __nested_webpack_require_797709__(6105);
212834
- module.exports.FAILSAFE_SCHEMA = __nested_webpack_require_797709__(8441);
212835
- module.exports.JSON_SCHEMA = __nested_webpack_require_797709__(1486);
212836
- module.exports.CORE_SCHEMA = __nested_webpack_require_797709__(1112);
212837
- module.exports.DEFAULT_SAFE_SCHEMA = __nested_webpack_require_797709__(596);
212838
- module.exports.DEFAULT_FULL_SCHEMA = __nested_webpack_require_797709__(9647);
212832
+ module.exports.Type = __nested_webpack_require_797715__(6876);
212833
+ module.exports.Schema = __nested_webpack_require_797715__(6105);
212834
+ module.exports.FAILSAFE_SCHEMA = __nested_webpack_require_797715__(8441);
212835
+ module.exports.JSON_SCHEMA = __nested_webpack_require_797715__(1486);
212836
+ module.exports.CORE_SCHEMA = __nested_webpack_require_797715__(1112);
212837
+ module.exports.DEFAULT_SAFE_SCHEMA = __nested_webpack_require_797715__(596);
212838
+ module.exports.DEFAULT_FULL_SCHEMA = __nested_webpack_require_797715__(9647);
212839
212839
  module.exports.load = loader.load;
212840
212840
  module.exports.loadAll = loader.loadAll;
212841
212841
  module.exports.safeLoad = loader.safeLoad;
212842
212842
  module.exports.safeLoadAll = loader.safeLoadAll;
212843
212843
  module.exports.dump = dumper.dump;
212844
212844
  module.exports.safeDump = dumper.safeDump;
212845
- module.exports.YAMLException = __nested_webpack_require_797709__(3237);
212845
+ module.exports.YAMLException = __nested_webpack_require_797715__(3237);
212846
212846
 
212847
212847
  // Deprecated schema names from JS-YAML 2.0.x
212848
- module.exports.MINIMAL_SCHEMA = __nested_webpack_require_797709__(8441);
212849
- module.exports.SAFE_SCHEMA = __nested_webpack_require_797709__(596);
212850
- module.exports.DEFAULT_SCHEMA = __nested_webpack_require_797709__(9647);
212848
+ module.exports.MINIMAL_SCHEMA = __nested_webpack_require_797715__(8441);
212849
+ module.exports.SAFE_SCHEMA = __nested_webpack_require_797715__(596);
212850
+ module.exports.DEFAULT_SCHEMA = __nested_webpack_require_797715__(9647);
212851
212851
 
212852
212852
  // Deprecated functions from JS-YAML 1.x.x
212853
212853
  module.exports.scan = deprecated('scan');
@@ -212926,17 +212926,17 @@ module.exports.extend = extend;
212926
212926
  /***/ }),
212927
212927
 
212928
212928
  /***/ 8047:
212929
- /***/ ((module, __unused_webpack_exports, __nested_webpack_require_800527__) => {
212929
+ /***/ ((module, __unused_webpack_exports, __nested_webpack_require_800533__) => {
212930
212930
 
212931
212931
  "use strict";
212932
212932
 
212933
212933
 
212934
212934
  /*eslint-disable no-use-before-define*/
212935
212935
 
212936
- var common = __nested_webpack_require_800527__(903);
212937
- var YAMLException = __nested_webpack_require_800527__(3237);
212938
- var DEFAULT_FULL_SCHEMA = __nested_webpack_require_800527__(9647);
212939
- var DEFAULT_SAFE_SCHEMA = __nested_webpack_require_800527__(596);
212936
+ var common = __nested_webpack_require_800533__(903);
212937
+ var YAMLException = __nested_webpack_require_800533__(3237);
212938
+ var DEFAULT_FULL_SCHEMA = __nested_webpack_require_800533__(9647);
212939
+ var DEFAULT_SAFE_SCHEMA = __nested_webpack_require_800533__(596);
212940
212940
 
212941
212941
  var _toString = Object.prototype.toString;
212942
212942
  var _hasOwnProperty = Object.prototype.hasOwnProperty;
@@ -213812,18 +213812,18 @@ module.exports = YAMLException;
213812
213812
  /***/ }),
213813
213813
 
213814
213814
  /***/ 4349:
213815
- /***/ ((module, __unused_webpack_exports, __nested_webpack_require_828231__) => {
213815
+ /***/ ((module, __unused_webpack_exports, __nested_webpack_require_828237__) => {
213816
213816
 
213817
213817
  "use strict";
213818
213818
 
213819
213819
 
213820
213820
  /*eslint-disable max-len,no-use-before-define*/
213821
213821
 
213822
- var common = __nested_webpack_require_828231__(903);
213823
- var YAMLException = __nested_webpack_require_828231__(3237);
213824
- var Mark = __nested_webpack_require_828231__(4926);
213825
- var DEFAULT_SAFE_SCHEMA = __nested_webpack_require_828231__(596);
213826
- var DEFAULT_FULL_SCHEMA = __nested_webpack_require_828231__(9647);
213822
+ var common = __nested_webpack_require_828237__(903);
213823
+ var YAMLException = __nested_webpack_require_828237__(3237);
213824
+ var Mark = __nested_webpack_require_828237__(4926);
213825
+ var DEFAULT_SAFE_SCHEMA = __nested_webpack_require_828237__(596);
213826
+ var DEFAULT_FULL_SCHEMA = __nested_webpack_require_828237__(9647);
213827
213827
 
213828
213828
 
213829
213829
  var _hasOwnProperty = Object.prototype.hasOwnProperty;
@@ -215445,13 +215445,13 @@ module.exports.safeLoad = safeLoad;
215445
215445
  /***/ }),
215446
215446
 
215447
215447
  /***/ 4926:
215448
- /***/ ((module, __unused_webpack_exports, __nested_webpack_require_872098__) => {
215448
+ /***/ ((module, __unused_webpack_exports, __nested_webpack_require_872104__) => {
215449
215449
 
215450
215450
  "use strict";
215451
215451
 
215452
215452
 
215453
215453
 
215454
- var common = __nested_webpack_require_872098__(903);
215454
+ var common = __nested_webpack_require_872104__(903);
215455
215455
 
215456
215456
 
215457
215457
  function Mark(name, buffer, position, line, column) {
@@ -215529,16 +215529,16 @@ module.exports = Mark;
215529
215529
  /***/ }),
215530
215530
 
215531
215531
  /***/ 6105:
215532
- /***/ ((module, __unused_webpack_exports, __nested_webpack_require_873760__) => {
215532
+ /***/ ((module, __unused_webpack_exports, __nested_webpack_require_873766__) => {
215533
215533
 
215534
215534
  "use strict";
215535
215535
 
215536
215536
 
215537
215537
  /*eslint-disable max-len*/
215538
215538
 
215539
- var common = __nested_webpack_require_873760__(903);
215540
- var YAMLException = __nested_webpack_require_873760__(3237);
215541
- var Type = __nested_webpack_require_873760__(6876);
215539
+ var common = __nested_webpack_require_873766__(903);
215540
+ var YAMLException = __nested_webpack_require_873766__(3237);
215541
+ var Type = __nested_webpack_require_873766__(6876);
215542
215542
 
215543
215543
 
215544
215544
  function compileList(schema, name, result) {
@@ -215645,7 +215645,7 @@ module.exports = Schema;
215645
215645
  /***/ }),
215646
215646
 
215647
215647
  /***/ 1112:
215648
- /***/ ((module, __unused_webpack_exports, __nested_webpack_require_876624__) => {
215648
+ /***/ ((module, __unused_webpack_exports, __nested_webpack_require_876630__) => {
215649
215649
 
215650
215650
  "use strict";
215651
215651
  // Standard YAML's Core schema.
@@ -215658,12 +215658,12 @@ module.exports = Schema;
215658
215658
 
215659
215659
 
215660
215660
 
215661
- var Schema = __nested_webpack_require_876624__(6105);
215661
+ var Schema = __nested_webpack_require_876630__(6105);
215662
215662
 
215663
215663
 
215664
215664
  module.exports = new Schema({
215665
215665
  include: [
215666
- __nested_webpack_require_876624__(1486)
215666
+ __nested_webpack_require_876630__(1486)
215667
215667
  ]
215668
215668
  });
215669
215669
 
@@ -215671,7 +215671,7 @@ module.exports = new Schema({
215671
215671
  /***/ }),
215672
215672
 
215673
215673
  /***/ 9647:
215674
- /***/ ((module, __unused_webpack_exports, __nested_webpack_require_877094__) => {
215674
+ /***/ ((module, __unused_webpack_exports, __nested_webpack_require_877100__) => {
215675
215675
 
215676
215676
  "use strict";
215677
215677
  // JS-YAML's default schema for `load` function.
@@ -215686,17 +215686,17 @@ module.exports = new Schema({
215686
215686
 
215687
215687
 
215688
215688
 
215689
- var Schema = __nested_webpack_require_877094__(6105);
215689
+ var Schema = __nested_webpack_require_877100__(6105);
215690
215690
 
215691
215691
 
215692
215692
  module.exports = Schema.DEFAULT = new Schema({
215693
215693
  include: [
215694
- __nested_webpack_require_877094__(596)
215694
+ __nested_webpack_require_877100__(596)
215695
215695
  ],
215696
215696
  explicit: [
215697
- __nested_webpack_require_877094__(5836),
215698
- __nested_webpack_require_877094__(6841),
215699
- __nested_webpack_require_877094__(8750)
215697
+ __nested_webpack_require_877100__(5836),
215698
+ __nested_webpack_require_877100__(6841),
215699
+ __nested_webpack_require_877100__(8750)
215700
215700
  ]
215701
215701
  });
215702
215702
 
@@ -215704,7 +215704,7 @@ module.exports = Schema.DEFAULT = new Schema({
215704
215704
  /***/ }),
215705
215705
 
215706
215706
  /***/ 596:
215707
- /***/ ((module, __unused_webpack_exports, __nested_webpack_require_877788__) => {
215707
+ /***/ ((module, __unused_webpack_exports, __nested_webpack_require_877794__) => {
215708
215708
 
215709
215709
  "use strict";
215710
215710
  // JS-YAML's default schema for `safeLoad` function.
@@ -215717,22 +215717,22 @@ module.exports = Schema.DEFAULT = new Schema({
215717
215717
 
215718
215718
 
215719
215719
 
215720
- var Schema = __nested_webpack_require_877788__(6105);
215720
+ var Schema = __nested_webpack_require_877794__(6105);
215721
215721
 
215722
215722
 
215723
215723
  module.exports = new Schema({
215724
215724
  include: [
215725
- __nested_webpack_require_877788__(1112)
215725
+ __nested_webpack_require_877794__(1112)
215726
215726
  ],
215727
215727
  implicit: [
215728
- __nested_webpack_require_877788__(7028),
215729
- __nested_webpack_require_877788__(7841)
215728
+ __nested_webpack_require_877794__(7028),
215729
+ __nested_webpack_require_877794__(7841)
215730
215730
  ],
215731
215731
  explicit: [
215732
- __nested_webpack_require_877788__(8675),
215733
- __nested_webpack_require_877788__(3498),
215734
- __nested_webpack_require_877788__(679),
215735
- __nested_webpack_require_877788__(7205)
215732
+ __nested_webpack_require_877794__(8675),
215733
+ __nested_webpack_require_877794__(3498),
215734
+ __nested_webpack_require_877794__(679),
215735
+ __nested_webpack_require_877794__(7205)
215736
215736
  ]
215737
215737
  });
215738
215738
 
@@ -215740,7 +215740,7 @@ module.exports = new Schema({
215740
215740
  /***/ }),
215741
215741
 
215742
215742
  /***/ 8441:
215743
- /***/ ((module, __unused_webpack_exports, __nested_webpack_require_878500__) => {
215743
+ /***/ ((module, __unused_webpack_exports, __nested_webpack_require_878506__) => {
215744
215744
 
215745
215745
  "use strict";
215746
215746
  // Standard YAML's Failsafe schema.
@@ -215750,14 +215750,14 @@ module.exports = new Schema({
215750
215750
 
215751
215751
 
215752
215752
 
215753
- var Schema = __nested_webpack_require_878500__(6105);
215753
+ var Schema = __nested_webpack_require_878506__(6105);
215754
215754
 
215755
215755
 
215756
215756
  module.exports = new Schema({
215757
215757
  explicit: [
215758
- __nested_webpack_require_878500__(5348),
215759
- __nested_webpack_require_878500__(7330),
215760
- __nested_webpack_require_878500__(293)
215758
+ __nested_webpack_require_878506__(5348),
215759
+ __nested_webpack_require_878506__(7330),
215760
+ __nested_webpack_require_878506__(293)
215761
215761
  ]
215762
215762
  });
215763
215763
 
@@ -215765,7 +215765,7 @@ module.exports = new Schema({
215765
215765
  /***/ }),
215766
215766
 
215767
215767
  /***/ 1486:
215768
- /***/ ((module, __unused_webpack_exports, __nested_webpack_require_878886__) => {
215768
+ /***/ ((module, __unused_webpack_exports, __nested_webpack_require_878892__) => {
215769
215769
 
215770
215770
  "use strict";
215771
215771
  // Standard YAML's JSON schema.
@@ -215779,18 +215779,18 @@ module.exports = new Schema({
215779
215779
 
215780
215780
 
215781
215781
 
215782
- var Schema = __nested_webpack_require_878886__(6105);
215782
+ var Schema = __nested_webpack_require_878892__(6105);
215783
215783
 
215784
215784
 
215785
215785
  module.exports = new Schema({
215786
215786
  include: [
215787
- __nested_webpack_require_878886__(8441)
215787
+ __nested_webpack_require_878892__(8441)
215788
215788
  ],
215789
215789
  implicit: [
215790
- __nested_webpack_require_878886__(9074),
215791
- __nested_webpack_require_878886__(4308),
215792
- __nested_webpack_require_878886__(1167),
215793
- __nested_webpack_require_878886__(7862)
215790
+ __nested_webpack_require_878892__(9074),
215791
+ __nested_webpack_require_878892__(4308),
215792
+ __nested_webpack_require_878892__(1167),
215793
+ __nested_webpack_require_878892__(7862)
215794
215794
  ]
215795
215795
  });
215796
215796
 
@@ -215798,12 +215798,12 @@ module.exports = new Schema({
215798
215798
  /***/ }),
215799
215799
 
215800
215800
  /***/ 6876:
215801
- /***/ ((module, __unused_webpack_exports, __nested_webpack_require_879584__) => {
215801
+ /***/ ((module, __unused_webpack_exports, __nested_webpack_require_879590__) => {
215802
215802
 
215803
215803
  "use strict";
215804
215804
 
215805
215805
 
215806
- var YAMLException = __nested_webpack_require_879584__(3237);
215806
+ var YAMLException = __nested_webpack_require_879590__(3237);
215807
215807
 
215808
215808
  var TYPE_CONSTRUCTOR_OPTIONS = [
215809
215809
  'kind',
@@ -215867,7 +215867,7 @@ module.exports = Type;
215867
215867
  /***/ }),
215868
215868
 
215869
215869
  /***/ 8675:
215870
- /***/ ((module, __unused_webpack_exports, __nested_webpack_require_881268__) => {
215870
+ /***/ ((module, __unused_webpack_exports, __nested_webpack_require_881274__) => {
215871
215871
 
215872
215872
  "use strict";
215873
215873
 
@@ -215882,7 +215882,7 @@ try {
215882
215882
  NodeBuffer = _require('buffer').Buffer;
215883
215883
  } catch (__) {}
215884
215884
 
215885
- var Type = __nested_webpack_require_881268__(6876);
215885
+ var Type = __nested_webpack_require_881274__(6876);
215886
215886
 
215887
215887
 
215888
215888
  // [ 64, 65, 66 ] -> [ padding, CR, LF ]
@@ -216013,12 +216013,12 @@ module.exports = new Type('tag:yaml.org,2002:binary', {
216013
216013
  /***/ }),
216014
216014
 
216015
216015
  /***/ 4308:
216016
- /***/ ((module, __unused_webpack_exports, __nested_webpack_require_884660__) => {
216016
+ /***/ ((module, __unused_webpack_exports, __nested_webpack_require_884666__) => {
216017
216017
 
216018
216018
  "use strict";
216019
216019
 
216020
216020
 
216021
- var Type = __nested_webpack_require_884660__(6876);
216021
+ var Type = __nested_webpack_require_884666__(6876);
216022
216022
 
216023
216023
  function resolveYamlBoolean(data) {
216024
216024
  if (data === null) return false;
@@ -216056,13 +216056,13 @@ module.exports = new Type('tag:yaml.org,2002:bool', {
216056
216056
  /***/ }),
216057
216057
 
216058
216058
  /***/ 7862:
216059
- /***/ ((module, __unused_webpack_exports, __nested_webpack_require_885733__) => {
216059
+ /***/ ((module, __unused_webpack_exports, __nested_webpack_require_885739__) => {
216060
216060
 
216061
216061
  "use strict";
216062
216062
 
216063
216063
 
216064
- var common = __nested_webpack_require_885733__(903);
216065
- var Type = __nested_webpack_require_885733__(6876);
216064
+ var common = __nested_webpack_require_885739__(903);
216065
+ var Type = __nested_webpack_require_885739__(6876);
216066
216066
 
216067
216067
  var YAML_FLOAT_PATTERN = new RegExp(
216068
216068
  // 2.5e4, 2.5 and integers
@@ -216180,13 +216180,13 @@ module.exports = new Type('tag:yaml.org,2002:float', {
216180
216180
  /***/ }),
216181
216181
 
216182
216182
  /***/ 1167:
216183
- /***/ ((module, __unused_webpack_exports, __nested_webpack_require_888679__) => {
216183
+ /***/ ((module, __unused_webpack_exports, __nested_webpack_require_888685__) => {
216184
216184
 
216185
216185
  "use strict";
216186
216186
 
216187
216187
 
216188
- var common = __nested_webpack_require_888679__(903);
216189
- var Type = __nested_webpack_require_888679__(6876);
216188
+ var common = __nested_webpack_require_888685__(903);
216189
+ var Type = __nested_webpack_require_888685__(6876);
216190
216190
 
216191
216191
  function isHexCode(c) {
216192
216192
  return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) ||
@@ -216361,7 +216361,7 @@ module.exports = new Type('tag:yaml.org,2002:int', {
216361
216361
  /***/ }),
216362
216362
 
216363
216363
  /***/ 8750:
216364
- /***/ ((module, __unused_webpack_exports, __nested_webpack_require_892851__) => {
216364
+ /***/ ((module, __unused_webpack_exports, __nested_webpack_require_892857__) => {
216365
216365
 
216366
216366
  "use strict";
216367
216367
 
@@ -216384,7 +216384,7 @@ try {
216384
216384
  if (typeof window !== 'undefined') esprima = window.esprima;
216385
216385
  }
216386
216386
 
216387
- var Type = __nested_webpack_require_892851__(6876);
216387
+ var Type = __nested_webpack_require_892857__(6876);
216388
216388
 
216389
216389
  function resolveJavascriptFunction(data) {
216390
216390
  if (data === null) return false;
@@ -216461,12 +216461,12 @@ module.exports = new Type('tag:yaml.org,2002:js/function', {
216461
216461
  /***/ }),
216462
216462
 
216463
216463
  /***/ 6841:
216464
- /***/ ((module, __unused_webpack_exports, __nested_webpack_require_895748__) => {
216464
+ /***/ ((module, __unused_webpack_exports, __nested_webpack_require_895754__) => {
216465
216465
 
216466
216466
  "use strict";
216467
216467
 
216468
216468
 
216469
- var Type = __nested_webpack_require_895748__(6876);
216469
+ var Type = __nested_webpack_require_895754__(6876);
216470
216470
 
216471
216471
  function resolveJavascriptRegExp(data) {
216472
216472
  if (data === null) return false;
@@ -216529,12 +216529,12 @@ module.exports = new Type('tag:yaml.org,2002:js/regexp', {
216529
216529
  /***/ }),
216530
216530
 
216531
216531
  /***/ 5836:
216532
- /***/ ((module, __unused_webpack_exports, __nested_webpack_require_897419__) => {
216532
+ /***/ ((module, __unused_webpack_exports, __nested_webpack_require_897425__) => {
216533
216533
 
216534
216534
  "use strict";
216535
216535
 
216536
216536
 
216537
- var Type = __nested_webpack_require_897419__(6876);
216537
+ var Type = __nested_webpack_require_897425__(6876);
216538
216538
 
216539
216539
  function resolveJavascriptUndefined() {
216540
216540
  return true;
@@ -216565,12 +216565,12 @@ module.exports = new Type('tag:yaml.org,2002:js/undefined', {
216565
216565
  /***/ }),
216566
216566
 
216567
216567
  /***/ 293:
216568
- /***/ ((module, __unused_webpack_exports, __nested_webpack_require_898090__) => {
216568
+ /***/ ((module, __unused_webpack_exports, __nested_webpack_require_898096__) => {
216569
216569
 
216570
216570
  "use strict";
216571
216571
 
216572
216572
 
216573
- var Type = __nested_webpack_require_898090__(6876);
216573
+ var Type = __nested_webpack_require_898096__(6876);
216574
216574
 
216575
216575
  module.exports = new Type('tag:yaml.org,2002:map', {
216576
216576
  kind: 'mapping',
@@ -216581,12 +216581,12 @@ module.exports = new Type('tag:yaml.org,2002:map', {
216581
216581
  /***/ }),
216582
216582
 
216583
216583
  /***/ 7841:
216584
- /***/ ((module, __unused_webpack_exports, __nested_webpack_require_898382__) => {
216584
+ /***/ ((module, __unused_webpack_exports, __nested_webpack_require_898388__) => {
216585
216585
 
216586
216586
  "use strict";
216587
216587
 
216588
216588
 
216589
- var Type = __nested_webpack_require_898382__(6876);
216589
+ var Type = __nested_webpack_require_898388__(6876);
216590
216590
 
216591
216591
  function resolveYamlMerge(data) {
216592
216592
  return data === '<<' || data === null;
@@ -216601,12 +216601,12 @@ module.exports = new Type('tag:yaml.org,2002:merge', {
216601
216601
  /***/ }),
216602
216602
 
216603
216603
  /***/ 9074:
216604
- /***/ ((module, __unused_webpack_exports, __nested_webpack_require_898714__) => {
216604
+ /***/ ((module, __unused_webpack_exports, __nested_webpack_require_898720__) => {
216605
216605
 
216606
216606
  "use strict";
216607
216607
 
216608
216608
 
216609
- var Type = __nested_webpack_require_898714__(6876);
216609
+ var Type = __nested_webpack_require_898720__(6876);
216610
216610
 
216611
216611
  function resolveYamlNull(data) {
216612
216612
  if (data === null) return true;
@@ -216643,12 +216643,12 @@ module.exports = new Type('tag:yaml.org,2002:null', {
216643
216643
  /***/ }),
216644
216644
 
216645
216645
  /***/ 3498:
216646
- /***/ ((module, __unused_webpack_exports, __nested_webpack_require_899577__) => {
216646
+ /***/ ((module, __unused_webpack_exports, __nested_webpack_require_899583__) => {
216647
216647
 
216648
216648
  "use strict";
216649
216649
 
216650
216650
 
216651
- var Type = __nested_webpack_require_899577__(6876);
216651
+ var Type = __nested_webpack_require_899583__(6876);
216652
216652
 
216653
216653
  var _hasOwnProperty = Object.prototype.hasOwnProperty;
216654
216654
  var _toString = Object.prototype.toString;
@@ -216695,12 +216695,12 @@ module.exports = new Type('tag:yaml.org,2002:omap', {
216695
216695
  /***/ }),
216696
216696
 
216697
216697
  /***/ 679:
216698
- /***/ ((module, __unused_webpack_exports, __nested_webpack_require_900701__) => {
216698
+ /***/ ((module, __unused_webpack_exports, __nested_webpack_require_900707__) => {
216699
216699
 
216700
216700
  "use strict";
216701
216701
 
216702
216702
 
216703
- var Type = __nested_webpack_require_900701__(6876);
216703
+ var Type = __nested_webpack_require_900707__(6876);
216704
216704
 
216705
216705
  var _toString = Object.prototype.toString;
216706
216706
 
@@ -216756,12 +216756,12 @@ module.exports = new Type('tag:yaml.org,2002:pairs', {
216756
216756
  /***/ }),
216757
216757
 
216758
216758
  /***/ 7330:
216759
- /***/ ((module, __unused_webpack_exports, __nested_webpack_require_901887__) => {
216759
+ /***/ ((module, __unused_webpack_exports, __nested_webpack_require_901893__) => {
216760
216760
 
216761
216761
  "use strict";
216762
216762
 
216763
216763
 
216764
- var Type = __nested_webpack_require_901887__(6876);
216764
+ var Type = __nested_webpack_require_901893__(6876);
216765
216765
 
216766
216766
  module.exports = new Type('tag:yaml.org,2002:seq', {
216767
216767
  kind: 'sequence',
@@ -216772,12 +216772,12 @@ module.exports = new Type('tag:yaml.org,2002:seq', {
216772
216772
  /***/ }),
216773
216773
 
216774
216774
  /***/ 7205:
216775
- /***/ ((module, __unused_webpack_exports, __nested_webpack_require_902180__) => {
216775
+ /***/ ((module, __unused_webpack_exports, __nested_webpack_require_902186__) => {
216776
216776
 
216777
216777
  "use strict";
216778
216778
 
216779
216779
 
216780
- var Type = __nested_webpack_require_902180__(6876);
216780
+ var Type = __nested_webpack_require_902186__(6876);
216781
216781
 
216782
216782
  var _hasOwnProperty = Object.prototype.hasOwnProperty;
216783
216783
 
@@ -216809,12 +216809,12 @@ module.exports = new Type('tag:yaml.org,2002:set', {
216809
216809
  /***/ }),
216810
216810
 
216811
216811
  /***/ 5348:
216812
- /***/ ((module, __unused_webpack_exports, __nested_webpack_require_902829__) => {
216812
+ /***/ ((module, __unused_webpack_exports, __nested_webpack_require_902835__) => {
216813
216813
 
216814
216814
  "use strict";
216815
216815
 
216816
216816
 
216817
- var Type = __nested_webpack_require_902829__(6876);
216817
+ var Type = __nested_webpack_require_902835__(6876);
216818
216818
 
216819
216819
  module.exports = new Type('tag:yaml.org,2002:str', {
216820
216820
  kind: 'scalar',
@@ -216825,12 +216825,12 @@ module.exports = new Type('tag:yaml.org,2002:str', {
216825
216825
  /***/ }),
216826
216826
 
216827
216827
  /***/ 7028:
216828
- /***/ ((module, __unused_webpack_exports, __nested_webpack_require_903120__) => {
216828
+ /***/ ((module, __unused_webpack_exports, __nested_webpack_require_903126__) => {
216829
216829
 
216830
216830
  "use strict";
216831
216831
 
216832
216832
 
216833
- var Type = __nested_webpack_require_903120__(6876);
216833
+ var Type = __nested_webpack_require_903126__(6876);
216834
216834
 
216835
216835
  var YAML_DATE_REGEXP = new RegExp(
216836
216836
  '^([0-9][0-9][0-9][0-9])' + // [1] year
@@ -216921,7 +216921,7 @@ module.exports = new Type('tag:yaml.org,2002:timestamp', {
216921
216921
  /***/ }),
216922
216922
 
216923
216923
  /***/ 7276:
216924
- /***/ (function(__unused_webpack_module, exports, __nested_webpack_require_905801__) {
216924
+ /***/ (function(__unused_webpack_module, exports, __nested_webpack_require_905807__) {
216925
216925
 
216926
216926
  "use strict";
216927
216927
 
@@ -216930,13 +216930,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
216930
216930
  };
216931
216931
  Object.defineProperty(exports, "__esModule", ({ value: true }));
216932
216932
  exports.updateRoutesManifest = exports.updateFunctionsManifest = exports.convertRuntimeToPlugin = void 0;
216933
- const fs_extra_1 = __importDefault(__nested_webpack_require_905801__(5392));
216934
- const path_1 = __nested_webpack_require_905801__(5622);
216935
- const glob_1 = __importDefault(__nested_webpack_require_905801__(4240));
216936
- const normalize_path_1 = __nested_webpack_require_905801__(6261);
216937
- const detect_builders_1 = __nested_webpack_require_905801__(4246);
216938
- const lambda_1 = __nested_webpack_require_905801__(6721);
216939
- const minimatch_1 = __importDefault(__nested_webpack_require_905801__(9566));
216933
+ const fs_extra_1 = __importDefault(__nested_webpack_require_905807__(5392));
216934
+ const path_1 = __nested_webpack_require_905807__(5622);
216935
+ const glob_1 = __importDefault(__nested_webpack_require_905807__(4240));
216936
+ const normalize_path_1 = __nested_webpack_require_905807__(6261);
216937
+ const lambda_1 = __nested_webpack_require_905807__(6721);
216938
+ const minimatch_1 = __importDefault(__nested_webpack_require_905807__(9566));
216940
216939
  /**
216941
216940
  * Convert legacy Runtime to a Plugin.
216942
216941
  * @param buildRuntime - a legacy build() function from a Runtime
@@ -216945,13 +216944,12 @@ const minimatch_1 = __importDefault(__nested_webpack_require_905801__(9566));
216945
216944
  function convertRuntimeToPlugin(buildRuntime, ext) {
216946
216945
  // This `build()` signature should match `plugin.build()` signature in `vercel build`.
216947
216946
  return async function build({ vercelConfig, workPath, }) {
216948
- var _a;
216949
216947
  const opts = { cwd: workPath };
216950
216948
  const files = await glob_1.default('**', opts);
216951
216949
  delete files['vercel.json']; // Builders/Runtimes didn't have vercel.json
216952
216950
  const entrypoints = await glob_1.default(`api/**/*${ext}`, opts);
216953
216951
  const pages = {};
216954
- const { functions = {}, cleanUrls, trailingSlash } = vercelConfig;
216952
+ const { functions = {} } = vercelConfig;
216955
216953
  const traceDir = path_1.join(workPath, '.output', 'runtime-traced-files');
216956
216954
  await fs_extra_1.default.ensureDir(traceDir);
216957
216955
  for (const entrypoint of Object.keys(entrypoints)) {
@@ -216966,6 +216964,9 @@ function convertRuntimeToPlugin(buildRuntime, ext) {
216966
216964
  includeFiles: config.includeFiles,
216967
216965
  excludeFiles: config.excludeFiles,
216968
216966
  },
216967
+ meta: {
216968
+ avoidTopLevelInstall: true,
216969
+ },
216969
216970
  });
216970
216971
  pages[entrypoint] = {
216971
216972
  handler: output.handler,
@@ -216974,7 +216975,7 @@ function convertRuntimeToPlugin(buildRuntime, ext) {
216974
216975
  maxDuration: output.maxDuration,
216975
216976
  environment: output.environment,
216976
216977
  allowQuery: output.allowQuery,
216977
- regions: output.regions,
216978
+ //regions: output.regions,
216978
216979
  };
216979
216980
  // @ts-ignore This symbol is a private API
216980
216981
  const lambdaFiles = output[lambda_1.FILES_SYMBOL];
@@ -217008,53 +217009,6 @@ function convertRuntimeToPlugin(buildRuntime, ext) {
217008
217009
  await fs_extra_1.default.writeFile(nft, json);
217009
217010
  }
217010
217011
  await updateFunctionsManifest({ vercelConfig, workPath, pages });
217011
- const { warnings, errors,
217012
- //defaultRoutes,
217013
- redirectRoutes,
217014
- //rewriteRoutes,
217015
- dynamicRoutesWithKeys,
217016
- // errorRoutes, already handled by pages404
217017
- } = await detect_builders_1.detectBuilders(Object.keys(files), null, {
217018
- tag: 'latest',
217019
- functions: functions,
217020
- projectSettings: undefined,
217021
- featHandleMiss: true,
217022
- cleanUrls,
217023
- trailingSlash,
217024
- });
217025
- if (errors) {
217026
- throw new Error(errors[0].message);
217027
- }
217028
- if (warnings) {
217029
- warnings.forEach(warning => console.warn(warning.message, warning.link));
217030
- }
217031
- const redirects = (_a = redirectRoutes === null || redirectRoutes === void 0 ? void 0 : redirectRoutes.filter(r => r.src && 'headers' in r)) === null || _a === void 0 ? void 0 : _a.map(r => {
217032
- var _a;
217033
- return ({
217034
- source: r.src || '',
217035
- destination: 'headers' in r && ((_a = r.headers) === null || _a === void 0 ? void 0 : _a.Location) ? r.headers.Location : '',
217036
- statusCode: 'status' in r && r.status ? r.status : 307,
217037
- regex: r.src || '',
217038
- });
217039
- });
217040
- const dynamicRoutes = dynamicRoutesWithKeys === null || dynamicRoutesWithKeys === void 0 ? void 0 : dynamicRoutesWithKeys.map(r => {
217041
- const keys = Object.keys(r.routeKeys);
217042
- return {
217043
- page: '/' + r.fileName.slice(0, -ext.length),
217044
- regex: r.regex,
217045
- routeKeys: r.routeKeys,
217046
- namedRegex: r.regex
217047
- .split('([^/]+)')
217048
- .map((str, i) => str + (keys[i] ? `(?<${keys[i]}>[^/]+)` : ''))
217049
- .join(''),
217050
- };
217051
- });
217052
- await updateRoutesManifest({
217053
- workPath,
217054
- redirects,
217055
- rewrites: [],
217056
- dynamicRoutes,
217057
- });
217058
217012
  };
217059
217013
  }
217060
217014
  exports.convertRuntimeToPlugin = convertRuntimeToPlugin;
@@ -217151,12 +217105,12 @@ exports.updateRoutesManifest = updateRoutesManifest;
217151
217105
  /***/ }),
217152
217106
 
217153
217107
  /***/ 1868:
217154
- /***/ ((__unused_webpack_module, exports, __nested_webpack_require_915404__) => {
217108
+ /***/ ((__unused_webpack_module, exports, __nested_webpack_require_913471__) => {
217155
217109
 
217156
217110
  "use strict";
217157
217111
 
217158
217112
  Object.defineProperty(exports, "__esModule", ({ value: true }));
217159
- const _1 = __nested_webpack_require_915404__(2855);
217113
+ const _1 = __nested_webpack_require_913471__(2855);
217160
217114
  function debug(message, ...additional) {
217161
217115
  if (_1.getPlatformEnv('BUILDER_DEBUG')) {
217162
217116
  console.log(message, ...additional);
@@ -217168,7 +217122,7 @@ exports.default = debug;
217168
217122
  /***/ }),
217169
217123
 
217170
217124
  /***/ 4246:
217171
- /***/ (function(__unused_webpack_module, exports, __nested_webpack_require_915789__) {
217125
+ /***/ (function(__unused_webpack_module, exports, __nested_webpack_require_913856__) {
217172
217126
 
217173
217127
  "use strict";
217174
217128
 
@@ -217177,11 +217131,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
217177
217131
  };
217178
217132
  Object.defineProperty(exports, "__esModule", ({ value: true }));
217179
217133
  exports.detectBuilders = exports.detectOutputDirectory = exports.detectApiDirectory = exports.detectApiExtensions = exports.sortFiles = void 0;
217180
- const minimatch_1 = __importDefault(__nested_webpack_require_915789__(9566));
217181
- const semver_1 = __nested_webpack_require_915789__(2879);
217182
- const path_1 = __nested_webpack_require_915789__(5622);
217183
- const frameworks_1 = __importDefault(__nested_webpack_require_915789__(8438));
217184
- const _1 = __nested_webpack_require_915789__(2855);
217134
+ const minimatch_1 = __importDefault(__nested_webpack_require_913856__(9566));
217135
+ const semver_1 = __nested_webpack_require_913856__(2879);
217136
+ const path_1 = __nested_webpack_require_913856__(5622);
217137
+ const frameworks_1 = __importDefault(__nested_webpack_require_913856__(8438));
217138
+ const _1 = __nested_webpack_require_913856__(2855);
217185
217139
  const slugToFramework = new Map(frameworks_1.default.map(f => [f.slug, f]));
217186
217140
  // We need to sort the file paths by alphabet to make
217187
217141
  // sure the routes stay in the same order e.g. for deduping
@@ -217239,7 +217193,7 @@ async function detectBuilders(files, pkg, options = {}) {
217239
217193
  redirectRoutes: null,
217240
217194
  rewriteRoutes: null,
217241
217195
  errorRoutes: null,
217242
- dynamicRoutesWithKeys: null,
217196
+ limitedRoutes: null,
217243
217197
  };
217244
217198
  }
217245
217199
  const sortedFiles = files.sort(sortFiles);
@@ -217273,12 +217227,11 @@ async function detectBuilders(files, pkg, options = {}) {
217273
217227
  let fallbackEntrypoint = null;
217274
217228
  const apiRoutes = [];
217275
217229
  const dynamicRoutes = [];
217276
- const dynamicRoutesWithKeys = [];
217277
217230
  // API
217278
217231
  for (const fileName of sortedFiles) {
217279
217232
  const apiBuilder = maybeGetApiBuilder(fileName, apiMatches, options);
217280
217233
  if (apiBuilder) {
217281
- const { routeError, apiRoute, isDynamic, routeKeys } = getApiRoute(fileName, apiSortedFiles, options, absolutePathCache);
217234
+ const { routeError, apiRoute, isDynamic } = getApiRoute(fileName, apiSortedFiles, options, absolutePathCache);
217282
217235
  if (routeError) {
217283
217236
  return {
217284
217237
  builders: null,
@@ -217288,18 +217241,13 @@ async function detectBuilders(files, pkg, options = {}) {
217288
217241
  redirectRoutes: null,
217289
217242
  rewriteRoutes: null,
217290
217243
  errorRoutes: null,
217291
- dynamicRoutesWithKeys: null,
217244
+ limitedRoutes: null,
217292
217245
  };
217293
217246
  }
217294
217247
  if (apiRoute) {
217295
217248
  apiRoutes.push(apiRoute);
217296
217249
  if (isDynamic) {
217297
217250
  dynamicRoutes.push(apiRoute);
217298
- dynamicRoutesWithKeys.push({
217299
- fileName,
217300
- regex: apiRoute.src,
217301
- routeKeys,
217302
- });
217303
217251
  }
217304
217252
  }
217305
217253
  addToUsedFunctions(apiBuilder);
@@ -217348,7 +217296,7 @@ async function detectBuilders(files, pkg, options = {}) {
217348
217296
  defaultRoutes: null,
217349
217297
  rewriteRoutes: null,
217350
217298
  errorRoutes: null,
217351
- dynamicRoutesWithKeys: null,
217299
+ limitedRoutes: null,
217352
217300
  };
217353
217301
  }
217354
217302
  // If `outputDirectory` is an empty string,
@@ -217385,7 +217333,7 @@ async function detectBuilders(files, pkg, options = {}) {
217385
217333
  defaultRoutes: null,
217386
217334
  rewriteRoutes: null,
217387
217335
  errorRoutes: null,
217388
- dynamicRoutesWithKeys: null,
217336
+ limitedRoutes: null,
217389
217337
  };
217390
217338
  }
217391
217339
  const builders = [];
@@ -217404,7 +217352,7 @@ async function detectBuilders(files, pkg, options = {}) {
217404
217352
  });
217405
217353
  }
217406
217354
  }
217407
- const routesResult = getRouteResult(apiRoutes, dynamicRoutes, usedOutputDirectory, apiBuilders, frontendBuilder, options);
217355
+ const routesResult = getRouteResult(pkg, apiRoutes, dynamicRoutes, usedOutputDirectory, apiBuilders, frontendBuilder, options);
217408
217356
  return {
217409
217357
  warnings,
217410
217358
  builders: builders.length ? builders : null,
@@ -217413,7 +217361,7 @@ async function detectBuilders(files, pkg, options = {}) {
217413
217361
  defaultRoutes: routesResult.defaultRoutes,
217414
217362
  rewriteRoutes: routesResult.rewriteRoutes,
217415
217363
  errorRoutes: routesResult.errorRoutes,
217416
- dynamicRoutesWithKeys,
217364
+ limitedRoutes: routesResult.limitedRoutes,
217417
217365
  };
217418
217366
  }
217419
217367
  exports.detectBuilders = detectBuilders;
@@ -217668,7 +217616,6 @@ function getApiRoute(fileName, sortedFiles, options, absolutePathCache) {
217668
217616
  return {
217669
217617
  apiRoute: null,
217670
217618
  isDynamic: false,
217671
- routeKeys: {},
217672
217619
  routeError: {
217673
217620
  code: 'conflicting_path_segment',
217674
217621
  message: `The segment "${conflictingSegment}" occurs more than ` +
@@ -217683,7 +217630,6 @@ function getApiRoute(fileName, sortedFiles, options, absolutePathCache) {
217683
217630
  return {
217684
217631
  apiRoute: null,
217685
217632
  isDynamic: false,
217686
- routeKeys: {},
217687
217633
  routeError: {
217688
217634
  code: 'conflicting_file_path',
217689
217635
  message: `Two or more files have conflicting paths or names. ` +
@@ -217696,7 +217642,6 @@ function getApiRoute(fileName, sortedFiles, options, absolutePathCache) {
217696
217642
  return {
217697
217643
  apiRoute: out.route,
217698
217644
  isDynamic: out.isDynamic,
217699
- routeKeys: out.routeKeys,
217700
217645
  routeError: null,
217701
217646
  };
217702
217647
  }
@@ -217806,7 +217751,6 @@ function createRouteFromPath(filePath, featHandleMiss, cleanUrls) {
217806
217751
  const parts = filePath.split('/');
217807
217752
  let counter = 1;
217808
217753
  const query = [];
217809
- const routeKeys = {};
217810
217754
  let isDynamic = false;
217811
217755
  const srcParts = parts.map((segment, i) => {
217812
217756
  const name = getSegmentName(segment);
@@ -217814,7 +217758,6 @@ function createRouteFromPath(filePath, featHandleMiss, cleanUrls) {
217814
217758
  if (name !== null) {
217815
217759
  // We can't use `URLSearchParams` because `$` would get escaped
217816
217760
  query.push(`${name}=$${counter++}`);
217817
- routeKeys[name] = name;
217818
217761
  isDynamic = true;
217819
217762
  return `([^/]+)`;
217820
217763
  }
@@ -217857,25 +217800,53 @@ function createRouteFromPath(filePath, featHandleMiss, cleanUrls) {
217857
217800
  dest: `/${filePath}${queryString}`,
217858
217801
  };
217859
217802
  }
217860
- return { route, isDynamic, routeKeys };
217803
+ return { route, isDynamic };
217861
217804
  }
217862
- function getRouteResult(apiRoutes, dynamicRoutes, outputDirectory, apiBuilders, frontendBuilder, options) {
217805
+ function getRouteResult(pkg, apiRoutes, dynamicRoutes, outputDirectory, apiBuilders, frontendBuilder, options) {
217863
217806
  var _a, _b;
217807
+ const deps = Object.assign({}, pkg === null || pkg === void 0 ? void 0 : pkg.dependencies, pkg === null || pkg === void 0 ? void 0 : pkg.devDependencies);
217864
217808
  const defaultRoutes = [];
217865
217809
  const redirectRoutes = [];
217866
217810
  const rewriteRoutes = [];
217867
217811
  const errorRoutes = [];
217812
+ const limitedRoutes = {
217813
+ defaultRoutes: [],
217814
+ redirectRoutes: [],
217815
+ rewriteRoutes: [],
217816
+ };
217868
217817
  const framework = ((_a = frontendBuilder === null || frontendBuilder === void 0 ? void 0 : frontendBuilder.config) === null || _a === void 0 ? void 0 : _a.framework) || '';
217869
217818
  const isNextjs = framework === 'nextjs' || _1.isOfficialRuntime('next', frontendBuilder === null || frontendBuilder === void 0 ? void 0 : frontendBuilder.use);
217870
217819
  const ignoreRuntimes = (_b = slugToFramework.get(framework)) === null || _b === void 0 ? void 0 : _b.ignoreRuntimes;
217871
217820
  if (apiRoutes && apiRoutes.length > 0) {
217872
217821
  if (options.featHandleMiss) {
217822
+ // Exclude extension names if the corresponding plugin is not found in package.json
217823
+ // detectBuilders({ignoreRoutesForBuilders: ['@vercel/python']})
217824
+ // return a copy of routes.
217825
+ // We should exclud errorRoutes and
217873
217826
  const extSet = detectApiExtensions(apiBuilders);
217827
+ const withTag = options.tag ? `@${options.tag}` : '';
217828
+ const extSetLimited = detectApiExtensions(apiBuilders.filter(b => {
217829
+ if (b.use === `@vercel/python${withTag}` &&
217830
+ !('vercel-plugin-python' in deps)) {
217831
+ return false;
217832
+ }
217833
+ if (b.use === `@vercel/go${withTag}` &&
217834
+ !('vercel-plugin-go' in deps)) {
217835
+ return false;
217836
+ }
217837
+ if (b.use === `@vercel/ruby${withTag}` &&
217838
+ !('vercel-plugin-ruby' in deps)) {
217839
+ return false;
217840
+ }
217841
+ return true;
217842
+ }));
217874
217843
  if (extSet.size > 0) {
217875
- const exts = Array.from(extSet)
217844
+ const extGroup = `(?:\\.(?:${Array.from(extSet)
217876
217845
  .map(ext => ext.slice(1))
217877
- .join('|');
217878
- const extGroup = `(?:\\.(?:${exts}))`;
217846
+ .join('|')}))`;
217847
+ const extGroupLimited = `(?:\\.(?:${Array.from(extSetLimited)
217848
+ .map(ext => ext.slice(1))
217849
+ .join('|')}))`;
217879
217850
  if (options.cleanUrls) {
217880
217851
  redirectRoutes.push({
217881
217852
  src: `^/(api(?:.+)?)/index${extGroup}?/?$`,
@@ -217889,6 +217860,18 @@ function getRouteResult(apiRoutes, dynamicRoutes, outputDirectory, apiBuilders,
217889
217860
  },
217890
217861
  status: 308,
217891
217862
  });
217863
+ limitedRoutes.redirectRoutes.push({
217864
+ src: `^/(api(?:.+)?)/index${extGroupLimited}?/?$`,
217865
+ headers: { Location: options.trailingSlash ? '/$1/' : '/$1' },
217866
+ status: 308,
217867
+ });
217868
+ limitedRoutes.redirectRoutes.push({
217869
+ src: `^/api/(.+)${extGroupLimited}/?$`,
217870
+ headers: {
217871
+ Location: options.trailingSlash ? '/api/$1/' : '/api/$1',
217872
+ },
217873
+ status: 308,
217874
+ });
217892
217875
  }
217893
217876
  else {
217894
217877
  defaultRoutes.push({ handle: 'miss' });
@@ -217897,9 +217880,16 @@ function getRouteResult(apiRoutes, dynamicRoutes, outputDirectory, apiBuilders,
217897
217880
  dest: '/api/$1',
217898
217881
  check: true,
217899
217882
  });
217883
+ limitedRoutes.defaultRoutes.push({ handle: 'miss' });
217884
+ limitedRoutes.defaultRoutes.push({
217885
+ src: `^/api/(.+)${extGroupLimited}$`,
217886
+ dest: '/api/$1',
217887
+ check: true,
217888
+ });
217900
217889
  }
217901
217890
  }
217902
217891
  rewriteRoutes.push(...dynamicRoutes);
217892
+ limitedRoutes.rewriteRoutes.push(...dynamicRoutes);
217903
217893
  if (typeof ignoreRuntimes === 'undefined') {
217904
217894
  // This route is only necessary to hide the directory listing
217905
217895
  // to avoid enumerating serverless function names.
@@ -217944,6 +217934,7 @@ function getRouteResult(apiRoutes, dynamicRoutes, outputDirectory, apiBuilders,
217944
217934
  redirectRoutes,
217945
217935
  rewriteRoutes,
217946
217936
  errorRoutes,
217937
+ limitedRoutes,
217947
217938
  };
217948
217939
  }
217949
217940
  function sortFilesBySegmentCount(fileA, fileB) {
@@ -218203,7 +218194,7 @@ function getSuggestion(topLevelProp, additionalProperty) {
218203
218194
  /***/ }),
218204
218195
 
218205
218196
  /***/ 2397:
218206
- /***/ (function(__unused_webpack_module, exports, __nested_webpack_require_953235__) {
218197
+ /***/ (function(__unused_webpack_module, exports, __nested_webpack_require_953240__) {
218207
218198
 
218208
218199
  "use strict";
218209
218200
 
@@ -218211,8 +218202,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
218211
218202
  return (mod && mod.__esModule) ? mod : { "default": mod };
218212
218203
  };
218213
218204
  Object.defineProperty(exports, "__esModule", ({ value: true }));
218214
- const assert_1 = __importDefault(__nested_webpack_require_953235__(2357));
218215
- const into_stream_1 = __importDefault(__nested_webpack_require_953235__(6130));
218205
+ const assert_1 = __importDefault(__nested_webpack_require_953240__(2357));
218206
+ const into_stream_1 = __importDefault(__nested_webpack_require_953240__(6130));
218216
218207
  class FileBlob {
218217
218208
  constructor({ mode = 0o100644, contentType, data }) {
218218
218209
  assert_1.default(typeof mode === 'number');
@@ -218244,7 +218235,7 @@ exports.default = FileBlob;
218244
218235
  /***/ }),
218245
218236
 
218246
218237
  /***/ 9331:
218247
- /***/ (function(__unused_webpack_module, exports, __nested_webpack_require_954687__) {
218238
+ /***/ (function(__unused_webpack_module, exports, __nested_webpack_require_954692__) {
218248
218239
 
218249
218240
  "use strict";
218250
218241
 
@@ -218252,11 +218243,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
218252
218243
  return (mod && mod.__esModule) ? mod : { "default": mod };
218253
218244
  };
218254
218245
  Object.defineProperty(exports, "__esModule", ({ value: true }));
218255
- const assert_1 = __importDefault(__nested_webpack_require_954687__(2357));
218256
- const fs_extra_1 = __importDefault(__nested_webpack_require_954687__(5392));
218257
- const multistream_1 = __importDefault(__nested_webpack_require_954687__(8179));
218258
- const path_1 = __importDefault(__nested_webpack_require_954687__(5622));
218259
- const async_sema_1 = __importDefault(__nested_webpack_require_954687__(5758));
218246
+ const assert_1 = __importDefault(__nested_webpack_require_954692__(2357));
218247
+ const fs_extra_1 = __importDefault(__nested_webpack_require_954692__(5392));
218248
+ const multistream_1 = __importDefault(__nested_webpack_require_954692__(8179));
218249
+ const path_1 = __importDefault(__nested_webpack_require_954692__(5622));
218250
+ const async_sema_1 = __importDefault(__nested_webpack_require_954692__(5758));
218260
218251
  const semaToPreventEMFILE = new async_sema_1.default(20);
218261
218252
  class FileFsRef {
218262
218253
  constructor({ mode = 0o100644, contentType, fsPath }) {
@@ -218322,7 +218313,7 @@ exports.default = FileFsRef;
218322
218313
  /***/ }),
218323
218314
 
218324
218315
  /***/ 5187:
218325
- /***/ (function(__unused_webpack_module, exports, __nested_webpack_require_957491__) {
218316
+ /***/ (function(__unused_webpack_module, exports, __nested_webpack_require_957496__) {
218326
218317
 
218327
218318
  "use strict";
218328
218319
 
@@ -218330,11 +218321,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
218330
218321
  return (mod && mod.__esModule) ? mod : { "default": mod };
218331
218322
  };
218332
218323
  Object.defineProperty(exports, "__esModule", ({ value: true }));
218333
- const assert_1 = __importDefault(__nested_webpack_require_957491__(2357));
218334
- const node_fetch_1 = __importDefault(__nested_webpack_require_957491__(2197));
218335
- const multistream_1 = __importDefault(__nested_webpack_require_957491__(8179));
218336
- const async_retry_1 = __importDefault(__nested_webpack_require_957491__(3691));
218337
- const async_sema_1 = __importDefault(__nested_webpack_require_957491__(5758));
218324
+ const assert_1 = __importDefault(__nested_webpack_require_957496__(2357));
218325
+ const node_fetch_1 = __importDefault(__nested_webpack_require_957496__(2197));
218326
+ const multistream_1 = __importDefault(__nested_webpack_require_957496__(8179));
218327
+ const async_retry_1 = __importDefault(__nested_webpack_require_957496__(3691));
218328
+ const async_sema_1 = __importDefault(__nested_webpack_require_957496__(5758));
218338
218329
  const semaToDownloadFromS3 = new async_sema_1.default(5);
218339
218330
  class BailableError extends Error {
218340
218331
  constructor(...args) {
@@ -218415,7 +218406,7 @@ exports.default = FileRef;
218415
218406
  /***/ }),
218416
218407
 
218417
218408
  /***/ 1611:
218418
- /***/ (function(__unused_webpack_module, exports, __nested_webpack_require_960892__) {
218409
+ /***/ (function(__unused_webpack_module, exports, __nested_webpack_require_960897__) {
218419
218410
 
218420
218411
  "use strict";
218421
218412
 
@@ -218424,10 +218415,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
218424
218415
  };
218425
218416
  Object.defineProperty(exports, "__esModule", ({ value: true }));
218426
218417
  exports.isSymbolicLink = void 0;
218427
- const path_1 = __importDefault(__nested_webpack_require_960892__(5622));
218428
- const debug_1 = __importDefault(__nested_webpack_require_960892__(1868));
218429
- const file_fs_ref_1 = __importDefault(__nested_webpack_require_960892__(9331));
218430
- const fs_extra_1 = __nested_webpack_require_960892__(5392);
218418
+ const path_1 = __importDefault(__nested_webpack_require_960897__(5622));
218419
+ const debug_1 = __importDefault(__nested_webpack_require_960897__(1868));
218420
+ const file_fs_ref_1 = __importDefault(__nested_webpack_require_960897__(9331));
218421
+ const fs_extra_1 = __nested_webpack_require_960897__(5392);
218431
218422
  const S_IFMT = 61440; /* 0170000 type of file */
218432
218423
  const S_IFLNK = 40960; /* 0120000 symbolic link */
218433
218424
  function isSymbolicLink(mode) {
@@ -218489,14 +218480,14 @@ exports.default = download;
218489
218480
  /***/ }),
218490
218481
 
218491
218482
  /***/ 3838:
218492
- /***/ ((__unused_webpack_module, exports, __nested_webpack_require_963717__) => {
218483
+ /***/ ((__unused_webpack_module, exports, __nested_webpack_require_963722__) => {
218493
218484
 
218494
218485
  "use strict";
218495
218486
 
218496
218487
  Object.defineProperty(exports, "__esModule", ({ value: true }));
218497
- const path_1 = __nested_webpack_require_963717__(5622);
218498
- const os_1 = __nested_webpack_require_963717__(2087);
218499
- const fs_extra_1 = __nested_webpack_require_963717__(5392);
218488
+ const path_1 = __nested_webpack_require_963722__(5622);
218489
+ const os_1 = __nested_webpack_require_963722__(2087);
218490
+ const fs_extra_1 = __nested_webpack_require_963722__(5392);
218500
218491
  async function getWritableDirectory() {
218501
218492
  const name = Math.floor(Math.random() * 0x7fffffff).toString(16);
218502
218493
  const directory = path_1.join(os_1.tmpdir(), name);
@@ -218509,7 +218500,7 @@ exports.default = getWritableDirectory;
218509
218500
  /***/ }),
218510
218501
 
218511
218502
  /***/ 4240:
218512
- /***/ (function(__unused_webpack_module, exports, __nested_webpack_require_964297__) {
218503
+ /***/ (function(__unused_webpack_module, exports, __nested_webpack_require_964302__) {
218513
218504
 
218514
218505
  "use strict";
218515
218506
 
@@ -218517,13 +218508,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
218517
218508
  return (mod && mod.__esModule) ? mod : { "default": mod };
218518
218509
  };
218519
218510
  Object.defineProperty(exports, "__esModule", ({ value: true }));
218520
- const path_1 = __importDefault(__nested_webpack_require_964297__(5622));
218521
- const assert_1 = __importDefault(__nested_webpack_require_964297__(2357));
218522
- const glob_1 = __importDefault(__nested_webpack_require_964297__(1104));
218523
- const util_1 = __nested_webpack_require_964297__(1669);
218524
- const fs_extra_1 = __nested_webpack_require_964297__(5392);
218525
- const normalize_path_1 = __nested_webpack_require_964297__(6261);
218526
- const file_fs_ref_1 = __importDefault(__nested_webpack_require_964297__(9331));
218511
+ const path_1 = __importDefault(__nested_webpack_require_964302__(5622));
218512
+ const assert_1 = __importDefault(__nested_webpack_require_964302__(2357));
218513
+ const glob_1 = __importDefault(__nested_webpack_require_964302__(1104));
218514
+ const util_1 = __nested_webpack_require_964302__(1669);
218515
+ const fs_extra_1 = __nested_webpack_require_964302__(5392);
218516
+ const normalize_path_1 = __nested_webpack_require_964302__(6261);
218517
+ const file_fs_ref_1 = __importDefault(__nested_webpack_require_964302__(9331));
218527
218518
  const vanillaGlob = util_1.promisify(glob_1.default);
218528
218519
  async function glob(pattern, opts, mountpoint) {
218529
218520
  let options;
@@ -218569,7 +218560,7 @@ exports.default = glob;
218569
218560
  /***/ }),
218570
218561
 
218571
218562
  /***/ 7903:
218572
- /***/ (function(__unused_webpack_module, exports, __nested_webpack_require_966493__) {
218563
+ /***/ (function(__unused_webpack_module, exports, __nested_webpack_require_966498__) {
218573
218564
 
218574
218565
  "use strict";
218575
218566
 
@@ -218578,9 +218569,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
218578
218569
  };
218579
218570
  Object.defineProperty(exports, "__esModule", ({ value: true }));
218580
218571
  exports.getSupportedNodeVersion = exports.getDiscontinuedNodeVersions = exports.getLatestNodeVersion = void 0;
218581
- const semver_1 = __nested_webpack_require_966493__(2879);
218582
- const errors_1 = __nested_webpack_require_966493__(3983);
218583
- const debug_1 = __importDefault(__nested_webpack_require_966493__(1868));
218572
+ const semver_1 = __nested_webpack_require_966498__(2879);
218573
+ const errors_1 = __nested_webpack_require_966498__(3983);
218574
+ const debug_1 = __importDefault(__nested_webpack_require_966498__(1868));
218584
218575
  const allOptions = [
218585
218576
  { major: 14, range: '14.x', runtime: 'nodejs14.x' },
218586
218577
  { major: 12, range: '12.x', runtime: 'nodejs12.x' },
@@ -218674,7 +218665,7 @@ exports.normalizePath = normalizePath;
218674
218665
  /***/ }),
218675
218666
 
218676
218667
  /***/ 7792:
218677
- /***/ (function(__unused_webpack_module, exports, __nested_webpack_require_970361__) {
218668
+ /***/ (function(__unused_webpack_module, exports, __nested_webpack_require_970366__) {
218678
218669
 
218679
218670
  "use strict";
218680
218671
 
@@ -218683,9 +218674,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
218683
218674
  };
218684
218675
  Object.defineProperty(exports, "__esModule", ({ value: true }));
218685
218676
  exports.readConfigFile = void 0;
218686
- const js_yaml_1 = __importDefault(__nested_webpack_require_970361__(6540));
218687
- const toml_1 = __importDefault(__nested_webpack_require_970361__(9434));
218688
- const fs_extra_1 = __nested_webpack_require_970361__(5392);
218677
+ const js_yaml_1 = __importDefault(__nested_webpack_require_970366__(6540));
218678
+ const toml_1 = __importDefault(__nested_webpack_require_970366__(9434));
218679
+ const fs_extra_1 = __nested_webpack_require_970366__(5392);
218689
218680
  async function readFileOrNull(file) {
218690
218681
  try {
218691
218682
  const data = await fs_extra_1.readFile(file);
@@ -218740,7 +218731,7 @@ exports.default = rename;
218740
218731
  /***/ }),
218741
218732
 
218742
218733
  /***/ 1442:
218743
- /***/ (function(__unused_webpack_module, exports, __nested_webpack_require_972154__) {
218734
+ /***/ (function(__unused_webpack_module, exports, __nested_webpack_require_972159__) {
218744
218735
 
218745
218736
  "use strict";
218746
218737
 
@@ -218749,14 +218740,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
218749
218740
  };
218750
218741
  Object.defineProperty(exports, "__esModule", ({ value: true }));
218751
218742
  exports.installDependencies = exports.getScriptName = exports.runPipInstall = exports.runBundleInstall = exports.runPackageJsonScript = exports.runNpmInstall = exports.walkParentDirs = exports.scanParentDirs = exports.getNodeVersion = exports.getSpawnOptions = exports.runShellScript = exports.getNodeBinPath = exports.execCommand = exports.spawnCommand = exports.execAsync = exports.spawnAsync = void 0;
218752
- const assert_1 = __importDefault(__nested_webpack_require_972154__(2357));
218753
- const fs_extra_1 = __importDefault(__nested_webpack_require_972154__(5392));
218754
- const path_1 = __importDefault(__nested_webpack_require_972154__(5622));
218755
- const debug_1 = __importDefault(__nested_webpack_require_972154__(1868));
218756
- const cross_spawn_1 = __importDefault(__nested_webpack_require_972154__(7618));
218757
- const util_1 = __nested_webpack_require_972154__(1669);
218758
- const errors_1 = __nested_webpack_require_972154__(3983);
218759
- const node_version_1 = __nested_webpack_require_972154__(7903);
218743
+ const assert_1 = __importDefault(__nested_webpack_require_972159__(2357));
218744
+ const fs_extra_1 = __importDefault(__nested_webpack_require_972159__(5392));
218745
+ const path_1 = __importDefault(__nested_webpack_require_972159__(5622));
218746
+ const debug_1 = __importDefault(__nested_webpack_require_972159__(1868));
218747
+ const cross_spawn_1 = __importDefault(__nested_webpack_require_972159__(7618));
218748
+ const util_1 = __nested_webpack_require_972159__(1669);
218749
+ const errors_1 = __nested_webpack_require_972159__(3983);
218750
+ const node_version_1 = __nested_webpack_require_972159__(7903);
218760
218751
  function spawnAsync(command, args, opts = {}) {
218761
218752
  return new Promise((resolve, reject) => {
218762
218753
  const stderrLogs = [];
@@ -219067,7 +219058,7 @@ exports.installDependencies = util_1.deprecate(runNpmInstall, 'installDependenci
219067
219058
  /***/ }),
219068
219059
 
219069
219060
  /***/ 2560:
219070
- /***/ (function(__unused_webpack_module, exports, __nested_webpack_require_986144__) {
219061
+ /***/ (function(__unused_webpack_module, exports, __nested_webpack_require_986149__) {
219071
219062
 
219072
219063
  "use strict";
219073
219064
 
@@ -219075,7 +219066,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
219075
219066
  return (mod && mod.__esModule) ? mod : { "default": mod };
219076
219067
  };
219077
219068
  Object.defineProperty(exports, "__esModule", ({ value: true }));
219078
- const end_of_stream_1 = __importDefault(__nested_webpack_require_986144__(687));
219069
+ const end_of_stream_1 = __importDefault(__nested_webpack_require_986149__(687));
219079
219070
  function streamToBuffer(stream) {
219080
219071
  return new Promise((resolve, reject) => {
219081
219072
  const buffers = [];
@@ -219104,7 +219095,7 @@ exports.default = streamToBuffer;
219104
219095
  /***/ }),
219105
219096
 
219106
219097
  /***/ 2855:
219107
- /***/ (function(__unused_webpack_module, exports, __nested_webpack_require_987212__) {
219098
+ /***/ (function(__unused_webpack_module, exports, __nested_webpack_require_987217__) {
219108
219099
 
219109
219100
  "use strict";
219110
219101
 
@@ -219135,28 +219126,28 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
219135
219126
  };
219136
219127
  Object.defineProperty(exports, "__esModule", ({ value: true }));
219137
219128
  exports.getPlatformEnv = exports.isStaticRuntime = exports.isOfficialRuntime = exports.updateRoutesManifest = exports.updateFunctionsManifest = exports.convertRuntimeToPlugin = exports.normalizePath = exports.readConfigFile = exports.DetectorFilesystem = exports.detectFramework = exports.detectApiExtensions = exports.detectApiDirectory = exports.detectOutputDirectory = exports.detectBuilders = exports.scanParentDirs = exports.getLambdaOptionsFromFunction = exports.isSymbolicLink = exports.debug = exports.shouldServe = exports.streamToBuffer = exports.getSpawnOptions = exports.getDiscontinuedNodeVersions = exports.getLatestNodeVersion = exports.getNodeVersion = exports.runShellScript = exports.runPipInstall = exports.runBundleInstall = exports.runNpmInstall = exports.getNodeBinPath = exports.walkParentDirs = exports.spawnCommand = exports.execCommand = exports.runPackageJsonScript = exports.installDependencies = exports.getScriptName = exports.spawnAsync = exports.execAsync = exports.rename = exports.glob = exports.getWriteableDirectory = exports.download = exports.Prerender = exports.createLambda = exports.Lambda = exports.FileRef = exports.FileFsRef = exports.FileBlob = void 0;
219138
- const file_blob_1 = __importDefault(__nested_webpack_require_987212__(2397));
219129
+ const file_blob_1 = __importDefault(__nested_webpack_require_987217__(2397));
219139
219130
  exports.FileBlob = file_blob_1.default;
219140
- const file_fs_ref_1 = __importDefault(__nested_webpack_require_987212__(9331));
219131
+ const file_fs_ref_1 = __importDefault(__nested_webpack_require_987217__(9331));
219141
219132
  exports.FileFsRef = file_fs_ref_1.default;
219142
- const file_ref_1 = __importDefault(__nested_webpack_require_987212__(5187));
219133
+ const file_ref_1 = __importDefault(__nested_webpack_require_987217__(5187));
219143
219134
  exports.FileRef = file_ref_1.default;
219144
- const lambda_1 = __nested_webpack_require_987212__(6721);
219135
+ const lambda_1 = __nested_webpack_require_987217__(6721);
219145
219136
  Object.defineProperty(exports, "Lambda", ({ enumerable: true, get: function () { return lambda_1.Lambda; } }));
219146
219137
  Object.defineProperty(exports, "createLambda", ({ enumerable: true, get: function () { return lambda_1.createLambda; } }));
219147
219138
  Object.defineProperty(exports, "getLambdaOptionsFromFunction", ({ enumerable: true, get: function () { return lambda_1.getLambdaOptionsFromFunction; } }));
219148
- const prerender_1 = __nested_webpack_require_987212__(2850);
219139
+ const prerender_1 = __nested_webpack_require_987217__(2850);
219149
219140
  Object.defineProperty(exports, "Prerender", ({ enumerable: true, get: function () { return prerender_1.Prerender; } }));
219150
- const download_1 = __importStar(__nested_webpack_require_987212__(1611));
219141
+ const download_1 = __importStar(__nested_webpack_require_987217__(1611));
219151
219142
  exports.download = download_1.default;
219152
219143
  Object.defineProperty(exports, "isSymbolicLink", ({ enumerable: true, get: function () { return download_1.isSymbolicLink; } }));
219153
- const get_writable_directory_1 = __importDefault(__nested_webpack_require_987212__(3838));
219144
+ const get_writable_directory_1 = __importDefault(__nested_webpack_require_987217__(3838));
219154
219145
  exports.getWriteableDirectory = get_writable_directory_1.default;
219155
- const glob_1 = __importDefault(__nested_webpack_require_987212__(4240));
219146
+ const glob_1 = __importDefault(__nested_webpack_require_987217__(4240));
219156
219147
  exports.glob = glob_1.default;
219157
- const rename_1 = __importDefault(__nested_webpack_require_987212__(6718));
219148
+ const rename_1 = __importDefault(__nested_webpack_require_987217__(6718));
219158
219149
  exports.rename = rename_1.default;
219159
- const run_user_scripts_1 = __nested_webpack_require_987212__(1442);
219150
+ const run_user_scripts_1 = __nested_webpack_require_987217__(1442);
219160
219151
  Object.defineProperty(exports, "execAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.execAsync; } }));
219161
219152
  Object.defineProperty(exports, "spawnAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.spawnAsync; } }));
219162
219153
  Object.defineProperty(exports, "execCommand", ({ enumerable: true, get: function () { return run_user_scripts_1.execCommand; } }));
@@ -219173,36 +219164,36 @@ Object.defineProperty(exports, "getNodeVersion", ({ enumerable: true, get: funct
219173
219164
  Object.defineProperty(exports, "getSpawnOptions", ({ enumerable: true, get: function () { return run_user_scripts_1.getSpawnOptions; } }));
219174
219165
  Object.defineProperty(exports, "getNodeBinPath", ({ enumerable: true, get: function () { return run_user_scripts_1.getNodeBinPath; } }));
219175
219166
  Object.defineProperty(exports, "scanParentDirs", ({ enumerable: true, get: function () { return run_user_scripts_1.scanParentDirs; } }));
219176
- const node_version_1 = __nested_webpack_require_987212__(7903);
219167
+ const node_version_1 = __nested_webpack_require_987217__(7903);
219177
219168
  Object.defineProperty(exports, "getLatestNodeVersion", ({ enumerable: true, get: function () { return node_version_1.getLatestNodeVersion; } }));
219178
219169
  Object.defineProperty(exports, "getDiscontinuedNodeVersions", ({ enumerable: true, get: function () { return node_version_1.getDiscontinuedNodeVersions; } }));
219179
- const errors_1 = __nested_webpack_require_987212__(3983);
219180
- const stream_to_buffer_1 = __importDefault(__nested_webpack_require_987212__(2560));
219170
+ const errors_1 = __nested_webpack_require_987217__(3983);
219171
+ const stream_to_buffer_1 = __importDefault(__nested_webpack_require_987217__(2560));
219181
219172
  exports.streamToBuffer = stream_to_buffer_1.default;
219182
- const should_serve_1 = __importDefault(__nested_webpack_require_987212__(2564));
219173
+ const should_serve_1 = __importDefault(__nested_webpack_require_987217__(2564));
219183
219174
  exports.shouldServe = should_serve_1.default;
219184
- const debug_1 = __importDefault(__nested_webpack_require_987212__(1868));
219175
+ const debug_1 = __importDefault(__nested_webpack_require_987217__(1868));
219185
219176
  exports.debug = debug_1.default;
219186
- var detect_builders_1 = __nested_webpack_require_987212__(4246);
219177
+ var detect_builders_1 = __nested_webpack_require_987217__(4246);
219187
219178
  Object.defineProperty(exports, "detectBuilders", ({ enumerable: true, get: function () { return detect_builders_1.detectBuilders; } }));
219188
219179
  Object.defineProperty(exports, "detectOutputDirectory", ({ enumerable: true, get: function () { return detect_builders_1.detectOutputDirectory; } }));
219189
219180
  Object.defineProperty(exports, "detectApiDirectory", ({ enumerable: true, get: function () { return detect_builders_1.detectApiDirectory; } }));
219190
219181
  Object.defineProperty(exports, "detectApiExtensions", ({ enumerable: true, get: function () { return detect_builders_1.detectApiExtensions; } }));
219191
- var detect_framework_1 = __nested_webpack_require_987212__(5224);
219182
+ var detect_framework_1 = __nested_webpack_require_987217__(5224);
219192
219183
  Object.defineProperty(exports, "detectFramework", ({ enumerable: true, get: function () { return detect_framework_1.detectFramework; } }));
219193
- var filesystem_1 = __nested_webpack_require_987212__(461);
219184
+ var filesystem_1 = __nested_webpack_require_987217__(461);
219194
219185
  Object.defineProperty(exports, "DetectorFilesystem", ({ enumerable: true, get: function () { return filesystem_1.DetectorFilesystem; } }));
219195
- var read_config_file_1 = __nested_webpack_require_987212__(7792);
219186
+ var read_config_file_1 = __nested_webpack_require_987217__(7792);
219196
219187
  Object.defineProperty(exports, "readConfigFile", ({ enumerable: true, get: function () { return read_config_file_1.readConfigFile; } }));
219197
- var normalize_path_1 = __nested_webpack_require_987212__(6261);
219188
+ var normalize_path_1 = __nested_webpack_require_987217__(6261);
219198
219189
  Object.defineProperty(exports, "normalizePath", ({ enumerable: true, get: function () { return normalize_path_1.normalizePath; } }));
219199
- var convert_runtime_to_plugin_1 = __nested_webpack_require_987212__(7276);
219190
+ var convert_runtime_to_plugin_1 = __nested_webpack_require_987217__(7276);
219200
219191
  Object.defineProperty(exports, "convertRuntimeToPlugin", ({ enumerable: true, get: function () { return convert_runtime_to_plugin_1.convertRuntimeToPlugin; } }));
219201
219192
  Object.defineProperty(exports, "updateFunctionsManifest", ({ enumerable: true, get: function () { return convert_runtime_to_plugin_1.updateFunctionsManifest; } }));
219202
219193
  Object.defineProperty(exports, "updateRoutesManifest", ({ enumerable: true, get: function () { return convert_runtime_to_plugin_1.updateRoutesManifest; } }));
219203
- __exportStar(__nested_webpack_require_987212__(2416), exports);
219204
- __exportStar(__nested_webpack_require_987212__(5748), exports);
219205
- __exportStar(__nested_webpack_require_987212__(3983), exports);
219194
+ __exportStar(__nested_webpack_require_987217__(2416), exports);
219195
+ __exportStar(__nested_webpack_require_987217__(5748), exports);
219196
+ __exportStar(__nested_webpack_require_987217__(3983), exports);
219206
219197
  /**
219207
219198
  * Helper function to support both `@vercel` and legacy `@now` official Runtimes.
219208
219199
  */
@@ -219247,7 +219238,7 @@ exports.getPlatformEnv = getPlatformEnv;
219247
219238
  /***/ }),
219248
219239
 
219249
219240
  /***/ 6721:
219250
- /***/ (function(__unused_webpack_module, exports, __nested_webpack_require_997676__) {
219241
+ /***/ (function(__unused_webpack_module, exports, __nested_webpack_require_997681__) {
219251
219242
 
219252
219243
  "use strict";
219253
219244
 
@@ -219256,13 +219247,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
219256
219247
  };
219257
219248
  Object.defineProperty(exports, "__esModule", ({ value: true }));
219258
219249
  exports.getLambdaOptionsFromFunction = exports.createZip = exports.createLambda = exports.Lambda = exports.FILES_SYMBOL = void 0;
219259
- const assert_1 = __importDefault(__nested_webpack_require_997676__(2357));
219260
- const async_sema_1 = __importDefault(__nested_webpack_require_997676__(5758));
219261
- const yazl_1 = __nested_webpack_require_997676__(1223);
219262
- const minimatch_1 = __importDefault(__nested_webpack_require_997676__(9566));
219263
- const fs_extra_1 = __nested_webpack_require_997676__(5392);
219264
- const download_1 = __nested_webpack_require_997676__(1611);
219265
- const stream_to_buffer_1 = __importDefault(__nested_webpack_require_997676__(2560));
219250
+ const assert_1 = __importDefault(__nested_webpack_require_997681__(2357));
219251
+ const async_sema_1 = __importDefault(__nested_webpack_require_997681__(5758));
219252
+ const yazl_1 = __nested_webpack_require_997681__(1223);
219253
+ const minimatch_1 = __importDefault(__nested_webpack_require_997681__(9566));
219254
+ const fs_extra_1 = __nested_webpack_require_997681__(5392);
219255
+ const download_1 = __nested_webpack_require_997681__(1611);
219256
+ const stream_to_buffer_1 = __importDefault(__nested_webpack_require_997681__(2560));
219266
219257
  exports.FILES_SYMBOL = Symbol('files');
219267
219258
  class Lambda {
219268
219259
  constructor({ zipBuffer, handler, runtime, maxDuration, memory, environment, allowQuery, regions, }) {
@@ -219491,12 +219482,12 @@ exports.buildsSchema = {
219491
219482
  /***/ }),
219492
219483
 
219493
219484
  /***/ 2564:
219494
- /***/ ((__unused_webpack_module, exports, __nested_webpack_require_1006186__) => {
219485
+ /***/ ((__unused_webpack_module, exports, __nested_webpack_require_1006191__) => {
219495
219486
 
219496
219487
  "use strict";
219497
219488
 
219498
219489
  Object.defineProperty(exports, "__esModule", ({ value: true }));
219499
- const path_1 = __nested_webpack_require_1006186__(5622);
219490
+ const path_1 = __nested_webpack_require_1006191__(5622);
219500
219491
  function shouldServe({ entrypoint, files, requestPath, }) {
219501
219492
  requestPath = requestPath.replace(/\/$/, ''); // sanitize trailing '/'
219502
219493
  entrypoint = entrypoint.replace(/\\/, '/'); // windows compatibility
@@ -219725,7 +219716,7 @@ module.exports = __webpack_require__(78761);
219725
219716
  /******/ var __webpack_module_cache__ = {};
219726
219717
  /******/
219727
219718
  /******/ // The require function
219728
- /******/ function __nested_webpack_require_1105825__(moduleId) {
219719
+ /******/ function __nested_webpack_require_1105830__(moduleId) {
219729
219720
  /******/ // Check if module is in cache
219730
219721
  /******/ if(__webpack_module_cache__[moduleId]) {
219731
219722
  /******/ return __webpack_module_cache__[moduleId].exports;
@@ -219740,7 +219731,7 @@ module.exports = __webpack_require__(78761);
219740
219731
  /******/ // Execute the module function
219741
219732
  /******/ var threw = true;
219742
219733
  /******/ try {
219743
- /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_1105825__);
219734
+ /******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_1105830__);
219744
219735
  /******/ threw = false;
219745
219736
  /******/ } finally {
219746
219737
  /******/ if(threw) delete __webpack_module_cache__[moduleId];
@@ -219753,11 +219744,11 @@ module.exports = __webpack_require__(78761);
219753
219744
  /************************************************************************/
219754
219745
  /******/ /* webpack/runtime/compat */
219755
219746
  /******/
219756
- /******/ __nested_webpack_require_1105825__.ab = __dirname + "/";/************************************************************************/
219747
+ /******/ __nested_webpack_require_1105830__.ab = __dirname + "/";/************************************************************************/
219757
219748
  /******/ // module exports must be returned from runtime so entry inlining is disabled
219758
219749
  /******/ // startup
219759
219750
  /******/ // Load entry module and return exports
219760
- /******/ return __nested_webpack_require_1105825__(2855);
219751
+ /******/ return __nested_webpack_require_1105830__(2855);
219761
219752
  /******/ })()
219762
219753
  ;
219763
219754
 
@@ -242108,7 +242099,7 @@ exports.frameworks = [
242108
242099
  name: 'Remix',
242109
242100
  slug: 'remix',
242110
242101
  demo: 'https://remix.examples.vercel.com',
242111
- logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/remix.svg',
242102
+ logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/remix-no-shadow.svg',
242112
242103
  tagline: 'Build Better Websites',
242113
242104
  description: 'A new Remix app — the result of running `npx create-remix`.',
242114
242105
  website: 'https://remix.run',
@@ -242163,8 +242154,8 @@ exports.frameworks = [
242163
242154
  ],
242164
242155
  defaultHeaders: [
242165
242156
  {
242166
- source: '^/build/(.*)$',
242167
- regex: '^/build/(.*)$',
242157
+ source: '/build/(.*)',
242158
+ regex: '/build/(.*)',
242168
242159
  headers: [
242169
242160
  { key: 'cache-control', value: 'public, max-age=31536000, immutable' },
242170
242161
  ],
@@ -249831,7 +249822,7 @@ async function main(client) {
249831
249822
  error: (...args) => client.output.error(args.join(' ')),
249832
249823
  });
249833
249824
  // Set process.env with loaded environment variables
249834
- await env_1.processEnv(loadedEnvFiles);
249825
+ env_1.processEnv(loadedEnvFiles);
249835
249826
  const spawnOpts = {
249836
249827
  env: { ...combinedEnv, VERCEL: '1' },
249837
249828
  };
@@ -249920,6 +249911,17 @@ async function main(client) {
249920
249911
  }
249921
249912
  // Clean the output directory
249922
249913
  fs_extra_1.default.removeSync(path_1.join(cwd, OUTPUT_DIR));
249914
+ if (framework && process.env.VERCEL_URL && 'envPrefix' in framework) {
249915
+ for (const key of Object.keys(process.env)) {
249916
+ if (key.startsWith('VERCEL_')) {
249917
+ const newKey = `${framework.envPrefix}${key}`;
249918
+ // Set `process.env` and `spawnOpts.env` to make sure the variables are
249919
+ // available to the `build` step and the CLI Plugins.
249920
+ process.env[newKey] = process.env[newKey] || process.env[key];
249921
+ spawnOpts.env[newKey] = process.env[newKey];
249922
+ }
249923
+ }
249924
+ }
249923
249925
  // Yarn v2 PnP mode may be activated, so force
249924
249926
  // "node-modules" linker style
249925
249927
  const env = {
@@ -249945,19 +249947,32 @@ async function main(client) {
249945
249947
  cwd,
249946
249948
  });
249947
249949
  }
249948
- // don't trust framework detection here because they might be switching to next on a branch
249949
- const isNextJs = fs_extra_1.default.existsSync(path_1.join(cwd, '.next'));
249950
249950
  if (!fs_extra_1.default.existsSync(path_1.join(cwd, OUTPUT_DIR))) {
249951
- let outputDir = path_1.join(OUTPUT_DIR, 'static');
249952
- let distDir = await framework.getFsOutputDir(cwd);
249953
- if (isNextJs) {
249954
- outputDir = OUTPUT_DIR;
249955
- }
249956
- const copyStamp = stamp_1.default();
249951
+ let dotNextDir = null;
249952
+ // If a custom `outputDirectory` was set, we'll need to verify
249953
+ // if it's `.next` output, or just static output.
249954
+ const userOutputDirectory = project.settings.outputDirectory;
249955
+ if (typeof userOutputDirectory === 'string') {
249956
+ if (fs_extra_1.default.existsSync(path_1.join(cwd, userOutputDirectory, 'BUILD_ID'))) {
249957
+ dotNextDir = path_1.join(cwd, userOutputDirectory);
249958
+ client.output.debug(`Consider ${param_1.default(userOutputDirectory)} as ${param_1.default('.next')} output.`);
249959
+ }
249960
+ }
249961
+ else if (fs_extra_1.default.existsSync(path_1.join(cwd, '.next'))) {
249962
+ dotNextDir = path_1.join(cwd, '.next');
249963
+ client.output.debug(`Found ${param_1.default('.next')} directory.`);
249964
+ }
249965
+ // We cannot rely on the `framework` alone, as it might be a static export,
249966
+ // and the current build might use a differnt project that's not in the settings.
249967
+ const isNextOutput = Boolean(dotNextDir);
249968
+ const outputDir = isNextOutput ? OUTPUT_DIR : path_1.join(OUTPUT_DIR, 'static');
249969
+ const distDir = dotNextDir ||
249970
+ userOutputDirectory ||
249971
+ (await framework.getFsOutputDir(cwd));
249957
249972
  await fs_extra_1.default.ensureDir(path_1.join(cwd, outputDir));
249958
- const relativeDistDir = path_1.relative(cwd, distDir);
249973
+ const copyStamp = stamp_1.default();
249959
249974
  client.output.spinner(`Copying files from ${param_1.default(distDir)} to ${param_1.default(outputDir)}`);
249960
- const files = await glob(path_1.join(relativeDistDir, '**'), {
249975
+ const files = await glob(path_1.join(path_1.relative(cwd, distDir), '**'), {
249961
249976
  ignore: [
249962
249977
  'node_modules/**',
249963
249978
  '.vercel/**',
@@ -249989,6 +250004,7 @@ async function main(client) {
249989
250004
  if (!fs_extra_1.default.existsSync(buildManifestPath)) {
249990
250005
  client.output.debug(`Generating build manifest: ${param_1.default(buildManifestPath)}`);
249991
250006
  const buildManifest = {
250007
+ version: 1,
249992
250008
  cache: framework.cachePattern ? [framework.cachePattern] : [],
249993
250009
  };
249994
250010
  await fs_extra_1.default.writeJSON(buildManifestPath, buildManifest, { spaces: 2 });
@@ -250008,7 +250024,7 @@ async function main(client) {
250008
250024
  await fs_extra_1.default.writeJSON(path_1.join(cwd, OUTPUT_DIR, 'routes-manifest.json'), routesManifest, { spaces: 2 });
250009
250025
  }
250010
250026
  // Special Next.js processing.
250011
- if (isNextJs) {
250027
+ if (isNextOutput) {
250012
250028
  // The contents of `.output/static` should be placed inside of `.output/static/_next/static`
250013
250029
  const tempStatic = '___static';
250014
250030
  await fs_extra_1.default.rename(path_1.join(cwd, OUTPUT_DIR, 'static'), path_1.join(cwd, OUTPUT_DIR, tempStatic));
@@ -250041,23 +250057,24 @@ async function main(client) {
250041
250057
  // `public`, then`static`). We can't read both at the same time because that would mean we'd
250042
250058
  // read public for old Next.js versions that don't support it, which might be breaking (and
250043
250059
  // we don't want to make vercel build specific framework versions).
250060
+ const nextSrcDirectory = path_1.dirname(distDir);
250044
250061
  const publicFiles = await glob('public/**', {
250045
250062
  nodir: true,
250046
250063
  dot: true,
250047
- cwd,
250064
+ cwd: nextSrcDirectory,
250048
250065
  absolute: true,
250049
250066
  });
250050
250067
  if (publicFiles.length > 0) {
250051
- await Promise.all(publicFiles.map(f => smartCopy(client, f, f.replace('public', path_1.join(OUTPUT_DIR, 'static')))));
250068
+ await Promise.all(publicFiles.map(f => smartCopy(client, f, path_1.join(OUTPUT_DIR, 'static', path_1.relative(path_1.join(path_1.dirname(distDir), 'public'), f)))));
250052
250069
  }
250053
250070
  else {
250054
250071
  const staticFiles = await glob('static/**', {
250055
250072
  nodir: true,
250056
250073
  dot: true,
250057
- cwd,
250074
+ cwd: nextSrcDirectory,
250058
250075
  absolute: true,
250059
250076
  });
250060
- await Promise.all(staticFiles.map(f => smartCopy(client, f, f.replace('static', path_1.join(OUTPUT_DIR, 'static', 'static')))));
250077
+ await Promise.all(staticFiles.map(f => smartCopy(client, f, path_1.join(OUTPUT_DIR, 'static', 'static', path_1.relative(path_1.join(path_1.dirname(distDir), 'static'), f)))));
250061
250078
  }
250062
250079
  // Regardless of the Next.js version, we make sure that it is compatible with
250063
250080
  // the Filesystem API. We get there by moving all the files needed
@@ -250072,6 +250089,7 @@ async function main(client) {
250072
250089
  const nftFiles = await glob(path_1.join(OUTPUT_DIR, '**', '*.nft.json'), {
250073
250090
  nodir: true,
250074
250091
  dot: true,
250092
+ ignore: ['cache/**'],
250075
250093
  cwd,
250076
250094
  absolute: true,
250077
250095
  });
@@ -250104,6 +250122,7 @@ async function main(client) {
250104
250122
  baseDir,
250105
250123
  outputDir: OUTPUT_DIR,
250106
250124
  nftFileName: f.replace(ext, '.js.nft.json'),
250125
+ distDir,
250107
250126
  nft: {
250108
250127
  version: 1,
250109
250128
  files: Array.from(fileList).map(fileListEntry => path_1.relative(dir, fileListEntry)),
@@ -250120,19 +250139,23 @@ async function main(client) {
250120
250139
  outputDir: OUTPUT_DIR,
250121
250140
  nftFileName: f,
250122
250141
  nft: json,
250142
+ distDir,
250123
250143
  });
250124
250144
  }
250125
250145
  }
250146
+ client.output.debug(`Resolve ${param_1.default('required-server-files.json')}.`);
250126
250147
  const requiredServerFilesPath = path_1.join(OUTPUT_DIR, 'required-server-files.json');
250127
250148
  const requiredServerFilesJson = await fs_extra_1.default.readJSON(requiredServerFilesPath);
250128
250149
  await fs_extra_1.default.writeJSON(requiredServerFilesPath, {
250129
250150
  ...requiredServerFilesJson,
250130
250151
  appDir: '.',
250131
250152
  files: requiredServerFilesJson.files.map((i) => {
250132
- const absolutePath = path_1.join(cwd, i.replace('.next', '.output'));
250153
+ const originalPath = path_1.join(path_1.dirname(distDir), i);
250154
+ const relPath = path_1.join(OUTPUT_DIR, path_1.relative(distDir, originalPath));
250155
+ const absolutePath = path_1.join(cwd, relPath);
250133
250156
  const output = path_1.relative(baseDir, absolutePath);
250134
250157
  return {
250135
- input: i.replace('.next', '.output'),
250158
+ input: relPath,
250136
250159
  output,
250137
250160
  };
250138
250161
  }),
@@ -250272,15 +250295,23 @@ function hash(buf) {
250272
250295
  // subsequently updating the original nft file accordingly. This is done
250273
250296
  // to make the `.output` directory be self-contained, so that it works
250274
250297
  // properly with `vc --prebuilt`.
250275
- async function resolveNftToOutput({ client, baseDir, outputDir, nftFileName, nft, }) {
250298
+ async function resolveNftToOutput({ client, baseDir, outputDir, nftFileName, distDir, nft, }) {
250276
250299
  client.output.debug(`Processing and resolving ${nftFileName}`);
250277
250300
  await fs_extra_1.default.ensureDir(path_1.join(outputDir, 'inputs'));
250278
250301
  const newFilesList = [];
250302
+ // If `distDir` is a subdirectory, then the input has to be resolved to where the `.output` directory will be.
250303
+ const relNftFileName = path_1.relative(outputDir, nftFileName);
250304
+ const origNftFilename = path_1.join(distDir, relNftFileName);
250305
+ if (relNftFileName.startsWith('cache/')) {
250306
+ // No need to process the `cache/` directory.
250307
+ // Paths in it might also not be relative to `cache` itself.
250308
+ return;
250309
+ }
250279
250310
  for (let fileEntity of nft.files) {
250280
250311
  const relativeInput = typeof fileEntity === 'string' ? fileEntity : fileEntity.input;
250281
- const fullInput = path_1.resolve(path_1.join(path_1.parse(nftFileName).dir, relativeInput));
250312
+ const fullInput = path_1.resolve(path_1.join(path_1.parse(origNftFilename).dir, relativeInput));
250282
250313
  // if the resolved path is NOT in the .output directory we move in it there
250283
- if (!fullInput.includes(outputDir)) {
250314
+ if (!fullInput.includes(distDir)) {
250284
250315
  const { ext } = path_1.parse(fullInput);
250285
250316
  const raw = await fs_extra_1.default.readFile(fullInput);
250286
250317
  const newFilePath = path_1.join(outputDir, 'inputs', hash(raw) + ext);
@@ -269435,6 +269466,7 @@ async function writeProjectSettings(cwd, project, org) {
269435
269466
  settings: {
269436
269467
  buildCommand: project.buildCommand,
269437
269468
  devCommand: project.devCommand,
269469
+ outputDirectory: project.outputDirectory,
269438
269470
  directoryListing: project.directoryListing,
269439
269471
  rootDirectory: project.rootDirectory,
269440
269472
  framework: project.framework,
@@ -270471,7 +270503,7 @@ module.exports = JSON.parse("[\"ac\",\"com.ac\",\"edu.ac\",\"gov.ac\",\"net.ac\"
270471
270503
  /***/ ((module) => {
270472
270504
 
270473
270505
  "use strict";
270474
- module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"23.1.3-canary.40\",\"preferGlobal\":true,\"license\":\"Apache-2.0\",\"description\":\"The command-line interface for Vercel\",\"homepage\":\"https://vercel.com\",\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/vercel/vercel.git\",\"directory\":\"packages/cli\"},\"scripts\":{\"preinstall\":\"node ./scripts/preinstall.js\",\"test\":\"jest\",\"test-unit\":\"jest --coverage --verbose\",\"test-integration-cli\":\"rimraf test/fixtures/integration && ava test/integration.js --serial --fail-fast --verbose\",\"test-integration-dev\":\"ava test/dev/integration.js --serial --fail-fast --verbose\",\"prepublishOnly\":\"yarn build\",\"coverage\":\"codecov\",\"build\":\"node -r ts-eager/register ./scripts/build.ts\",\"build-dev\":\"node -r ts-eager/register ./scripts/build.ts --dev\"},\"bin\":{\"vc\":\"./dist/index.js\",\"vercel\":\"./dist/index.js\"},\"files\":[\"dist\",\"scripts/preinstall.js\"],\"ava\":{\"compileEnhancements\":false,\"extensions\":[\"ts\"],\"require\":[\"ts-node/register/transpile-only\",\"esm\"]},\"engines\":{\"node\":\">= 12\"},\"dependencies\":{\"@vercel/build-utils\":\"2.12.3-canary.22\",\"@vercel/go\":\"1.2.4-canary.4\",\"@vercel/node\":\"1.12.2-canary.7\",\"@vercel/python\":\"2.1.2-canary.0\",\"@vercel/ruby\":\"1.2.8-canary.4\",\"update-notifier\":\"4.1.0\",\"vercel-plugin-middleware\":\"0.0.0-canary.7\",\"vercel-plugin-node\":\"1.12.2-canary.13\"},\"devDependencies\":{\"@next/env\":\"11.1.2\",\"@sentry/node\":\"5.5.0\",\"@sindresorhus/slugify\":\"0.11.0\",\"@tootallnate/once\":\"1.1.2\",\"@types/ansi-escapes\":\"3.0.0\",\"@types/ansi-regex\":\"4.0.0\",\"@types/async-retry\":\"1.2.1\",\"@types/bytes\":\"3.0.0\",\"@types/chance\":\"1.1.3\",\"@types/debug\":\"0.0.31\",\"@types/dotenv\":\"6.1.1\",\"@types/escape-html\":\"0.0.20\",\"@types/express\":\"4.17.13\",\"@types/fs-extra\":\"9.0.13\",\"@types/glob\":\"7.1.1\",\"@types/http-proxy\":\"1.16.2\",\"@types/inquirer\":\"7.3.1\",\"@types/jest\":\"27.0.1\",\"@types/load-json-file\":\"2.0.7\",\"@types/mime-types\":\"2.1.0\",\"@types/minimatch\":\"3.0.3\",\"@types/mri\":\"1.1.0\",\"@types/ms\":\"0.7.30\",\"@types/node\":\"11.11.0\",\"@types/node-fetch\":\"2.5.10\",\"@types/npm-package-arg\":\"6.1.0\",\"@types/pluralize\":\"0.0.29\",\"@types/progress\":\"2.0.3\",\"@types/psl\":\"1.1.0\",\"@types/semver\":\"6.0.1\",\"@types/tar-fs\":\"1.16.1\",\"@types/text-table\":\"0.2.0\",\"@types/title\":\"3.4.1\",\"@types/universal-analytics\":\"0.4.2\",\"@types/update-notifier\":\"5.1.0\",\"@types/which\":\"1.3.2\",\"@types/write-json-file\":\"2.2.1\",\"@vercel/frameworks\":\"0.5.1-canary.13\",\"@vercel/ncc\":\"0.24.0\",\"@vercel/nft\":\"0.17.0\",\"@zeit/fun\":\"0.11.2\",\"@zeit/source-map-support\":\"0.6.2\",\"ajv\":\"6.12.2\",\"alpha-sort\":\"2.0.1\",\"ansi-escapes\":\"3.0.0\",\"ansi-regex\":\"3.0.0\",\"arg\":\"5.0.0\",\"async-listen\":\"1.2.0\",\"async-retry\":\"1.1.3\",\"async-sema\":\"2.1.4\",\"ava\":\"2.2.0\",\"bytes\":\"3.0.0\",\"chalk\":\"4.1.0\",\"chance\":\"1.1.7\",\"chokidar\":\"3.3.1\",\"clipboardy\":\"2.1.0\",\"codecov\":\"3.8.2\",\"cpy\":\"7.2.0\",\"credit-card\":\"3.0.1\",\"date-fns\":\"1.29.0\",\"debug\":\"3.1.0\",\"dot\":\"1.1.3\",\"dotenv\":\"4.0.0\",\"email-prompt\":\"0.3.2\",\"email-validator\":\"1.1.1\",\"epipebomb\":\"1.0.0\",\"escape-html\":\"1.0.3\",\"esm\":\"3.1.4\",\"execa\":\"3.2.0\",\"express\":\"4.17.1\",\"fast-deep-equal\":\"3.1.3\",\"fs-extra\":\"10.0.0\",\"get-port\":\"5.1.1\",\"glob\":\"7.1.2\",\"http-proxy\":\"1.18.1\",\"inquirer\":\"7.0.4\",\"is-docker\":\"2.2.1\",\"is-port-reachable\":\"3.0.0\",\"is-url\":\"1.2.2\",\"jaro-winkler\":\"0.2.8\",\"jsonlines\":\"0.1.1\",\"load-json-file\":\"3.0.0\",\"mime-types\":\"2.1.24\",\"minimatch\":\"3.0.4\",\"mri\":\"1.1.5\",\"ms\":\"2.1.2\",\"node-fetch\":\"2.6.1\",\"npm-package-arg\":\"6.1.0\",\"open\":\"8.2.0\",\"ora\":\"3.4.0\",\"pcre-to-regexp\":\"1.0.0\",\"pluralize\":\"7.0.0\",\"progress\":\"2.0.3\",\"promisepipe\":\"3.0.0\",\"psl\":\"1.1.31\",\"qr-image\":\"3.2.0\",\"raw-body\":\"2.4.1\",\"rimraf\":\"3.0.2\",\"semver\":\"5.5.0\",\"serve-handler\":\"6.1.1\",\"strip-ansi\":\"5.2.0\",\"stripe\":\"5.1.0\",\"tar-fs\":\"1.16.3\",\"test-listen\":\"1.1.0\",\"text-table\":\"0.2.0\",\"title\":\"3.4.1\",\"tmp-promise\":\"1.0.3\",\"tree-kill\":\"1.2.2\",\"ts-eager\":\"2.0.2\",\"ts-node\":\"8.3.0\",\"typescript\":\"4.3.4\",\"universal-analytics\":\"0.4.20\",\"utility-types\":\"2.1.0\",\"which\":\"2.0.2\",\"write-json-file\":\"2.2.0\",\"xdg-app-paths\":\"5.1.0\"},\"jest\":{\"preset\":\"ts-jest\",\"globals\":{\"ts-jest\":{\"diagnostics\":false,\"isolatedModules\":true}},\"verbose\":false,\"testEnvironment\":\"node\",\"testMatch\":[\"<rootDir>/test/**/*.test.ts\"]},\"gitHead\":\"0cacb1bdace342133fad4bd7a98354e5b2948df0\"}");
270506
+ module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"23.1.3-canary.44\",\"preferGlobal\":true,\"license\":\"Apache-2.0\",\"description\":\"The command-line interface for Vercel\",\"homepage\":\"https://vercel.com\",\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/vercel/vercel.git\",\"directory\":\"packages/cli\"},\"scripts\":{\"preinstall\":\"node ./scripts/preinstall.js\",\"test\":\"jest\",\"test-unit\":\"jest --coverage --verbose\",\"test-integration-cli\":\"rimraf test/fixtures/integration && ava test/integration.js --serial --fail-fast --verbose\",\"test-integration-dev\":\"ava test/dev/integration.js --serial --fail-fast --verbose\",\"prepublishOnly\":\"yarn build\",\"coverage\":\"codecov\",\"build\":\"node -r ts-eager/register ./scripts/build.ts\",\"build-dev\":\"node -r ts-eager/register ./scripts/build.ts --dev\"},\"bin\":{\"vc\":\"./dist/index.js\",\"vercel\":\"./dist/index.js\"},\"files\":[\"dist\",\"scripts/preinstall.js\"],\"ava\":{\"compileEnhancements\":false,\"extensions\":[\"ts\"],\"require\":[\"ts-node/register/transpile-only\",\"esm\"]},\"engines\":{\"node\":\">= 12\"},\"dependencies\":{\"@vercel/build-utils\":\"2.12.3-canary.26\",\"@vercel/go\":\"1.2.4-canary.4\",\"@vercel/node\":\"1.12.2-canary.7\",\"@vercel/python\":\"2.1.2-canary.1\",\"@vercel/ruby\":\"1.2.8-canary.5\",\"update-notifier\":\"4.1.0\",\"vercel-plugin-middleware\":\"0.0.0-canary.7\",\"vercel-plugin-node\":\"1.12.2-canary.17\"},\"devDependencies\":{\"@next/env\":\"11.1.2\",\"@sentry/node\":\"5.5.0\",\"@sindresorhus/slugify\":\"0.11.0\",\"@tootallnate/once\":\"1.1.2\",\"@types/ansi-escapes\":\"3.0.0\",\"@types/ansi-regex\":\"4.0.0\",\"@types/async-retry\":\"1.2.1\",\"@types/bytes\":\"3.0.0\",\"@types/chance\":\"1.1.3\",\"@types/debug\":\"0.0.31\",\"@types/dotenv\":\"6.1.1\",\"@types/escape-html\":\"0.0.20\",\"@types/express\":\"4.17.13\",\"@types/fs-extra\":\"9.0.13\",\"@types/glob\":\"7.1.1\",\"@types/http-proxy\":\"1.16.2\",\"@types/inquirer\":\"7.3.1\",\"@types/jest\":\"27.0.1\",\"@types/load-json-file\":\"2.0.7\",\"@types/mime-types\":\"2.1.0\",\"@types/minimatch\":\"3.0.3\",\"@types/mri\":\"1.1.0\",\"@types/ms\":\"0.7.30\",\"@types/node\":\"11.11.0\",\"@types/node-fetch\":\"2.5.10\",\"@types/npm-package-arg\":\"6.1.0\",\"@types/pluralize\":\"0.0.29\",\"@types/progress\":\"2.0.3\",\"@types/psl\":\"1.1.0\",\"@types/semver\":\"6.0.1\",\"@types/tar-fs\":\"1.16.1\",\"@types/text-table\":\"0.2.0\",\"@types/title\":\"3.4.1\",\"@types/universal-analytics\":\"0.4.2\",\"@types/update-notifier\":\"5.1.0\",\"@types/which\":\"1.3.2\",\"@types/write-json-file\":\"2.2.1\",\"@vercel/frameworks\":\"0.5.1-canary.16\",\"@vercel/ncc\":\"0.24.0\",\"@vercel/nft\":\"0.17.0\",\"@zeit/fun\":\"0.11.2\",\"@zeit/source-map-support\":\"0.6.2\",\"ajv\":\"6.12.2\",\"alpha-sort\":\"2.0.1\",\"ansi-escapes\":\"3.0.0\",\"ansi-regex\":\"3.0.0\",\"arg\":\"5.0.0\",\"async-listen\":\"1.2.0\",\"async-retry\":\"1.1.3\",\"async-sema\":\"2.1.4\",\"ava\":\"2.2.0\",\"bytes\":\"3.0.0\",\"chalk\":\"4.1.0\",\"chance\":\"1.1.7\",\"chokidar\":\"3.3.1\",\"clipboardy\":\"2.1.0\",\"codecov\":\"3.8.2\",\"cpy\":\"7.2.0\",\"credit-card\":\"3.0.1\",\"date-fns\":\"1.29.0\",\"debug\":\"3.1.0\",\"dot\":\"1.1.3\",\"dotenv\":\"4.0.0\",\"email-prompt\":\"0.3.2\",\"email-validator\":\"1.1.1\",\"epipebomb\":\"1.0.0\",\"escape-html\":\"1.0.3\",\"esm\":\"3.1.4\",\"execa\":\"3.2.0\",\"express\":\"4.17.1\",\"fast-deep-equal\":\"3.1.3\",\"fs-extra\":\"10.0.0\",\"get-port\":\"5.1.1\",\"glob\":\"7.1.2\",\"http-proxy\":\"1.18.1\",\"inquirer\":\"7.0.4\",\"is-docker\":\"2.2.1\",\"is-port-reachable\":\"3.0.0\",\"is-url\":\"1.2.2\",\"jaro-winkler\":\"0.2.8\",\"jsonlines\":\"0.1.1\",\"load-json-file\":\"3.0.0\",\"mime-types\":\"2.1.24\",\"minimatch\":\"3.0.4\",\"mri\":\"1.1.5\",\"ms\":\"2.1.2\",\"node-fetch\":\"2.6.1\",\"npm-package-arg\":\"6.1.0\",\"open\":\"8.2.0\",\"ora\":\"3.4.0\",\"pcre-to-regexp\":\"1.0.0\",\"pluralize\":\"7.0.0\",\"progress\":\"2.0.3\",\"promisepipe\":\"3.0.0\",\"psl\":\"1.1.31\",\"qr-image\":\"3.2.0\",\"raw-body\":\"2.4.1\",\"rimraf\":\"3.0.2\",\"semver\":\"5.5.0\",\"serve-handler\":\"6.1.1\",\"strip-ansi\":\"5.2.0\",\"stripe\":\"5.1.0\",\"tar-fs\":\"1.16.3\",\"test-listen\":\"1.1.0\",\"text-table\":\"0.2.0\",\"title\":\"3.4.1\",\"tmp-promise\":\"1.0.3\",\"tree-kill\":\"1.2.2\",\"ts-eager\":\"2.0.2\",\"ts-node\":\"8.3.0\",\"typescript\":\"4.3.4\",\"universal-analytics\":\"0.4.20\",\"utility-types\":\"2.1.0\",\"which\":\"2.0.2\",\"write-json-file\":\"2.2.0\",\"xdg-app-paths\":\"5.1.0\"},\"jest\":{\"preset\":\"ts-jest\",\"globals\":{\"ts-jest\":{\"diagnostics\":false,\"isolatedModules\":true}},\"verbose\":false,\"testEnvironment\":\"node\",\"testMatch\":[\"<rootDir>/test/**/*.test.ts\"]},\"gitHead\":\"1202ff7b2b8a821c6404a86baa12996f3078ed36\"}");
270475
270507
 
270476
270508
  /***/ }),
270477
270509
 
@@ -270487,7 +270519,7 @@ module.exports = JSON.parse("{\"VISA\":\"Visa\",\"MASTERCARD\":\"MasterCard\",\"
270487
270519
  /***/ ((module) => {
270488
270520
 
270489
270521
  "use strict";
270490
- module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"10.2.3-canary.23\",\"main\":\"dist/index.js\",\"typings\":\"dist/index.d.ts\",\"homepage\":\"https://vercel.com\",\"license\":\"MIT\",\"files\":[\"dist\"],\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/vercel/vercel.git\",\"directory\":\"packages/client\"},\"scripts\":{\"build\":\"tsc\",\"test-integration-once\":\"jest --verbose --runInBand --bail tests/create-deployment.test.ts tests/create-legacy-deployment.test.ts tests/paths.test.ts\",\"test-unit\":\"jest --verbose --runInBand --bail tests/unit.*test.*\"},\"engines\":{\"node\":\">= 12\"},\"devDependencies\":{\"@types/async-retry\":\"1.4.1\",\"@types/fs-extra\":\"7.0.0\",\"@types/jest\":\"27.0.1\",\"@types/ms\":\"0.7.30\",\"@types/node\":\"12.0.4\",\"@types/node-fetch\":\"2.5.4\",\"@types/recursive-readdir\":\"2.2.0\",\"typescript\":\"4.3.4\"},\"jest\":{\"preset\":\"ts-jest\",\"testEnvironment\":\"node\",\"verbose\":false,\"setupFilesAfterEnv\":[\"<rootDir>/tests/setup/index.ts\"]},\"dependencies\":{\"@vercel/build-utils\":\"2.12.3-canary.22\",\"@zeit/fetch\":\"5.2.0\",\"async-retry\":\"1.2.3\",\"async-sema\":\"3.0.0\",\"fs-extra\":\"8.0.1\",\"ignore\":\"4.0.6\",\"ms\":\"2.1.2\",\"node-fetch\":\"2.6.1\",\"querystring\":\"^0.2.0\",\"recursive-readdir\":\"2.2.2\",\"sleep-promise\":\"8.0.1\"},\"gitHead\":\"0cacb1bdace342133fad4bd7a98354e5b2948df0\"}");
270522
+ module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"10.2.3-canary.27\",\"main\":\"dist/index.js\",\"typings\":\"dist/index.d.ts\",\"homepage\":\"https://vercel.com\",\"license\":\"MIT\",\"files\":[\"dist\"],\"repository\":{\"type\":\"git\",\"url\":\"https://github.com/vercel/vercel.git\",\"directory\":\"packages/client\"},\"scripts\":{\"build\":\"tsc\",\"test-integration-once\":\"jest --verbose --runInBand --bail tests/create-deployment.test.ts tests/create-legacy-deployment.test.ts tests/paths.test.ts\",\"test-unit\":\"jest --verbose --runInBand --bail tests/unit.*test.*\"},\"engines\":{\"node\":\">= 12\"},\"devDependencies\":{\"@types/async-retry\":\"1.4.1\",\"@types/fs-extra\":\"7.0.0\",\"@types/jest\":\"27.0.1\",\"@types/ms\":\"0.7.30\",\"@types/node\":\"12.0.4\",\"@types/node-fetch\":\"2.5.4\",\"@types/recursive-readdir\":\"2.2.0\",\"typescript\":\"4.3.4\"},\"jest\":{\"preset\":\"ts-jest\",\"testEnvironment\":\"node\",\"verbose\":false,\"setupFilesAfterEnv\":[\"<rootDir>/tests/setup/index.ts\"]},\"dependencies\":{\"@vercel/build-utils\":\"2.12.3-canary.26\",\"@zeit/fetch\":\"5.2.0\",\"async-retry\":\"1.2.3\",\"async-sema\":\"3.0.0\",\"fs-extra\":\"8.0.1\",\"ignore\":\"4.0.6\",\"ms\":\"2.1.2\",\"node-fetch\":\"2.6.1\",\"querystring\":\"^0.2.0\",\"recursive-readdir\":\"2.2.2\",\"sleep-promise\":\"8.0.1\"},\"gitHead\":\"1202ff7b2b8a821c6404a86baa12996f3078ed36\"}");
270491
270523
 
270492
270524
  /***/ }),
270493
270525