vercel 23.1.3-canary.42 → 23.1.3-canary.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +288 -257
- 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',
|
@@ -212737,7 +212737,7 @@ exports.default = def;
|
|
212737
212737
|
/***/ }),
|
212738
212738
|
|
212739
212739
|
/***/ 3734:
|
212740
|
-
/***/ (function(__unused_webpack_module, exports,
|
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(
|
212750
|
-
const toml_1 = __importDefault(
|
212751
|
-
const fs_1 =
|
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,
|
212800
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_797541__) => {
|
212801
212801
|
|
212802
212802
|
"use strict";
|
212803
212803
|
|
212804
212804
|
|
212805
212805
|
|
212806
|
-
var yaml =
|
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,
|
212815
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_797715__) => {
|
212816
212816
|
|
212817
212817
|
"use strict";
|
212818
212818
|
|
212819
212819
|
|
212820
212820
|
|
212821
|
-
var loader =
|
212822
|
-
var dumper =
|
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 =
|
212833
|
-
module.exports.Schema =
|
212834
|
-
module.exports.FAILSAFE_SCHEMA =
|
212835
|
-
module.exports.JSON_SCHEMA =
|
212836
|
-
module.exports.CORE_SCHEMA =
|
212837
|
-
module.exports.DEFAULT_SAFE_SCHEMA =
|
212838
|
-
module.exports.DEFAULT_FULL_SCHEMA =
|
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 =
|
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 =
|
212849
|
-
module.exports.SAFE_SCHEMA =
|
212850
|
-
module.exports.DEFAULT_SCHEMA =
|
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,
|
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 =
|
212937
|
-
var YAMLException =
|
212938
|
-
var DEFAULT_FULL_SCHEMA =
|
212939
|
-
var DEFAULT_SAFE_SCHEMA =
|
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,
|
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 =
|
213823
|
-
var YAMLException =
|
213824
|
-
var Mark =
|
213825
|
-
var DEFAULT_SAFE_SCHEMA =
|
213826
|
-
var DEFAULT_FULL_SCHEMA =
|
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,
|
215448
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_872104__) => {
|
215449
215449
|
|
215450
215450
|
"use strict";
|
215451
215451
|
|
215452
215452
|
|
215453
215453
|
|
215454
|
-
var common =
|
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,
|
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 =
|
215540
|
-
var YAMLException =
|
215541
|
-
var Type =
|
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,
|
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 =
|
215661
|
+
var Schema = __nested_webpack_require_876630__(6105);
|
215662
215662
|
|
215663
215663
|
|
215664
215664
|
module.exports = new Schema({
|
215665
215665
|
include: [
|
215666
|
-
|
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,
|
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 =
|
215689
|
+
var Schema = __nested_webpack_require_877100__(6105);
|
215690
215690
|
|
215691
215691
|
|
215692
215692
|
module.exports = Schema.DEFAULT = new Schema({
|
215693
215693
|
include: [
|
215694
|
-
|
215694
|
+
__nested_webpack_require_877100__(596)
|
215695
215695
|
],
|
215696
215696
|
explicit: [
|
215697
|
-
|
215698
|
-
|
215699
|
-
|
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,
|
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 =
|
215720
|
+
var Schema = __nested_webpack_require_877794__(6105);
|
215721
215721
|
|
215722
215722
|
|
215723
215723
|
module.exports = new Schema({
|
215724
215724
|
include: [
|
215725
|
-
|
215725
|
+
__nested_webpack_require_877794__(1112)
|
215726
215726
|
],
|
215727
215727
|
implicit: [
|
215728
|
-
|
215729
|
-
|
215728
|
+
__nested_webpack_require_877794__(7028),
|
215729
|
+
__nested_webpack_require_877794__(7841)
|
215730
215730
|
],
|
215731
215731
|
explicit: [
|
215732
|
-
|
215733
|
-
|
215734
|
-
|
215735
|
-
|
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,
|
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 =
|
215753
|
+
var Schema = __nested_webpack_require_878506__(6105);
|
215754
215754
|
|
215755
215755
|
|
215756
215756
|
module.exports = new Schema({
|
215757
215757
|
explicit: [
|
215758
|
-
|
215759
|
-
|
215760
|
-
|
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,
|
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 =
|
215782
|
+
var Schema = __nested_webpack_require_878892__(6105);
|
215783
215783
|
|
215784
215784
|
|
215785
215785
|
module.exports = new Schema({
|
215786
215786
|
include: [
|
215787
|
-
|
215787
|
+
__nested_webpack_require_878892__(8441)
|
215788
215788
|
],
|
215789
215789
|
implicit: [
|
215790
|
-
|
215791
|
-
|
215792
|
-
|
215793
|
-
|
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,
|
215801
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_879590__) => {
|
215802
215802
|
|
215803
215803
|
"use strict";
|
215804
215804
|
|
215805
215805
|
|
215806
|
-
var YAMLException =
|
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,
|
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 =
|
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,
|
216016
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_884666__) => {
|
216017
216017
|
|
216018
216018
|
"use strict";
|
216019
216019
|
|
216020
216020
|
|
216021
|
-
var Type =
|
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,
|
216059
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_885739__) => {
|
216060
216060
|
|
216061
216061
|
"use strict";
|
216062
216062
|
|
216063
216063
|
|
216064
|
-
var common =
|
216065
|
-
var Type =
|
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,
|
216183
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_888685__) => {
|
216184
216184
|
|
216185
216185
|
"use strict";
|
216186
216186
|
|
216187
216187
|
|
216188
|
-
var common =
|
216189
|
-
var Type =
|
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,
|
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 =
|
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,
|
216464
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_895754__) => {
|
216465
216465
|
|
216466
216466
|
"use strict";
|
216467
216467
|
|
216468
216468
|
|
216469
|
-
var Type =
|
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,
|
216532
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_897425__) => {
|
216533
216533
|
|
216534
216534
|
"use strict";
|
216535
216535
|
|
216536
216536
|
|
216537
|
-
var Type =
|
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,
|
216568
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_898096__) => {
|
216569
216569
|
|
216570
216570
|
"use strict";
|
216571
216571
|
|
216572
216572
|
|
216573
|
-
var Type =
|
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,
|
216584
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_898388__) => {
|
216585
216585
|
|
216586
216586
|
"use strict";
|
216587
216587
|
|
216588
216588
|
|
216589
|
-
var Type =
|
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,
|
216604
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_898720__) => {
|
216605
216605
|
|
216606
216606
|
"use strict";
|
216607
216607
|
|
216608
216608
|
|
216609
|
-
var Type =
|
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,
|
216646
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_899583__) => {
|
216647
216647
|
|
216648
216648
|
"use strict";
|
216649
216649
|
|
216650
216650
|
|
216651
|
-
var Type =
|
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,
|
216698
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_900707__) => {
|
216699
216699
|
|
216700
216700
|
"use strict";
|
216701
216701
|
|
216702
216702
|
|
216703
|
-
var Type =
|
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,
|
216759
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_901893__) => {
|
216760
216760
|
|
216761
216761
|
"use strict";
|
216762
216762
|
|
216763
216763
|
|
216764
|
-
var Type =
|
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,
|
216775
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_902186__) => {
|
216776
216776
|
|
216777
216777
|
"use strict";
|
216778
216778
|
|
216779
216779
|
|
216780
|
-
var Type =
|
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,
|
216812
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_902835__) => {
|
216813
216813
|
|
216814
216814
|
"use strict";
|
216815
216815
|
|
216816
216816
|
|
216817
|
-
var Type =
|
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,
|
216828
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_903126__) => {
|
216829
216829
|
|
216830
216830
|
"use strict";
|
216831
216831
|
|
216832
216832
|
|
216833
|
-
var Type =
|
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,
|
216924
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_905807__) {
|
216925
216925
|
|
216926
216926
|
"use strict";
|
216927
216927
|
|
@@ -216930,12 +216930,11 @@ 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(
|
216934
|
-
const path_1 =
|
216935
|
-
const glob_1 = __importDefault(
|
216936
|
-
const normalize_path_1 =
|
216937
|
-
const lambda_1 =
|
216938
|
-
const minimatch_1 = __importDefault(__nested_webpack_require_905797__(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);
|
216939
216938
|
/**
|
216940
216939
|
* Convert legacy Runtime to a Plugin.
|
216941
216940
|
* @param buildRuntime - a legacy build() function from a Runtime
|
@@ -216943,26 +216942,24 @@ const minimatch_1 = __importDefault(__nested_webpack_require_905797__(9566));
|
|
216943
216942
|
*/
|
216944
216943
|
function convertRuntimeToPlugin(buildRuntime, ext) {
|
216945
216944
|
// This `build()` signature should match `plugin.build()` signature in `vercel build`.
|
216946
|
-
return async function build({
|
216945
|
+
return async function build({ workPath }) {
|
216947
216946
|
const opts = { cwd: workPath };
|
216948
216947
|
const files = await glob_1.default('**', opts);
|
216949
216948
|
delete files['vercel.json']; // Builders/Runtimes didn't have vercel.json
|
216950
216949
|
const entrypoints = await glob_1.default(`api/**/*${ext}`, opts);
|
216951
216950
|
const pages = {};
|
216952
|
-
const { functions = {} } = vercelConfig;
|
216953
216951
|
const traceDir = path_1.join(workPath, '.output', 'runtime-traced-files');
|
216954
216952
|
await fs_extra_1.default.ensureDir(traceDir);
|
216955
216953
|
for (const entrypoint of Object.keys(entrypoints)) {
|
216956
|
-
const key = Object.keys(functions).find(src => src === entrypoint || minimatch_1.default(entrypoint, src)) || '';
|
216957
|
-
const config = functions[key] || {};
|
216958
216954
|
const { output } = await buildRuntime({
|
216959
216955
|
files,
|
216960
216956
|
entrypoint,
|
216961
216957
|
workPath,
|
216962
216958
|
config: {
|
216963
216959
|
zeroConfig: true,
|
216964
|
-
|
216965
|
-
|
216960
|
+
},
|
216961
|
+
meta: {
|
216962
|
+
avoidTopLevelInstall: true,
|
216966
216963
|
},
|
216967
216964
|
});
|
216968
216965
|
pages[entrypoint] = {
|
@@ -216972,7 +216969,6 @@ function convertRuntimeToPlugin(buildRuntime, ext) {
|
|
216972
216969
|
maxDuration: output.maxDuration,
|
216973
216970
|
environment: output.environment,
|
216974
216971
|
allowQuery: output.allowQuery,
|
216975
|
-
//regions: output.regions,
|
216976
216972
|
};
|
216977
216973
|
// @ts-ignore This symbol is a private API
|
216978
216974
|
const lambdaFiles = output[lambda_1.FILES_SYMBOL];
|
@@ -217005,7 +217001,7 @@ function convertRuntimeToPlugin(buildRuntime, ext) {
|
|
217005
217001
|
await fs_extra_1.default.ensureDir(path_1.dirname(nft));
|
217006
217002
|
await fs_extra_1.default.writeFile(nft, json);
|
217007
217003
|
}
|
217008
|
-
await updateFunctionsManifest({
|
217004
|
+
await updateFunctionsManifest({ workPath, pages });
|
217009
217005
|
};
|
217010
217006
|
}
|
217011
217007
|
exports.convertRuntimeToPlugin = convertRuntimeToPlugin;
|
@@ -217033,10 +217029,9 @@ async function readJson(filePath) {
|
|
217033
217029
|
}
|
217034
217030
|
/**
|
217035
217031
|
* If `.output/functions-manifest.json` exists, append to the pages
|
217036
|
-
* property. Otherwise write a new file.
|
217037
|
-
* and apply relevant `functions` property config.
|
217032
|
+
* property. Otherwise write a new file.
|
217038
217033
|
*/
|
217039
|
-
async function updateFunctionsManifest({
|
217034
|
+
async function updateFunctionsManifest({ workPath, pages, }) {
|
217040
217035
|
const functionsManifestPath = path_1.join(workPath, '.output', 'functions-manifest.json');
|
217041
217036
|
const functionsManifest = await readJson(functionsManifestPath);
|
217042
217037
|
if (!functionsManifest.version)
|
@@ -217044,16 +217039,7 @@ async function updateFunctionsManifest({ vercelConfig, workPath, pages, }) {
|
|
217044
217039
|
if (!functionsManifest.pages)
|
217045
217040
|
functionsManifest.pages = {};
|
217046
217041
|
for (const [pageKey, pageConfig] of Object.entries(pages)) {
|
217047
|
-
|
217048
|
-
sourceFile: pageKey,
|
217049
|
-
config: vercelConfig,
|
217050
|
-
});
|
217051
|
-
functionsManifest.pages[pageKey] = {
|
217052
|
-
...pageConfig,
|
217053
|
-
memory: fnConfig.memory || pageConfig.memory,
|
217054
|
-
maxDuration: fnConfig.maxDuration || pageConfig.maxDuration,
|
217055
|
-
regions: vercelConfig.regions || pageConfig.regions,
|
217056
|
-
};
|
217042
|
+
functionsManifest.pages[pageKey] = { ...pageConfig };
|
217057
217043
|
}
|
217058
217044
|
await fs_extra_1.default.writeFile(functionsManifestPath, JSON.stringify(functionsManifest));
|
217059
217045
|
}
|
@@ -217102,12 +217088,12 @@ exports.updateRoutesManifest = updateRoutesManifest;
|
|
217102
217088
|
/***/ }),
|
217103
217089
|
|
217104
217090
|
/***/ 1868:
|
217105
|
-
/***/ ((__unused_webpack_module, exports,
|
217091
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_912535__) => {
|
217106
217092
|
|
217107
217093
|
"use strict";
|
217108
217094
|
|
217109
217095
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
217110
|
-
const _1 =
|
217096
|
+
const _1 = __nested_webpack_require_912535__(2855);
|
217111
217097
|
function debug(message, ...additional) {
|
217112
217098
|
if (_1.getPlatformEnv('BUILDER_DEBUG')) {
|
217113
217099
|
console.log(message, ...additional);
|
@@ -217119,7 +217105,7 @@ exports.default = debug;
|
|
217119
217105
|
/***/ }),
|
217120
217106
|
|
217121
217107
|
/***/ 4246:
|
217122
|
-
/***/ (function(__unused_webpack_module, exports,
|
217108
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_912920__) {
|
217123
217109
|
|
217124
217110
|
"use strict";
|
217125
217111
|
|
@@ -217128,11 +217114,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
217128
217114
|
};
|
217129
217115
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
217130
217116
|
exports.detectBuilders = exports.detectOutputDirectory = exports.detectApiDirectory = exports.detectApiExtensions = exports.sortFiles = void 0;
|
217131
|
-
const minimatch_1 = __importDefault(
|
217132
|
-
const semver_1 =
|
217133
|
-
const path_1 =
|
217134
|
-
const frameworks_1 = __importDefault(
|
217135
|
-
const _1 =
|
217117
|
+
const minimatch_1 = __importDefault(__nested_webpack_require_912920__(9566));
|
217118
|
+
const semver_1 = __nested_webpack_require_912920__(2879);
|
217119
|
+
const path_1 = __nested_webpack_require_912920__(5622);
|
217120
|
+
const frameworks_1 = __importDefault(__nested_webpack_require_912920__(8438));
|
217121
|
+
const _1 = __nested_webpack_require_912920__(2855);
|
217136
217122
|
const slugToFramework = new Map(frameworks_1.default.map(f => [f.slug, f]));
|
217137
217123
|
// We need to sort the file paths by alphabet to make
|
217138
217124
|
// sure the routes stay in the same order e.g. for deduping
|
@@ -218191,7 +218177,7 @@ function getSuggestion(topLevelProp, additionalProperty) {
|
|
218191
218177
|
/***/ }),
|
218192
218178
|
|
218193
218179
|
/***/ 2397:
|
218194
|
-
/***/ (function(__unused_webpack_module, exports,
|
218180
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_952304__) {
|
218195
218181
|
|
218196
218182
|
"use strict";
|
218197
218183
|
|
@@ -218199,8 +218185,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218199
218185
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
218200
218186
|
};
|
218201
218187
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218202
|
-
const assert_1 = __importDefault(
|
218203
|
-
const into_stream_1 = __importDefault(
|
218188
|
+
const assert_1 = __importDefault(__nested_webpack_require_952304__(2357));
|
218189
|
+
const into_stream_1 = __importDefault(__nested_webpack_require_952304__(6130));
|
218204
218190
|
class FileBlob {
|
218205
218191
|
constructor({ mode = 0o100644, contentType, data }) {
|
218206
218192
|
assert_1.default(typeof mode === 'number');
|
@@ -218232,7 +218218,7 @@ exports.default = FileBlob;
|
|
218232
218218
|
/***/ }),
|
218233
218219
|
|
218234
218220
|
/***/ 9331:
|
218235
|
-
/***/ (function(__unused_webpack_module, exports,
|
218221
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_953756__) {
|
218236
218222
|
|
218237
218223
|
"use strict";
|
218238
218224
|
|
@@ -218240,11 +218226,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218240
218226
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
218241
218227
|
};
|
218242
218228
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218243
|
-
const assert_1 = __importDefault(
|
218244
|
-
const fs_extra_1 = __importDefault(
|
218245
|
-
const multistream_1 = __importDefault(
|
218246
|
-
const path_1 = __importDefault(
|
218247
|
-
const async_sema_1 = __importDefault(
|
218229
|
+
const assert_1 = __importDefault(__nested_webpack_require_953756__(2357));
|
218230
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_953756__(5392));
|
218231
|
+
const multistream_1 = __importDefault(__nested_webpack_require_953756__(8179));
|
218232
|
+
const path_1 = __importDefault(__nested_webpack_require_953756__(5622));
|
218233
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_953756__(5758));
|
218248
218234
|
const semaToPreventEMFILE = new async_sema_1.default(20);
|
218249
218235
|
class FileFsRef {
|
218250
218236
|
constructor({ mode = 0o100644, contentType, fsPath }) {
|
@@ -218310,7 +218296,7 @@ exports.default = FileFsRef;
|
|
218310
218296
|
/***/ }),
|
218311
218297
|
|
218312
218298
|
/***/ 5187:
|
218313
|
-
/***/ (function(__unused_webpack_module, exports,
|
218299
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_956560__) {
|
218314
218300
|
|
218315
218301
|
"use strict";
|
218316
218302
|
|
@@ -218318,11 +218304,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218318
218304
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
218319
218305
|
};
|
218320
218306
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218321
|
-
const assert_1 = __importDefault(
|
218322
|
-
const node_fetch_1 = __importDefault(
|
218323
|
-
const multistream_1 = __importDefault(
|
218324
|
-
const async_retry_1 = __importDefault(
|
218325
|
-
const async_sema_1 = __importDefault(
|
218307
|
+
const assert_1 = __importDefault(__nested_webpack_require_956560__(2357));
|
218308
|
+
const node_fetch_1 = __importDefault(__nested_webpack_require_956560__(2197));
|
218309
|
+
const multistream_1 = __importDefault(__nested_webpack_require_956560__(8179));
|
218310
|
+
const async_retry_1 = __importDefault(__nested_webpack_require_956560__(3691));
|
218311
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_956560__(5758));
|
218326
218312
|
const semaToDownloadFromS3 = new async_sema_1.default(5);
|
218327
218313
|
class BailableError extends Error {
|
218328
218314
|
constructor(...args) {
|
@@ -218403,7 +218389,7 @@ exports.default = FileRef;
|
|
218403
218389
|
/***/ }),
|
218404
218390
|
|
218405
218391
|
/***/ 1611:
|
218406
|
-
/***/ (function(__unused_webpack_module, exports,
|
218392
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_959961__) {
|
218407
218393
|
|
218408
218394
|
"use strict";
|
218409
218395
|
|
@@ -218412,10 +218398,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218412
218398
|
};
|
218413
218399
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218414
218400
|
exports.isSymbolicLink = void 0;
|
218415
|
-
const path_1 = __importDefault(
|
218416
|
-
const debug_1 = __importDefault(
|
218417
|
-
const file_fs_ref_1 = __importDefault(
|
218418
|
-
const fs_extra_1 =
|
218401
|
+
const path_1 = __importDefault(__nested_webpack_require_959961__(5622));
|
218402
|
+
const debug_1 = __importDefault(__nested_webpack_require_959961__(1868));
|
218403
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_959961__(9331));
|
218404
|
+
const fs_extra_1 = __nested_webpack_require_959961__(5392);
|
218419
218405
|
const S_IFMT = 61440; /* 0170000 type of file */
|
218420
218406
|
const S_IFLNK = 40960; /* 0120000 symbolic link */
|
218421
218407
|
function isSymbolicLink(mode) {
|
@@ -218477,14 +218463,14 @@ exports.default = download;
|
|
218477
218463
|
/***/ }),
|
218478
218464
|
|
218479
218465
|
/***/ 3838:
|
218480
|
-
/***/ ((__unused_webpack_module, exports,
|
218466
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_962786__) => {
|
218481
218467
|
|
218482
218468
|
"use strict";
|
218483
218469
|
|
218484
218470
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218485
|
-
const path_1 =
|
218486
|
-
const os_1 =
|
218487
|
-
const fs_extra_1 =
|
218471
|
+
const path_1 = __nested_webpack_require_962786__(5622);
|
218472
|
+
const os_1 = __nested_webpack_require_962786__(2087);
|
218473
|
+
const fs_extra_1 = __nested_webpack_require_962786__(5392);
|
218488
218474
|
async function getWritableDirectory() {
|
218489
218475
|
const name = Math.floor(Math.random() * 0x7fffffff).toString(16);
|
218490
218476
|
const directory = path_1.join(os_1.tmpdir(), name);
|
@@ -218497,7 +218483,7 @@ exports.default = getWritableDirectory;
|
|
218497
218483
|
/***/ }),
|
218498
218484
|
|
218499
218485
|
/***/ 4240:
|
218500
|
-
/***/ (function(__unused_webpack_module, exports,
|
218486
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_963366__) {
|
218501
218487
|
|
218502
218488
|
"use strict";
|
218503
218489
|
|
@@ -218505,13 +218491,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218505
218491
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
218506
218492
|
};
|
218507
218493
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218508
|
-
const path_1 = __importDefault(
|
218509
|
-
const assert_1 = __importDefault(
|
218510
|
-
const glob_1 = __importDefault(
|
218511
|
-
const util_1 =
|
218512
|
-
const fs_extra_1 =
|
218513
|
-
const normalize_path_1 =
|
218514
|
-
const file_fs_ref_1 = __importDefault(
|
218494
|
+
const path_1 = __importDefault(__nested_webpack_require_963366__(5622));
|
218495
|
+
const assert_1 = __importDefault(__nested_webpack_require_963366__(2357));
|
218496
|
+
const glob_1 = __importDefault(__nested_webpack_require_963366__(1104));
|
218497
|
+
const util_1 = __nested_webpack_require_963366__(1669);
|
218498
|
+
const fs_extra_1 = __nested_webpack_require_963366__(5392);
|
218499
|
+
const normalize_path_1 = __nested_webpack_require_963366__(6261);
|
218500
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_963366__(9331));
|
218515
218501
|
const vanillaGlob = util_1.promisify(glob_1.default);
|
218516
218502
|
async function glob(pattern, opts, mountpoint) {
|
218517
218503
|
let options;
|
@@ -218557,7 +218543,7 @@ exports.default = glob;
|
|
218557
218543
|
/***/ }),
|
218558
218544
|
|
218559
218545
|
/***/ 7903:
|
218560
|
-
/***/ (function(__unused_webpack_module, exports,
|
218546
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_965562__) {
|
218561
218547
|
|
218562
218548
|
"use strict";
|
218563
218549
|
|
@@ -218566,9 +218552,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218566
218552
|
};
|
218567
218553
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218568
218554
|
exports.getSupportedNodeVersion = exports.getDiscontinuedNodeVersions = exports.getLatestNodeVersion = void 0;
|
218569
|
-
const semver_1 =
|
218570
|
-
const errors_1 =
|
218571
|
-
const debug_1 = __importDefault(
|
218555
|
+
const semver_1 = __nested_webpack_require_965562__(2879);
|
218556
|
+
const errors_1 = __nested_webpack_require_965562__(3983);
|
218557
|
+
const debug_1 = __importDefault(__nested_webpack_require_965562__(1868));
|
218572
218558
|
const allOptions = [
|
218573
218559
|
{ major: 14, range: '14.x', runtime: 'nodejs14.x' },
|
218574
218560
|
{ major: 12, range: '12.x', runtime: 'nodejs12.x' },
|
@@ -218662,7 +218648,7 @@ exports.normalizePath = normalizePath;
|
|
218662
218648
|
/***/ }),
|
218663
218649
|
|
218664
218650
|
/***/ 7792:
|
218665
|
-
/***/ (function(__unused_webpack_module, exports,
|
218651
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_969430__) {
|
218666
218652
|
|
218667
218653
|
"use strict";
|
218668
218654
|
|
@@ -218671,9 +218657,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218671
218657
|
};
|
218672
218658
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218673
218659
|
exports.readConfigFile = void 0;
|
218674
|
-
const js_yaml_1 = __importDefault(
|
218675
|
-
const toml_1 = __importDefault(
|
218676
|
-
const fs_extra_1 =
|
218660
|
+
const js_yaml_1 = __importDefault(__nested_webpack_require_969430__(6540));
|
218661
|
+
const toml_1 = __importDefault(__nested_webpack_require_969430__(9434));
|
218662
|
+
const fs_extra_1 = __nested_webpack_require_969430__(5392);
|
218677
218663
|
async function readFileOrNull(file) {
|
218678
218664
|
try {
|
218679
218665
|
const data = await fs_extra_1.readFile(file);
|
@@ -218728,7 +218714,7 @@ exports.default = rename;
|
|
218728
218714
|
/***/ }),
|
218729
218715
|
|
218730
218716
|
/***/ 1442:
|
218731
|
-
/***/ (function(__unused_webpack_module, exports,
|
218717
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_971223__) {
|
218732
218718
|
|
218733
218719
|
"use strict";
|
218734
218720
|
|
@@ -218737,14 +218723,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218737
218723
|
};
|
218738
218724
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218739
218725
|
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;
|
218740
|
-
const assert_1 = __importDefault(
|
218741
|
-
const fs_extra_1 = __importDefault(
|
218742
|
-
const path_1 = __importDefault(
|
218743
|
-
const debug_1 = __importDefault(
|
218744
|
-
const cross_spawn_1 = __importDefault(
|
218745
|
-
const util_1 =
|
218746
|
-
const errors_1 =
|
218747
|
-
const node_version_1 =
|
218726
|
+
const assert_1 = __importDefault(__nested_webpack_require_971223__(2357));
|
218727
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_971223__(5392));
|
218728
|
+
const path_1 = __importDefault(__nested_webpack_require_971223__(5622));
|
218729
|
+
const debug_1 = __importDefault(__nested_webpack_require_971223__(1868));
|
218730
|
+
const cross_spawn_1 = __importDefault(__nested_webpack_require_971223__(7618));
|
218731
|
+
const util_1 = __nested_webpack_require_971223__(1669);
|
218732
|
+
const errors_1 = __nested_webpack_require_971223__(3983);
|
218733
|
+
const node_version_1 = __nested_webpack_require_971223__(7903);
|
218748
218734
|
function spawnAsync(command, args, opts = {}) {
|
218749
218735
|
return new Promise((resolve, reject) => {
|
218750
218736
|
const stderrLogs = [];
|
@@ -219055,7 +219041,7 @@ exports.installDependencies = util_1.deprecate(runNpmInstall, 'installDependenci
|
|
219055
219041
|
/***/ }),
|
219056
219042
|
|
219057
219043
|
/***/ 2560:
|
219058
|
-
/***/ (function(__unused_webpack_module, exports,
|
219044
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_985213__) {
|
219059
219045
|
|
219060
219046
|
"use strict";
|
219061
219047
|
|
@@ -219063,7 +219049,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219063
219049
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
219064
219050
|
};
|
219065
219051
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219066
|
-
const end_of_stream_1 = __importDefault(
|
219052
|
+
const end_of_stream_1 = __importDefault(__nested_webpack_require_985213__(687));
|
219067
219053
|
function streamToBuffer(stream) {
|
219068
219054
|
return new Promise((resolve, reject) => {
|
219069
219055
|
const buffers = [];
|
@@ -219092,7 +219078,7 @@ exports.default = streamToBuffer;
|
|
219092
219078
|
/***/ }),
|
219093
219079
|
|
219094
219080
|
/***/ 2855:
|
219095
|
-
/***/ (function(__unused_webpack_module, exports,
|
219081
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_986281__) {
|
219096
219082
|
|
219097
219083
|
"use strict";
|
219098
219084
|
|
@@ -219123,28 +219109,28 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219123
219109
|
};
|
219124
219110
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219125
219111
|
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;
|
219126
|
-
const file_blob_1 = __importDefault(
|
219112
|
+
const file_blob_1 = __importDefault(__nested_webpack_require_986281__(2397));
|
219127
219113
|
exports.FileBlob = file_blob_1.default;
|
219128
|
-
const file_fs_ref_1 = __importDefault(
|
219114
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_986281__(9331));
|
219129
219115
|
exports.FileFsRef = file_fs_ref_1.default;
|
219130
|
-
const file_ref_1 = __importDefault(
|
219116
|
+
const file_ref_1 = __importDefault(__nested_webpack_require_986281__(5187));
|
219131
219117
|
exports.FileRef = file_ref_1.default;
|
219132
|
-
const lambda_1 =
|
219118
|
+
const lambda_1 = __nested_webpack_require_986281__(6721);
|
219133
219119
|
Object.defineProperty(exports, "Lambda", ({ enumerable: true, get: function () { return lambda_1.Lambda; } }));
|
219134
219120
|
Object.defineProperty(exports, "createLambda", ({ enumerable: true, get: function () { return lambda_1.createLambda; } }));
|
219135
219121
|
Object.defineProperty(exports, "getLambdaOptionsFromFunction", ({ enumerable: true, get: function () { return lambda_1.getLambdaOptionsFromFunction; } }));
|
219136
|
-
const prerender_1 =
|
219122
|
+
const prerender_1 = __nested_webpack_require_986281__(2850);
|
219137
219123
|
Object.defineProperty(exports, "Prerender", ({ enumerable: true, get: function () { return prerender_1.Prerender; } }));
|
219138
|
-
const download_1 = __importStar(
|
219124
|
+
const download_1 = __importStar(__nested_webpack_require_986281__(1611));
|
219139
219125
|
exports.download = download_1.default;
|
219140
219126
|
Object.defineProperty(exports, "isSymbolicLink", ({ enumerable: true, get: function () { return download_1.isSymbolicLink; } }));
|
219141
|
-
const get_writable_directory_1 = __importDefault(
|
219127
|
+
const get_writable_directory_1 = __importDefault(__nested_webpack_require_986281__(3838));
|
219142
219128
|
exports.getWriteableDirectory = get_writable_directory_1.default;
|
219143
|
-
const glob_1 = __importDefault(
|
219129
|
+
const glob_1 = __importDefault(__nested_webpack_require_986281__(4240));
|
219144
219130
|
exports.glob = glob_1.default;
|
219145
|
-
const rename_1 = __importDefault(
|
219131
|
+
const rename_1 = __importDefault(__nested_webpack_require_986281__(6718));
|
219146
219132
|
exports.rename = rename_1.default;
|
219147
|
-
const run_user_scripts_1 =
|
219133
|
+
const run_user_scripts_1 = __nested_webpack_require_986281__(1442);
|
219148
219134
|
Object.defineProperty(exports, "execAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.execAsync; } }));
|
219149
219135
|
Object.defineProperty(exports, "spawnAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.spawnAsync; } }));
|
219150
219136
|
Object.defineProperty(exports, "execCommand", ({ enumerable: true, get: function () { return run_user_scripts_1.execCommand; } }));
|
@@ -219161,36 +219147,36 @@ Object.defineProperty(exports, "getNodeVersion", ({ enumerable: true, get: funct
|
|
219161
219147
|
Object.defineProperty(exports, "getSpawnOptions", ({ enumerable: true, get: function () { return run_user_scripts_1.getSpawnOptions; } }));
|
219162
219148
|
Object.defineProperty(exports, "getNodeBinPath", ({ enumerable: true, get: function () { return run_user_scripts_1.getNodeBinPath; } }));
|
219163
219149
|
Object.defineProperty(exports, "scanParentDirs", ({ enumerable: true, get: function () { return run_user_scripts_1.scanParentDirs; } }));
|
219164
|
-
const node_version_1 =
|
219150
|
+
const node_version_1 = __nested_webpack_require_986281__(7903);
|
219165
219151
|
Object.defineProperty(exports, "getLatestNodeVersion", ({ enumerable: true, get: function () { return node_version_1.getLatestNodeVersion; } }));
|
219166
219152
|
Object.defineProperty(exports, "getDiscontinuedNodeVersions", ({ enumerable: true, get: function () { return node_version_1.getDiscontinuedNodeVersions; } }));
|
219167
|
-
const errors_1 =
|
219168
|
-
const stream_to_buffer_1 = __importDefault(
|
219153
|
+
const errors_1 = __nested_webpack_require_986281__(3983);
|
219154
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_986281__(2560));
|
219169
219155
|
exports.streamToBuffer = stream_to_buffer_1.default;
|
219170
|
-
const should_serve_1 = __importDefault(
|
219156
|
+
const should_serve_1 = __importDefault(__nested_webpack_require_986281__(2564));
|
219171
219157
|
exports.shouldServe = should_serve_1.default;
|
219172
|
-
const debug_1 = __importDefault(
|
219158
|
+
const debug_1 = __importDefault(__nested_webpack_require_986281__(1868));
|
219173
219159
|
exports.debug = debug_1.default;
|
219174
|
-
var detect_builders_1 =
|
219160
|
+
var detect_builders_1 = __nested_webpack_require_986281__(4246);
|
219175
219161
|
Object.defineProperty(exports, "detectBuilders", ({ enumerable: true, get: function () { return detect_builders_1.detectBuilders; } }));
|
219176
219162
|
Object.defineProperty(exports, "detectOutputDirectory", ({ enumerable: true, get: function () { return detect_builders_1.detectOutputDirectory; } }));
|
219177
219163
|
Object.defineProperty(exports, "detectApiDirectory", ({ enumerable: true, get: function () { return detect_builders_1.detectApiDirectory; } }));
|
219178
219164
|
Object.defineProperty(exports, "detectApiExtensions", ({ enumerable: true, get: function () { return detect_builders_1.detectApiExtensions; } }));
|
219179
|
-
var detect_framework_1 =
|
219165
|
+
var detect_framework_1 = __nested_webpack_require_986281__(5224);
|
219180
219166
|
Object.defineProperty(exports, "detectFramework", ({ enumerable: true, get: function () { return detect_framework_1.detectFramework; } }));
|
219181
|
-
var filesystem_1 =
|
219167
|
+
var filesystem_1 = __nested_webpack_require_986281__(461);
|
219182
219168
|
Object.defineProperty(exports, "DetectorFilesystem", ({ enumerable: true, get: function () { return filesystem_1.DetectorFilesystem; } }));
|
219183
|
-
var read_config_file_1 =
|
219169
|
+
var read_config_file_1 = __nested_webpack_require_986281__(7792);
|
219184
219170
|
Object.defineProperty(exports, "readConfigFile", ({ enumerable: true, get: function () { return read_config_file_1.readConfigFile; } }));
|
219185
|
-
var normalize_path_1 =
|
219171
|
+
var normalize_path_1 = __nested_webpack_require_986281__(6261);
|
219186
219172
|
Object.defineProperty(exports, "normalizePath", ({ enumerable: true, get: function () { return normalize_path_1.normalizePath; } }));
|
219187
|
-
var convert_runtime_to_plugin_1 =
|
219173
|
+
var convert_runtime_to_plugin_1 = __nested_webpack_require_986281__(7276);
|
219188
219174
|
Object.defineProperty(exports, "convertRuntimeToPlugin", ({ enumerable: true, get: function () { return convert_runtime_to_plugin_1.convertRuntimeToPlugin; } }));
|
219189
219175
|
Object.defineProperty(exports, "updateFunctionsManifest", ({ enumerable: true, get: function () { return convert_runtime_to_plugin_1.updateFunctionsManifest; } }));
|
219190
219176
|
Object.defineProperty(exports, "updateRoutesManifest", ({ enumerable: true, get: function () { return convert_runtime_to_plugin_1.updateRoutesManifest; } }));
|
219191
|
-
__exportStar(
|
219192
|
-
__exportStar(
|
219193
|
-
__exportStar(
|
219177
|
+
__exportStar(__nested_webpack_require_986281__(2416), exports);
|
219178
|
+
__exportStar(__nested_webpack_require_986281__(5748), exports);
|
219179
|
+
__exportStar(__nested_webpack_require_986281__(3983), exports);
|
219194
219180
|
/**
|
219195
219181
|
* Helper function to support both `@vercel` and legacy `@now` official Runtimes.
|
219196
219182
|
*/
|
@@ -219235,7 +219221,7 @@ exports.getPlatformEnv = getPlatformEnv;
|
|
219235
219221
|
/***/ }),
|
219236
219222
|
|
219237
219223
|
/***/ 6721:
|
219238
|
-
/***/ (function(__unused_webpack_module, exports,
|
219224
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_996745__) {
|
219239
219225
|
|
219240
219226
|
"use strict";
|
219241
219227
|
|
@@ -219244,13 +219230,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219244
219230
|
};
|
219245
219231
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219246
219232
|
exports.getLambdaOptionsFromFunction = exports.createZip = exports.createLambda = exports.Lambda = exports.FILES_SYMBOL = void 0;
|
219247
|
-
const assert_1 = __importDefault(
|
219248
|
-
const async_sema_1 = __importDefault(
|
219249
|
-
const yazl_1 =
|
219250
|
-
const minimatch_1 = __importDefault(
|
219251
|
-
const fs_extra_1 =
|
219252
|
-
const download_1 =
|
219253
|
-
const stream_to_buffer_1 = __importDefault(
|
219233
|
+
const assert_1 = __importDefault(__nested_webpack_require_996745__(2357));
|
219234
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_996745__(5758));
|
219235
|
+
const yazl_1 = __nested_webpack_require_996745__(1223);
|
219236
|
+
const minimatch_1 = __importDefault(__nested_webpack_require_996745__(9566));
|
219237
|
+
const fs_extra_1 = __nested_webpack_require_996745__(5392);
|
219238
|
+
const download_1 = __nested_webpack_require_996745__(1611);
|
219239
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_996745__(2560));
|
219254
219240
|
exports.FILES_SYMBOL = Symbol('files');
|
219255
219241
|
class Lambda {
|
219256
219242
|
constructor({ zipBuffer, handler, runtime, maxDuration, memory, environment, allowQuery, regions, }) {
|
@@ -219479,12 +219465,12 @@ exports.buildsSchema = {
|
|
219479
219465
|
/***/ }),
|
219480
219466
|
|
219481
219467
|
/***/ 2564:
|
219482
|
-
/***/ ((__unused_webpack_module, exports,
|
219468
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_1005255__) => {
|
219483
219469
|
|
219484
219470
|
"use strict";
|
219485
219471
|
|
219486
219472
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219487
|
-
const path_1 =
|
219473
|
+
const path_1 = __nested_webpack_require_1005255__(5622);
|
219488
219474
|
function shouldServe({ entrypoint, files, requestPath, }) {
|
219489
219475
|
requestPath = requestPath.replace(/\/$/, ''); // sanitize trailing '/'
|
219490
219476
|
entrypoint = entrypoint.replace(/\\/, '/'); // windows compatibility
|
@@ -219713,7 +219699,7 @@ module.exports = __webpack_require__(78761);
|
|
219713
219699
|
/******/ var __webpack_module_cache__ = {};
|
219714
219700
|
/******/
|
219715
219701
|
/******/ // The require function
|
219716
|
-
/******/ function
|
219702
|
+
/******/ function __nested_webpack_require_1104894__(moduleId) {
|
219717
219703
|
/******/ // Check if module is in cache
|
219718
219704
|
/******/ if(__webpack_module_cache__[moduleId]) {
|
219719
219705
|
/******/ return __webpack_module_cache__[moduleId].exports;
|
@@ -219728,7 +219714,7 @@ module.exports = __webpack_require__(78761);
|
|
219728
219714
|
/******/ // Execute the module function
|
219729
219715
|
/******/ var threw = true;
|
219730
219716
|
/******/ try {
|
219731
|
-
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports,
|
219717
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_1104894__);
|
219732
219718
|
/******/ threw = false;
|
219733
219719
|
/******/ } finally {
|
219734
219720
|
/******/ if(threw) delete __webpack_module_cache__[moduleId];
|
@@ -219741,11 +219727,11 @@ module.exports = __webpack_require__(78761);
|
|
219741
219727
|
/************************************************************************/
|
219742
219728
|
/******/ /* webpack/runtime/compat */
|
219743
219729
|
/******/
|
219744
|
-
/******/
|
219730
|
+
/******/ __nested_webpack_require_1104894__.ab = __dirname + "/";/************************************************************************/
|
219745
219731
|
/******/ // module exports must be returned from runtime so entry inlining is disabled
|
219746
219732
|
/******/ // startup
|
219747
219733
|
/******/ // Load entry module and return exports
|
219748
|
-
/******/ return
|
219734
|
+
/******/ return __nested_webpack_require_1104894__(2855);
|
219749
219735
|
/******/ })()
|
219750
219736
|
;
|
219751
219737
|
|
@@ -242096,7 +242082,7 @@ exports.frameworks = [
|
|
242096
242082
|
name: 'Remix',
|
242097
242083
|
slug: 'remix',
|
242098
242084
|
demo: 'https://remix.examples.vercel.com',
|
242099
|
-
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/remix.svg',
|
242085
|
+
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/remix-no-shadow.svg',
|
242100
242086
|
tagline: 'Build Better Websites',
|
242101
242087
|
description: 'A new Remix app — the result of running `npx create-remix`.',
|
242102
242088
|
website: 'https://remix.run',
|
@@ -249819,7 +249805,7 @@ async function main(client) {
|
|
249819
249805
|
error: (...args) => client.output.error(args.join(' ')),
|
249820
249806
|
});
|
249821
249807
|
// Set process.env with loaded environment variables
|
249822
|
-
|
249808
|
+
env_1.processEnv(loadedEnvFiles);
|
249823
249809
|
const spawnOpts = {
|
249824
249810
|
env: { ...combinedEnv, VERCEL: '1' },
|
249825
249811
|
};
|
@@ -249908,6 +249894,19 @@ async function main(client) {
|
|
249908
249894
|
}
|
249909
249895
|
// Clean the output directory
|
249910
249896
|
fs_extra_1.default.removeSync(path_1.join(cwd, OUTPUT_DIR));
|
249897
|
+
if (framework && process.env.VERCEL_URL && 'envPrefix' in framework) {
|
249898
|
+
for (const key of Object.keys(process.env)) {
|
249899
|
+
if (key.startsWith('VERCEL_')) {
|
249900
|
+
const newKey = `${framework.envPrefix}${key}`;
|
249901
|
+
// Set `process.env` and `spawnOpts.env` to make sure the variables are
|
249902
|
+
// available to the `build` step and the CLI Plugins.
|
249903
|
+
process.env[newKey] = process.env[newKey] || process.env[key];
|
249904
|
+
spawnOpts.env[newKey] = process.env[newKey];
|
249905
|
+
}
|
249906
|
+
}
|
249907
|
+
}
|
249908
|
+
// Required for Next.js to produce the correct `.nft.json` files.
|
249909
|
+
spawnOpts.env.NEXT_PRIVATE_OUTPUT_TRACE_ROOT = baseDir;
|
249911
249910
|
// Yarn v2 PnP mode may be activated, so force
|
249912
249911
|
// "node-modules" linker style
|
249913
249912
|
const env = {
|
@@ -249933,19 +249932,32 @@ async function main(client) {
|
|
249933
249932
|
cwd,
|
249934
249933
|
});
|
249935
249934
|
}
|
249936
|
-
// don't trust framework detection here because they might be switching to next on a branch
|
249937
|
-
const isNextJs = fs_extra_1.default.existsSync(path_1.join(cwd, '.next'));
|
249938
249935
|
if (!fs_extra_1.default.existsSync(path_1.join(cwd, OUTPUT_DIR))) {
|
249939
|
-
let
|
249940
|
-
|
249941
|
-
if
|
249942
|
-
|
249943
|
-
|
249944
|
-
|
249936
|
+
let dotNextDir = null;
|
249937
|
+
// If a custom `outputDirectory` was set, we'll need to verify
|
249938
|
+
// if it's `.next` output, or just static output.
|
249939
|
+
const userOutputDirectory = project.settings.outputDirectory;
|
249940
|
+
if (typeof userOutputDirectory === 'string') {
|
249941
|
+
if (fs_extra_1.default.existsSync(path_1.join(cwd, userOutputDirectory, 'BUILD_ID'))) {
|
249942
|
+
dotNextDir = path_1.join(cwd, userOutputDirectory);
|
249943
|
+
client.output.debug(`Consider ${param_1.default(userOutputDirectory)} as ${param_1.default('.next')} output.`);
|
249944
|
+
}
|
249945
|
+
}
|
249946
|
+
else if (fs_extra_1.default.existsSync(path_1.join(cwd, '.next'))) {
|
249947
|
+
dotNextDir = path_1.join(cwd, '.next');
|
249948
|
+
client.output.debug(`Found ${param_1.default('.next')} directory.`);
|
249949
|
+
}
|
249950
|
+
// We cannot rely on the `framework` alone, as it might be a static export,
|
249951
|
+
// and the current build might use a differnt project that's not in the settings.
|
249952
|
+
const isNextOutput = Boolean(dotNextDir);
|
249953
|
+
const outputDir = isNextOutput ? OUTPUT_DIR : path_1.join(OUTPUT_DIR, 'static');
|
249954
|
+
const distDir = dotNextDir ||
|
249955
|
+
userOutputDirectory ||
|
249956
|
+
(await framework.getFsOutputDir(cwd));
|
249945
249957
|
await fs_extra_1.default.ensureDir(path_1.join(cwd, outputDir));
|
249946
|
-
const
|
249958
|
+
const copyStamp = stamp_1.default();
|
249947
249959
|
client.output.spinner(`Copying files from ${param_1.default(distDir)} to ${param_1.default(outputDir)}`);
|
249948
|
-
const files = await glob(path_1.join(
|
249960
|
+
const files = await glob(path_1.join(path_1.relative(cwd, distDir), '**'), {
|
249949
249961
|
ignore: [
|
249950
249962
|
'node_modules/**',
|
249951
249963
|
'.vercel/**',
|
@@ -249977,6 +249989,7 @@ async function main(client) {
|
|
249977
249989
|
if (!fs_extra_1.default.existsSync(buildManifestPath)) {
|
249978
249990
|
client.output.debug(`Generating build manifest: ${param_1.default(buildManifestPath)}`);
|
249979
249991
|
const buildManifest = {
|
249992
|
+
version: 1,
|
249980
249993
|
cache: framework.cachePattern ? [framework.cachePattern] : [],
|
249981
249994
|
};
|
249982
249995
|
await fs_extra_1.default.writeJSON(buildManifestPath, buildManifest, { spaces: 2 });
|
@@ -249996,7 +250009,7 @@ async function main(client) {
|
|
249996
250009
|
await fs_extra_1.default.writeJSON(path_1.join(cwd, OUTPUT_DIR, 'routes-manifest.json'), routesManifest, { spaces: 2 });
|
249997
250010
|
}
|
249998
250011
|
// Special Next.js processing.
|
249999
|
-
if (
|
250012
|
+
if (isNextOutput) {
|
250000
250013
|
// The contents of `.output/static` should be placed inside of `.output/static/_next/static`
|
250001
250014
|
const tempStatic = '___static';
|
250002
250015
|
await fs_extra_1.default.rename(path_1.join(cwd, OUTPUT_DIR, 'static'), path_1.join(cwd, OUTPUT_DIR, tempStatic));
|
@@ -250029,23 +250042,24 @@ async function main(client) {
|
|
250029
250042
|
// `public`, then`static`). We can't read both at the same time because that would mean we'd
|
250030
250043
|
// read public for old Next.js versions that don't support it, which might be breaking (and
|
250031
250044
|
// we don't want to make vercel build specific framework versions).
|
250045
|
+
const nextSrcDirectory = path_1.dirname(distDir);
|
250032
250046
|
const publicFiles = await glob('public/**', {
|
250033
250047
|
nodir: true,
|
250034
250048
|
dot: true,
|
250035
|
-
cwd,
|
250049
|
+
cwd: nextSrcDirectory,
|
250036
250050
|
absolute: true,
|
250037
250051
|
});
|
250038
250052
|
if (publicFiles.length > 0) {
|
250039
|
-
await Promise.all(publicFiles.map(f => smartCopy(client, f,
|
250053
|
+
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)))));
|
250040
250054
|
}
|
250041
250055
|
else {
|
250042
250056
|
const staticFiles = await glob('static/**', {
|
250043
250057
|
nodir: true,
|
250044
250058
|
dot: true,
|
250045
|
-
cwd,
|
250059
|
+
cwd: nextSrcDirectory,
|
250046
250060
|
absolute: true,
|
250047
250061
|
});
|
250048
|
-
await Promise.all(staticFiles.map(f => smartCopy(client, f,
|
250062
|
+
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)))));
|
250049
250063
|
}
|
250050
250064
|
// Regardless of the Next.js version, we make sure that it is compatible with
|
250051
250065
|
// the Filesystem API. We get there by moving all the files needed
|
@@ -250060,6 +250074,7 @@ async function main(client) {
|
|
250060
250074
|
const nftFiles = await glob(path_1.join(OUTPUT_DIR, '**', '*.nft.json'), {
|
250061
250075
|
nodir: true,
|
250062
250076
|
dot: true,
|
250077
|
+
ignore: ['cache/**'],
|
250063
250078
|
cwd,
|
250064
250079
|
absolute: true,
|
250065
250080
|
});
|
@@ -250092,6 +250107,7 @@ async function main(client) {
|
|
250092
250107
|
baseDir,
|
250093
250108
|
outputDir: OUTPUT_DIR,
|
250094
250109
|
nftFileName: f.replace(ext, '.js.nft.json'),
|
250110
|
+
distDir,
|
250095
250111
|
nft: {
|
250096
250112
|
version: 1,
|
250097
250113
|
files: Array.from(fileList).map(fileListEntry => path_1.relative(dir, fileListEntry)),
|
@@ -250108,21 +250124,27 @@ async function main(client) {
|
|
250108
250124
|
outputDir: OUTPUT_DIR,
|
250109
250125
|
nftFileName: f,
|
250110
250126
|
nft: json,
|
250127
|
+
distDir,
|
250111
250128
|
});
|
250112
250129
|
}
|
250113
250130
|
}
|
250131
|
+
client.output.debug(`Resolve ${param_1.default('required-server-files.json')}.`);
|
250114
250132
|
const requiredServerFilesPath = path_1.join(OUTPUT_DIR, 'required-server-files.json');
|
250115
250133
|
const requiredServerFilesJson = await fs_extra_1.default.readJSON(requiredServerFilesPath);
|
250116
250134
|
await fs_extra_1.default.writeJSON(requiredServerFilesPath, {
|
250117
250135
|
...requiredServerFilesJson,
|
250118
250136
|
appDir: '.',
|
250119
250137
|
files: requiredServerFilesJson.files.map((i) => {
|
250120
|
-
const
|
250138
|
+
const originalPath = path_1.join(requiredServerFilesJson.appDir, i);
|
250139
|
+
const relPath = path_1.join(OUTPUT_DIR, path_1.relative(distDir, originalPath));
|
250140
|
+
const absolutePath = path_1.join(cwd, relPath);
|
250121
250141
|
const output = path_1.relative(baseDir, absolutePath);
|
250122
|
-
return
|
250123
|
-
|
250124
|
-
|
250125
|
-
|
250142
|
+
return relPath === output
|
250143
|
+
? relPath
|
250144
|
+
: {
|
250145
|
+
input: relPath,
|
250146
|
+
output,
|
250147
|
+
};
|
250126
250148
|
}),
|
250127
250149
|
});
|
250128
250150
|
}
|
@@ -250260,15 +250282,23 @@ function hash(buf) {
|
|
250260
250282
|
// subsequently updating the original nft file accordingly. This is done
|
250261
250283
|
// to make the `.output` directory be self-contained, so that it works
|
250262
250284
|
// properly with `vc --prebuilt`.
|
250263
|
-
async function resolveNftToOutput({ client, baseDir, outputDir, nftFileName, nft, }) {
|
250285
|
+
async function resolveNftToOutput({ client, baseDir, outputDir, nftFileName, distDir, nft, }) {
|
250264
250286
|
client.output.debug(`Processing and resolving ${nftFileName}`);
|
250265
250287
|
await fs_extra_1.default.ensureDir(path_1.join(outputDir, 'inputs'));
|
250266
250288
|
const newFilesList = [];
|
250289
|
+
// If `distDir` is a subdirectory, then the input has to be resolved to where the `.output` directory will be.
|
250290
|
+
const relNftFileName = path_1.relative(outputDir, nftFileName);
|
250291
|
+
const origNftFilename = path_1.join(distDir, relNftFileName);
|
250292
|
+
if (relNftFileName.startsWith('cache/')) {
|
250293
|
+
// No need to process the `cache/` directory.
|
250294
|
+
// Paths in it might also not be relative to `cache` itself.
|
250295
|
+
return;
|
250296
|
+
}
|
250267
250297
|
for (let fileEntity of nft.files) {
|
250268
250298
|
const relativeInput = typeof fileEntity === 'string' ? fileEntity : fileEntity.input;
|
250269
|
-
const fullInput = path_1.resolve(path_1.join(path_1.parse(
|
250299
|
+
const fullInput = path_1.resolve(path_1.join(path_1.parse(origNftFilename).dir, relativeInput));
|
250270
250300
|
// if the resolved path is NOT in the .output directory we move in it there
|
250271
|
-
if (!fullInput.includes(
|
250301
|
+
if (!fullInput.includes(distDir)) {
|
250272
250302
|
const { ext } = path_1.parse(fullInput);
|
250273
250303
|
const raw = await fs_extra_1.default.readFile(fullInput);
|
250274
250304
|
const newFilePath = path_1.join(outputDir, 'inputs', hash(raw) + ext);
|
@@ -269423,6 +269453,7 @@ async function writeProjectSettings(cwd, project, org) {
|
|
269423
269453
|
settings: {
|
269424
269454
|
buildCommand: project.buildCommand,
|
269425
269455
|
devCommand: project.devCommand,
|
269456
|
+
outputDirectory: project.outputDirectory,
|
269426
269457
|
directoryListing: project.directoryListing,
|
269427
269458
|
rootDirectory: project.rootDirectory,
|
269428
269459
|
framework: project.framework,
|
@@ -270459,7 +270490,7 @@ module.exports = JSON.parse("[\"ac\",\"com.ac\",\"edu.ac\",\"gov.ac\",\"net.ac\"
|
|
270459
270490
|
/***/ ((module) => {
|
270460
270491
|
|
270461
270492
|
"use strict";
|
270462
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"23.1.3-canary.
|
270493
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"23.1.3-canary.46\",\"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.27\",\"@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.18\"},\"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\":\"3d961ffbb9666b7db5af1456d8f196f1d0f67557\"}");
|
270463
270494
|
|
270464
270495
|
/***/ }),
|
270465
270496
|
|
@@ -270475,7 +270506,7 @@ module.exports = JSON.parse("{\"VISA\":\"Visa\",\"MASTERCARD\":\"MasterCard\",\"
|
|
270475
270506
|
/***/ ((module) => {
|
270476
270507
|
|
270477
270508
|
"use strict";
|
270478
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"10.2.3-canary.
|
270509
|
+
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"10.2.3-canary.28\",\"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.27\",\"@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\"}}");
|
270479
270510
|
|
270480
270511
|
/***/ }),
|
270481
270512
|
|