vercel 23.1.3-canary.37 → 23.1.3-canary.40
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 +462 -235
- package/package.json +6 -6
package/dist/index.js
CHANGED
@@ -210844,7 +210844,7 @@ exports.frameworks = [
|
|
210844
210844
|
tagline: 'Gatsby helps developers build blazing fast websites and apps with React.',
|
210845
210845
|
description: 'A Gatsby app, using the default starter theme and a Serverless Function API.',
|
210846
210846
|
website: 'https://gatsbyjs.org',
|
210847
|
-
sort:
|
210847
|
+
sort: 5,
|
210848
210848
|
envPrefix: 'GATSBY_',
|
210849
210849
|
detectors: {
|
210850
210850
|
every: [
|
@@ -210919,6 +210919,73 @@ exports.frameworks = [
|
|
210919
210919
|
},
|
210920
210920
|
cachePattern: '{.cache,public}/**',
|
210921
210921
|
},
|
210922
|
+
{
|
210923
|
+
name: 'Remix',
|
210924
|
+
slug: 'remix',
|
210925
|
+
demo: 'https://remix.examples.vercel.com',
|
210926
|
+
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/remix.svg',
|
210927
|
+
tagline: 'Build Better Websites',
|
210928
|
+
description: 'A new Remix app — the result of running `npx create-remix`.',
|
210929
|
+
website: 'https://remix.run',
|
210930
|
+
sort: 6,
|
210931
|
+
detectors: {
|
210932
|
+
every: [
|
210933
|
+
{
|
210934
|
+
path: 'package.json',
|
210935
|
+
matchContent: '"(dev)?(d|D)ependencies":\\s*{[^}]*"remix":\\s*".+?"[^}]*}',
|
210936
|
+
},
|
210937
|
+
],
|
210938
|
+
},
|
210939
|
+
settings: {
|
210940
|
+
installCommand: {
|
210941
|
+
placeholder: '`yarn install` or `npm install`',
|
210942
|
+
},
|
210943
|
+
buildCommand: {
|
210944
|
+
value: 'remix build',
|
210945
|
+
placeholder: '`npm run build` or `remix build`',
|
210946
|
+
},
|
210947
|
+
devCommand: {
|
210948
|
+
value: 'remix dev',
|
210949
|
+
placeholder: 'remix dev',
|
210950
|
+
},
|
210951
|
+
outputDirectory: {
|
210952
|
+
value: 'public',
|
210953
|
+
},
|
210954
|
+
},
|
210955
|
+
dependency: 'remix',
|
210956
|
+
getFsOutputDir: async () => 'public',
|
210957
|
+
getOutputDirName: async () => 'public',
|
210958
|
+
defaultRoutes: [
|
210959
|
+
{
|
210960
|
+
src: '^/build/(.*)$',
|
210961
|
+
headers: { 'cache-control': 'public, max-age=31536000, immutable' },
|
210962
|
+
continue: true,
|
210963
|
+
},
|
210964
|
+
{
|
210965
|
+
handle: 'filesystem',
|
210966
|
+
},
|
210967
|
+
{
|
210968
|
+
src: '/(.*)',
|
210969
|
+
dest: '/api',
|
210970
|
+
},
|
210971
|
+
],
|
210972
|
+
defaultRewrites: [
|
210973
|
+
{
|
210974
|
+
source: '/(.*)',
|
210975
|
+
regex: '/(.*)',
|
210976
|
+
destination: '/api',
|
210977
|
+
},
|
210978
|
+
],
|
210979
|
+
defaultHeaders: [
|
210980
|
+
{
|
210981
|
+
source: '^/build/(.*)$',
|
210982
|
+
regex: '^/build/(.*)$',
|
210983
|
+
headers: [
|
210984
|
+
{ key: 'cache-control', value: 'public, max-age=31536000, immutable' },
|
210985
|
+
],
|
210986
|
+
},
|
210987
|
+
]
|
210988
|
+
},
|
210922
210989
|
{
|
210923
210990
|
name: 'Hexo',
|
210924
210991
|
slug: 'hexo',
|
@@ -210927,7 +210994,6 @@ exports.frameworks = [
|
|
210927
210994
|
tagline: 'Hexo is a fast, simple & powerful blog framework powered by Node.js.',
|
210928
210995
|
description: 'A Hexo site, created with the Hexo CLI.',
|
210929
210996
|
website: 'https://hexo.io',
|
210930
|
-
sort: 3,
|
210931
210997
|
detectors: {
|
210932
210998
|
every: [
|
210933
210999
|
{
|
@@ -210964,7 +211030,6 @@ exports.frameworks = [
|
|
210964
211030
|
tagline: '11ty is a simpler static site generator written in JavaScript, created to be an alternative to Jekyll.',
|
210965
211031
|
description: 'An Eleventy site, created with npm init.',
|
210966
211032
|
website: 'https://www.11ty.dev',
|
210967
|
-
sort: 4,
|
210968
211033
|
detectors: {
|
210969
211034
|
every: [
|
210970
211035
|
{
|
@@ -211676,6 +211741,7 @@ exports.frameworks = [
|
|
211676
211741
|
tagline: 'Svelte lets you write high performance reactive apps with significantly less boilerplate.',
|
211677
211742
|
description: 'A basic Svelte app using the default template.',
|
211678
211743
|
website: 'https://svelte.dev',
|
211744
|
+
sort: 3,
|
211679
211745
|
detectors: {
|
211680
211746
|
every: [
|
211681
211747
|
{
|
@@ -211865,6 +211931,7 @@ exports.frameworks = [
|
|
211865
211931
|
tagline: 'Create React App allows you to get going with React in no time.',
|
211866
211932
|
description: 'A React app, bootstrapped with create-react-app, and a Serverless Function API.',
|
211867
211933
|
website: 'https://create-react-app.dev',
|
211934
|
+
sort: 4,
|
211868
211935
|
envPrefix: 'REACT_APP_',
|
211869
211936
|
detectors: {
|
211870
211937
|
some: [
|
@@ -212246,6 +212313,7 @@ exports.frameworks = [
|
|
212246
212313
|
tagline: 'Nuxt.js is the web comprehensive framework that lets you dream big with Vue.js.',
|
212247
212314
|
description: 'A Nuxt.js app, bootstrapped with create-nuxt-app.',
|
212248
212315
|
website: 'https://nuxtjs.org',
|
212316
|
+
sort: 2,
|
212249
212317
|
envPrefix: 'NUXT_ENV_',
|
212250
212318
|
detectors: {
|
212251
212319
|
every: [
|
@@ -212339,7 +212407,6 @@ exports.frameworks = [
|
|
212339
212407
|
tagline: 'Hugo is the world’s fastest framework for building websites, written in Go.',
|
212340
212408
|
description: 'A Hugo site, created with the Hugo CLI.',
|
212341
212409
|
website: 'https://gohugo.io',
|
212342
|
-
sort: 5,
|
212343
212410
|
detectors: {
|
212344
212411
|
some: [
|
212345
212412
|
{
|
@@ -212670,7 +212737,7 @@ exports.default = def;
|
|
212670
212737
|
/***/ }),
|
212671
212738
|
|
212672
212739
|
/***/ 3734:
|
212673
|
-
/***/ (function(__unused_webpack_module, exports,
|
212740
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_795929__) {
|
212674
212741
|
|
212675
212742
|
"use strict";
|
212676
212743
|
|
@@ -212679,9 +212746,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
212679
212746
|
};
|
212680
212747
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
212681
212748
|
exports.readConfigFile = void 0;
|
212682
|
-
const js_yaml_1 = __importDefault(
|
212683
|
-
const toml_1 = __importDefault(
|
212684
|
-
const fs_1 =
|
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);
|
212685
212752
|
const { readFile } = fs_1.promises;
|
212686
212753
|
async function readFileOrNull(file) {
|
212687
212754
|
try {
|
@@ -212730,13 +212797,13 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
212730
212797
|
/***/ }),
|
212731
212798
|
|
212732
212799
|
/***/ 641:
|
212733
|
-
/***/ ((module, __unused_webpack_exports,
|
212800
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_797535__) => {
|
212734
212801
|
|
212735
212802
|
"use strict";
|
212736
212803
|
|
212737
212804
|
|
212738
212805
|
|
212739
|
-
var yaml =
|
212806
|
+
var yaml = __nested_webpack_require_797535__(9633);
|
212740
212807
|
|
212741
212808
|
|
212742
212809
|
module.exports = yaml;
|
@@ -212745,14 +212812,14 @@ module.exports = yaml;
|
|
212745
212812
|
/***/ }),
|
212746
212813
|
|
212747
212814
|
/***/ 9633:
|
212748
|
-
/***/ ((module, __unused_webpack_exports,
|
212815
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_797709__) => {
|
212749
212816
|
|
212750
212817
|
"use strict";
|
212751
212818
|
|
212752
212819
|
|
212753
212820
|
|
212754
|
-
var loader =
|
212755
|
-
var dumper =
|
212821
|
+
var loader = __nested_webpack_require_797709__(4349);
|
212822
|
+
var dumper = __nested_webpack_require_797709__(8047);
|
212756
212823
|
|
212757
212824
|
|
212758
212825
|
function deprecated(name) {
|
@@ -212762,25 +212829,25 @@ function deprecated(name) {
|
|
212762
212829
|
}
|
212763
212830
|
|
212764
212831
|
|
212765
|
-
module.exports.Type =
|
212766
|
-
module.exports.Schema =
|
212767
|
-
module.exports.FAILSAFE_SCHEMA =
|
212768
|
-
module.exports.JSON_SCHEMA =
|
212769
|
-
module.exports.CORE_SCHEMA =
|
212770
|
-
module.exports.DEFAULT_SAFE_SCHEMA =
|
212771
|
-
module.exports.DEFAULT_FULL_SCHEMA =
|
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);
|
212772
212839
|
module.exports.load = loader.load;
|
212773
212840
|
module.exports.loadAll = loader.loadAll;
|
212774
212841
|
module.exports.safeLoad = loader.safeLoad;
|
212775
212842
|
module.exports.safeLoadAll = loader.safeLoadAll;
|
212776
212843
|
module.exports.dump = dumper.dump;
|
212777
212844
|
module.exports.safeDump = dumper.safeDump;
|
212778
|
-
module.exports.YAMLException =
|
212845
|
+
module.exports.YAMLException = __nested_webpack_require_797709__(3237);
|
212779
212846
|
|
212780
212847
|
// Deprecated schema names from JS-YAML 2.0.x
|
212781
|
-
module.exports.MINIMAL_SCHEMA =
|
212782
|
-
module.exports.SAFE_SCHEMA =
|
212783
|
-
module.exports.DEFAULT_SCHEMA =
|
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);
|
212784
212851
|
|
212785
212852
|
// Deprecated functions from JS-YAML 1.x.x
|
212786
212853
|
module.exports.scan = deprecated('scan');
|
@@ -212859,17 +212926,17 @@ module.exports.extend = extend;
|
|
212859
212926
|
/***/ }),
|
212860
212927
|
|
212861
212928
|
/***/ 8047:
|
212862
|
-
/***/ ((module, __unused_webpack_exports,
|
212929
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_800527__) => {
|
212863
212930
|
|
212864
212931
|
"use strict";
|
212865
212932
|
|
212866
212933
|
|
212867
212934
|
/*eslint-disable no-use-before-define*/
|
212868
212935
|
|
212869
|
-
var common =
|
212870
|
-
var YAMLException =
|
212871
|
-
var DEFAULT_FULL_SCHEMA =
|
212872
|
-
var DEFAULT_SAFE_SCHEMA =
|
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);
|
212873
212940
|
|
212874
212941
|
var _toString = Object.prototype.toString;
|
212875
212942
|
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
@@ -213745,18 +213812,18 @@ module.exports = YAMLException;
|
|
213745
213812
|
/***/ }),
|
213746
213813
|
|
213747
213814
|
/***/ 4349:
|
213748
|
-
/***/ ((module, __unused_webpack_exports,
|
213815
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_828231__) => {
|
213749
213816
|
|
213750
213817
|
"use strict";
|
213751
213818
|
|
213752
213819
|
|
213753
213820
|
/*eslint-disable max-len,no-use-before-define*/
|
213754
213821
|
|
213755
|
-
var common =
|
213756
|
-
var YAMLException =
|
213757
|
-
var Mark =
|
213758
|
-
var DEFAULT_SAFE_SCHEMA =
|
213759
|
-
var DEFAULT_FULL_SCHEMA =
|
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);
|
213760
213827
|
|
213761
213828
|
|
213762
213829
|
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
@@ -215378,13 +215445,13 @@ module.exports.safeLoad = safeLoad;
|
|
215378
215445
|
/***/ }),
|
215379
215446
|
|
215380
215447
|
/***/ 4926:
|
215381
|
-
/***/ ((module, __unused_webpack_exports,
|
215448
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_872098__) => {
|
215382
215449
|
|
215383
215450
|
"use strict";
|
215384
215451
|
|
215385
215452
|
|
215386
215453
|
|
215387
|
-
var common =
|
215454
|
+
var common = __nested_webpack_require_872098__(903);
|
215388
215455
|
|
215389
215456
|
|
215390
215457
|
function Mark(name, buffer, position, line, column) {
|
@@ -215462,16 +215529,16 @@ module.exports = Mark;
|
|
215462
215529
|
/***/ }),
|
215463
215530
|
|
215464
215531
|
/***/ 6105:
|
215465
|
-
/***/ ((module, __unused_webpack_exports,
|
215532
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_873760__) => {
|
215466
215533
|
|
215467
215534
|
"use strict";
|
215468
215535
|
|
215469
215536
|
|
215470
215537
|
/*eslint-disable max-len*/
|
215471
215538
|
|
215472
|
-
var common =
|
215473
|
-
var YAMLException =
|
215474
|
-
var Type =
|
215539
|
+
var common = __nested_webpack_require_873760__(903);
|
215540
|
+
var YAMLException = __nested_webpack_require_873760__(3237);
|
215541
|
+
var Type = __nested_webpack_require_873760__(6876);
|
215475
215542
|
|
215476
215543
|
|
215477
215544
|
function compileList(schema, name, result) {
|
@@ -215578,7 +215645,7 @@ module.exports = Schema;
|
|
215578
215645
|
/***/ }),
|
215579
215646
|
|
215580
215647
|
/***/ 1112:
|
215581
|
-
/***/ ((module, __unused_webpack_exports,
|
215648
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_876624__) => {
|
215582
215649
|
|
215583
215650
|
"use strict";
|
215584
215651
|
// Standard YAML's Core schema.
|
@@ -215591,12 +215658,12 @@ module.exports = Schema;
|
|
215591
215658
|
|
215592
215659
|
|
215593
215660
|
|
215594
|
-
var Schema =
|
215661
|
+
var Schema = __nested_webpack_require_876624__(6105);
|
215595
215662
|
|
215596
215663
|
|
215597
215664
|
module.exports = new Schema({
|
215598
215665
|
include: [
|
215599
|
-
|
215666
|
+
__nested_webpack_require_876624__(1486)
|
215600
215667
|
]
|
215601
215668
|
});
|
215602
215669
|
|
@@ -215604,7 +215671,7 @@ module.exports = new Schema({
|
|
215604
215671
|
/***/ }),
|
215605
215672
|
|
215606
215673
|
/***/ 9647:
|
215607
|
-
/***/ ((module, __unused_webpack_exports,
|
215674
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_877094__) => {
|
215608
215675
|
|
215609
215676
|
"use strict";
|
215610
215677
|
// JS-YAML's default schema for `load` function.
|
@@ -215619,17 +215686,17 @@ module.exports = new Schema({
|
|
215619
215686
|
|
215620
215687
|
|
215621
215688
|
|
215622
|
-
var Schema =
|
215689
|
+
var Schema = __nested_webpack_require_877094__(6105);
|
215623
215690
|
|
215624
215691
|
|
215625
215692
|
module.exports = Schema.DEFAULT = new Schema({
|
215626
215693
|
include: [
|
215627
|
-
|
215694
|
+
__nested_webpack_require_877094__(596)
|
215628
215695
|
],
|
215629
215696
|
explicit: [
|
215630
|
-
|
215631
|
-
|
215632
|
-
|
215697
|
+
__nested_webpack_require_877094__(5836),
|
215698
|
+
__nested_webpack_require_877094__(6841),
|
215699
|
+
__nested_webpack_require_877094__(8750)
|
215633
215700
|
]
|
215634
215701
|
});
|
215635
215702
|
|
@@ -215637,7 +215704,7 @@ module.exports = Schema.DEFAULT = new Schema({
|
|
215637
215704
|
/***/ }),
|
215638
215705
|
|
215639
215706
|
/***/ 596:
|
215640
|
-
/***/ ((module, __unused_webpack_exports,
|
215707
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_877788__) => {
|
215641
215708
|
|
215642
215709
|
"use strict";
|
215643
215710
|
// JS-YAML's default schema for `safeLoad` function.
|
@@ -215650,22 +215717,22 @@ module.exports = Schema.DEFAULT = new Schema({
|
|
215650
215717
|
|
215651
215718
|
|
215652
215719
|
|
215653
|
-
var Schema =
|
215720
|
+
var Schema = __nested_webpack_require_877788__(6105);
|
215654
215721
|
|
215655
215722
|
|
215656
215723
|
module.exports = new Schema({
|
215657
215724
|
include: [
|
215658
|
-
|
215725
|
+
__nested_webpack_require_877788__(1112)
|
215659
215726
|
],
|
215660
215727
|
implicit: [
|
215661
|
-
|
215662
|
-
|
215728
|
+
__nested_webpack_require_877788__(7028),
|
215729
|
+
__nested_webpack_require_877788__(7841)
|
215663
215730
|
],
|
215664
215731
|
explicit: [
|
215665
|
-
|
215666
|
-
|
215667
|
-
|
215668
|
-
|
215732
|
+
__nested_webpack_require_877788__(8675),
|
215733
|
+
__nested_webpack_require_877788__(3498),
|
215734
|
+
__nested_webpack_require_877788__(679),
|
215735
|
+
__nested_webpack_require_877788__(7205)
|
215669
215736
|
]
|
215670
215737
|
});
|
215671
215738
|
|
@@ -215673,7 +215740,7 @@ module.exports = new Schema({
|
|
215673
215740
|
/***/ }),
|
215674
215741
|
|
215675
215742
|
/***/ 8441:
|
215676
|
-
/***/ ((module, __unused_webpack_exports,
|
215743
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_878500__) => {
|
215677
215744
|
|
215678
215745
|
"use strict";
|
215679
215746
|
// Standard YAML's Failsafe schema.
|
@@ -215683,14 +215750,14 @@ module.exports = new Schema({
|
|
215683
215750
|
|
215684
215751
|
|
215685
215752
|
|
215686
|
-
var Schema =
|
215753
|
+
var Schema = __nested_webpack_require_878500__(6105);
|
215687
215754
|
|
215688
215755
|
|
215689
215756
|
module.exports = new Schema({
|
215690
215757
|
explicit: [
|
215691
|
-
|
215692
|
-
|
215693
|
-
|
215758
|
+
__nested_webpack_require_878500__(5348),
|
215759
|
+
__nested_webpack_require_878500__(7330),
|
215760
|
+
__nested_webpack_require_878500__(293)
|
215694
215761
|
]
|
215695
215762
|
});
|
215696
215763
|
|
@@ -215698,7 +215765,7 @@ module.exports = new Schema({
|
|
215698
215765
|
/***/ }),
|
215699
215766
|
|
215700
215767
|
/***/ 1486:
|
215701
|
-
/***/ ((module, __unused_webpack_exports,
|
215768
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_878886__) => {
|
215702
215769
|
|
215703
215770
|
"use strict";
|
215704
215771
|
// Standard YAML's JSON schema.
|
@@ -215712,18 +215779,18 @@ module.exports = new Schema({
|
|
215712
215779
|
|
215713
215780
|
|
215714
215781
|
|
215715
|
-
var Schema =
|
215782
|
+
var Schema = __nested_webpack_require_878886__(6105);
|
215716
215783
|
|
215717
215784
|
|
215718
215785
|
module.exports = new Schema({
|
215719
215786
|
include: [
|
215720
|
-
|
215787
|
+
__nested_webpack_require_878886__(8441)
|
215721
215788
|
],
|
215722
215789
|
implicit: [
|
215723
|
-
|
215724
|
-
|
215725
|
-
|
215726
|
-
|
215790
|
+
__nested_webpack_require_878886__(9074),
|
215791
|
+
__nested_webpack_require_878886__(4308),
|
215792
|
+
__nested_webpack_require_878886__(1167),
|
215793
|
+
__nested_webpack_require_878886__(7862)
|
215727
215794
|
]
|
215728
215795
|
});
|
215729
215796
|
|
@@ -215731,12 +215798,12 @@ module.exports = new Schema({
|
|
215731
215798
|
/***/ }),
|
215732
215799
|
|
215733
215800
|
/***/ 6876:
|
215734
|
-
/***/ ((module, __unused_webpack_exports,
|
215801
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_879584__) => {
|
215735
215802
|
|
215736
215803
|
"use strict";
|
215737
215804
|
|
215738
215805
|
|
215739
|
-
var YAMLException =
|
215806
|
+
var YAMLException = __nested_webpack_require_879584__(3237);
|
215740
215807
|
|
215741
215808
|
var TYPE_CONSTRUCTOR_OPTIONS = [
|
215742
215809
|
'kind',
|
@@ -215800,7 +215867,7 @@ module.exports = Type;
|
|
215800
215867
|
/***/ }),
|
215801
215868
|
|
215802
215869
|
/***/ 8675:
|
215803
|
-
/***/ ((module, __unused_webpack_exports,
|
215870
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_881268__) => {
|
215804
215871
|
|
215805
215872
|
"use strict";
|
215806
215873
|
|
@@ -215815,7 +215882,7 @@ try {
|
|
215815
215882
|
NodeBuffer = _require('buffer').Buffer;
|
215816
215883
|
} catch (__) {}
|
215817
215884
|
|
215818
|
-
var Type =
|
215885
|
+
var Type = __nested_webpack_require_881268__(6876);
|
215819
215886
|
|
215820
215887
|
|
215821
215888
|
// [ 64, 65, 66 ] -> [ padding, CR, LF ]
|
@@ -215946,12 +216013,12 @@ module.exports = new Type('tag:yaml.org,2002:binary', {
|
|
215946
216013
|
/***/ }),
|
215947
216014
|
|
215948
216015
|
/***/ 4308:
|
215949
|
-
/***/ ((module, __unused_webpack_exports,
|
216016
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_884660__) => {
|
215950
216017
|
|
215951
216018
|
"use strict";
|
215952
216019
|
|
215953
216020
|
|
215954
|
-
var Type =
|
216021
|
+
var Type = __nested_webpack_require_884660__(6876);
|
215955
216022
|
|
215956
216023
|
function resolveYamlBoolean(data) {
|
215957
216024
|
if (data === null) return false;
|
@@ -215989,13 +216056,13 @@ module.exports = new Type('tag:yaml.org,2002:bool', {
|
|
215989
216056
|
/***/ }),
|
215990
216057
|
|
215991
216058
|
/***/ 7862:
|
215992
|
-
/***/ ((module, __unused_webpack_exports,
|
216059
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_885733__) => {
|
215993
216060
|
|
215994
216061
|
"use strict";
|
215995
216062
|
|
215996
216063
|
|
215997
|
-
var common =
|
215998
|
-
var Type =
|
216064
|
+
var common = __nested_webpack_require_885733__(903);
|
216065
|
+
var Type = __nested_webpack_require_885733__(6876);
|
215999
216066
|
|
216000
216067
|
var YAML_FLOAT_PATTERN = new RegExp(
|
216001
216068
|
// 2.5e4, 2.5 and integers
|
@@ -216113,13 +216180,13 @@ module.exports = new Type('tag:yaml.org,2002:float', {
|
|
216113
216180
|
/***/ }),
|
216114
216181
|
|
216115
216182
|
/***/ 1167:
|
216116
|
-
/***/ ((module, __unused_webpack_exports,
|
216183
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_888679__) => {
|
216117
216184
|
|
216118
216185
|
"use strict";
|
216119
216186
|
|
216120
216187
|
|
216121
|
-
var common =
|
216122
|
-
var Type =
|
216188
|
+
var common = __nested_webpack_require_888679__(903);
|
216189
|
+
var Type = __nested_webpack_require_888679__(6876);
|
216123
216190
|
|
216124
216191
|
function isHexCode(c) {
|
216125
216192
|
return ((0x30/* 0 */ <= c) && (c <= 0x39/* 9 */)) ||
|
@@ -216294,7 +216361,7 @@ module.exports = new Type('tag:yaml.org,2002:int', {
|
|
216294
216361
|
/***/ }),
|
216295
216362
|
|
216296
216363
|
/***/ 8750:
|
216297
|
-
/***/ ((module, __unused_webpack_exports,
|
216364
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_892851__) => {
|
216298
216365
|
|
216299
216366
|
"use strict";
|
216300
216367
|
|
@@ -216317,7 +216384,7 @@ try {
|
|
216317
216384
|
if (typeof window !== 'undefined') esprima = window.esprima;
|
216318
216385
|
}
|
216319
216386
|
|
216320
|
-
var Type =
|
216387
|
+
var Type = __nested_webpack_require_892851__(6876);
|
216321
216388
|
|
216322
216389
|
function resolveJavascriptFunction(data) {
|
216323
216390
|
if (data === null) return false;
|
@@ -216394,12 +216461,12 @@ module.exports = new Type('tag:yaml.org,2002:js/function', {
|
|
216394
216461
|
/***/ }),
|
216395
216462
|
|
216396
216463
|
/***/ 6841:
|
216397
|
-
/***/ ((module, __unused_webpack_exports,
|
216464
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_895748__) => {
|
216398
216465
|
|
216399
216466
|
"use strict";
|
216400
216467
|
|
216401
216468
|
|
216402
|
-
var Type =
|
216469
|
+
var Type = __nested_webpack_require_895748__(6876);
|
216403
216470
|
|
216404
216471
|
function resolveJavascriptRegExp(data) {
|
216405
216472
|
if (data === null) return false;
|
@@ -216462,12 +216529,12 @@ module.exports = new Type('tag:yaml.org,2002:js/regexp', {
|
|
216462
216529
|
/***/ }),
|
216463
216530
|
|
216464
216531
|
/***/ 5836:
|
216465
|
-
/***/ ((module, __unused_webpack_exports,
|
216532
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_897419__) => {
|
216466
216533
|
|
216467
216534
|
"use strict";
|
216468
216535
|
|
216469
216536
|
|
216470
|
-
var Type =
|
216537
|
+
var Type = __nested_webpack_require_897419__(6876);
|
216471
216538
|
|
216472
216539
|
function resolveJavascriptUndefined() {
|
216473
216540
|
return true;
|
@@ -216498,12 +216565,12 @@ module.exports = new Type('tag:yaml.org,2002:js/undefined', {
|
|
216498
216565
|
/***/ }),
|
216499
216566
|
|
216500
216567
|
/***/ 293:
|
216501
|
-
/***/ ((module, __unused_webpack_exports,
|
216568
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_898090__) => {
|
216502
216569
|
|
216503
216570
|
"use strict";
|
216504
216571
|
|
216505
216572
|
|
216506
|
-
var Type =
|
216573
|
+
var Type = __nested_webpack_require_898090__(6876);
|
216507
216574
|
|
216508
216575
|
module.exports = new Type('tag:yaml.org,2002:map', {
|
216509
216576
|
kind: 'mapping',
|
@@ -216514,12 +216581,12 @@ module.exports = new Type('tag:yaml.org,2002:map', {
|
|
216514
216581
|
/***/ }),
|
216515
216582
|
|
216516
216583
|
/***/ 7841:
|
216517
|
-
/***/ ((module, __unused_webpack_exports,
|
216584
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_898382__) => {
|
216518
216585
|
|
216519
216586
|
"use strict";
|
216520
216587
|
|
216521
216588
|
|
216522
|
-
var Type =
|
216589
|
+
var Type = __nested_webpack_require_898382__(6876);
|
216523
216590
|
|
216524
216591
|
function resolveYamlMerge(data) {
|
216525
216592
|
return data === '<<' || data === null;
|
@@ -216534,12 +216601,12 @@ module.exports = new Type('tag:yaml.org,2002:merge', {
|
|
216534
216601
|
/***/ }),
|
216535
216602
|
|
216536
216603
|
/***/ 9074:
|
216537
|
-
/***/ ((module, __unused_webpack_exports,
|
216604
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_898714__) => {
|
216538
216605
|
|
216539
216606
|
"use strict";
|
216540
216607
|
|
216541
216608
|
|
216542
|
-
var Type =
|
216609
|
+
var Type = __nested_webpack_require_898714__(6876);
|
216543
216610
|
|
216544
216611
|
function resolveYamlNull(data) {
|
216545
216612
|
if (data === null) return true;
|
@@ -216576,12 +216643,12 @@ module.exports = new Type('tag:yaml.org,2002:null', {
|
|
216576
216643
|
/***/ }),
|
216577
216644
|
|
216578
216645
|
/***/ 3498:
|
216579
|
-
/***/ ((module, __unused_webpack_exports,
|
216646
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_899577__) => {
|
216580
216647
|
|
216581
216648
|
"use strict";
|
216582
216649
|
|
216583
216650
|
|
216584
|
-
var Type =
|
216651
|
+
var Type = __nested_webpack_require_899577__(6876);
|
216585
216652
|
|
216586
216653
|
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
216587
216654
|
var _toString = Object.prototype.toString;
|
@@ -216628,12 +216695,12 @@ module.exports = new Type('tag:yaml.org,2002:omap', {
|
|
216628
216695
|
/***/ }),
|
216629
216696
|
|
216630
216697
|
/***/ 679:
|
216631
|
-
/***/ ((module, __unused_webpack_exports,
|
216698
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_900701__) => {
|
216632
216699
|
|
216633
216700
|
"use strict";
|
216634
216701
|
|
216635
216702
|
|
216636
|
-
var Type =
|
216703
|
+
var Type = __nested_webpack_require_900701__(6876);
|
216637
216704
|
|
216638
216705
|
var _toString = Object.prototype.toString;
|
216639
216706
|
|
@@ -216689,12 +216756,12 @@ module.exports = new Type('tag:yaml.org,2002:pairs', {
|
|
216689
216756
|
/***/ }),
|
216690
216757
|
|
216691
216758
|
/***/ 7330:
|
216692
|
-
/***/ ((module, __unused_webpack_exports,
|
216759
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_901887__) => {
|
216693
216760
|
|
216694
216761
|
"use strict";
|
216695
216762
|
|
216696
216763
|
|
216697
|
-
var Type =
|
216764
|
+
var Type = __nested_webpack_require_901887__(6876);
|
216698
216765
|
|
216699
216766
|
module.exports = new Type('tag:yaml.org,2002:seq', {
|
216700
216767
|
kind: 'sequence',
|
@@ -216705,12 +216772,12 @@ module.exports = new Type('tag:yaml.org,2002:seq', {
|
|
216705
216772
|
/***/ }),
|
216706
216773
|
|
216707
216774
|
/***/ 7205:
|
216708
|
-
/***/ ((module, __unused_webpack_exports,
|
216775
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_902180__) => {
|
216709
216776
|
|
216710
216777
|
"use strict";
|
216711
216778
|
|
216712
216779
|
|
216713
|
-
var Type =
|
216780
|
+
var Type = __nested_webpack_require_902180__(6876);
|
216714
216781
|
|
216715
216782
|
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
216716
216783
|
|
@@ -216742,12 +216809,12 @@ module.exports = new Type('tag:yaml.org,2002:set', {
|
|
216742
216809
|
/***/ }),
|
216743
216810
|
|
216744
216811
|
/***/ 5348:
|
216745
|
-
/***/ ((module, __unused_webpack_exports,
|
216812
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_902829__) => {
|
216746
216813
|
|
216747
216814
|
"use strict";
|
216748
216815
|
|
216749
216816
|
|
216750
|
-
var Type =
|
216817
|
+
var Type = __nested_webpack_require_902829__(6876);
|
216751
216818
|
|
216752
216819
|
module.exports = new Type('tag:yaml.org,2002:str', {
|
216753
216820
|
kind: 'scalar',
|
@@ -216758,12 +216825,12 @@ module.exports = new Type('tag:yaml.org,2002:str', {
|
|
216758
216825
|
/***/ }),
|
216759
216826
|
|
216760
216827
|
/***/ 7028:
|
216761
|
-
/***/ ((module, __unused_webpack_exports,
|
216828
|
+
/***/ ((module, __unused_webpack_exports, __nested_webpack_require_903120__) => {
|
216762
216829
|
|
216763
216830
|
"use strict";
|
216764
216831
|
|
216765
216832
|
|
216766
|
-
var Type =
|
216833
|
+
var Type = __nested_webpack_require_903120__(6876);
|
216767
216834
|
|
216768
216835
|
var YAML_DATE_REGEXP = new RegExp(
|
216769
216836
|
'^([0-9][0-9][0-9][0-9])' + // [1] year
|
@@ -216854,7 +216921,7 @@ module.exports = new Type('tag:yaml.org,2002:timestamp', {
|
|
216854
216921
|
/***/ }),
|
216855
216922
|
|
216856
216923
|
/***/ 7276:
|
216857
|
-
/***/ (function(__unused_webpack_module, exports,
|
216924
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_905801__) {
|
216858
216925
|
|
216859
216926
|
"use strict";
|
216860
216927
|
|
@@ -216863,25 +216930,28 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
216863
216930
|
};
|
216864
216931
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
216865
216932
|
exports.updateRoutesManifest = exports.updateFunctionsManifest = exports.convertRuntimeToPlugin = void 0;
|
216866
|
-
const fs_extra_1 = __importDefault(
|
216867
|
-
const path_1 =
|
216868
|
-
const glob_1 = __importDefault(
|
216869
|
-
const normalize_path_1 =
|
216870
|
-
const
|
216871
|
-
const
|
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));
|
216872
216940
|
/**
|
216873
216941
|
* Convert legacy Runtime to a Plugin.
|
216874
216942
|
* @param buildRuntime - a legacy build() function from a Runtime
|
216875
216943
|
* @param ext - the file extension, for example `.py`
|
216876
216944
|
*/
|
216877
216945
|
function convertRuntimeToPlugin(buildRuntime, ext) {
|
216878
|
-
|
216946
|
+
// This `build()` signature should match `plugin.build()` signature in `vercel build`.
|
216947
|
+
return async function build({ vercelConfig, workPath, }) {
|
216948
|
+
var _a;
|
216879
216949
|
const opts = { cwd: workPath };
|
216880
216950
|
const files = await glob_1.default('**', opts);
|
216881
216951
|
delete files['vercel.json']; // Builders/Runtimes didn't have vercel.json
|
216882
216952
|
const entrypoints = await glob_1.default(`api/**/*${ext}`, opts);
|
216883
216953
|
const pages = {};
|
216884
|
-
const { functions = {} } =
|
216954
|
+
const { functions = {}, cleanUrls, trailingSlash } = vercelConfig;
|
216885
216955
|
const traceDir = path_1.join(workPath, '.output', 'runtime-traced-files');
|
216886
216956
|
await fs_extra_1.default.ensureDir(traceDir);
|
216887
216957
|
for (const entrypoint of Object.keys(entrypoints)) {
|
@@ -216937,7 +217007,54 @@ function convertRuntimeToPlugin(buildRuntime, ext) {
|
|
216937
217007
|
await fs_extra_1.default.ensureDir(path_1.dirname(nft));
|
216938
217008
|
await fs_extra_1.default.writeFile(nft, json);
|
216939
217009
|
}
|
216940
|
-
await updateFunctionsManifest({ workPath, pages });
|
217010
|
+
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
|
+
});
|
216941
217058
|
};
|
216942
217059
|
}
|
216943
217060
|
exports.convertRuntimeToPlugin = convertRuntimeToPlugin;
|
@@ -216963,18 +217080,13 @@ async function readJson(filePath) {
|
|
216963
217080
|
throw err;
|
216964
217081
|
}
|
216965
217082
|
}
|
216966
|
-
async function readVercelConfig(workPath) {
|
216967
|
-
const vercelJsonPath = path_1.join(workPath, 'vercel.json');
|
216968
|
-
return readJson(vercelJsonPath);
|
216969
|
-
}
|
216970
217083
|
/**
|
216971
217084
|
* If `.output/functions-manifest.json` exists, append to the pages
|
216972
217085
|
* property. Otherwise write a new file. This will also read `vercel.json`
|
216973
217086
|
* and apply relevant `functions` property config.
|
216974
217087
|
*/
|
216975
|
-
async function updateFunctionsManifest({ workPath, pages, }) {
|
217088
|
+
async function updateFunctionsManifest({ vercelConfig, workPath, pages, }) {
|
216976
217089
|
const functionsManifestPath = path_1.join(workPath, '.output', 'functions-manifest.json');
|
216977
|
-
const vercelConfig = await readVercelConfig(workPath);
|
216978
217090
|
const functionsManifest = await readJson(functionsManifestPath);
|
216979
217091
|
if (!functionsManifest.version)
|
216980
217092
|
functionsManifest.version = 1;
|
@@ -216996,21 +217108,41 @@ async function updateFunctionsManifest({ workPath, pages, }) {
|
|
216996
217108
|
}
|
216997
217109
|
exports.updateFunctionsManifest = updateFunctionsManifest;
|
216998
217110
|
/**
|
216999
|
-
*
|
217000
|
-
* If the file does not exist, it
|
217111
|
+
* Append routes to the `routes-manifest.json` file.
|
217112
|
+
* If the file does not exist, it will be created.
|
217001
217113
|
*/
|
217002
|
-
async function updateRoutesManifest({ workPath, dynamicRoutes, }) {
|
217114
|
+
async function updateRoutesManifest({ workPath, redirects, rewrites, headers, dynamicRoutes, staticRoutes, }) {
|
217003
217115
|
const routesManifestPath = path_1.join(workPath, '.output', 'routes-manifest.json');
|
217004
217116
|
const routesManifest = await readJson(routesManifestPath);
|
217005
217117
|
if (!routesManifest.version)
|
217006
|
-
routesManifest.version =
|
217118
|
+
routesManifest.version = 3;
|
217007
217119
|
if (routesManifest.pages404 === undefined)
|
217008
217120
|
routesManifest.pages404 = true;
|
217121
|
+
if (redirects) {
|
217122
|
+
if (!routesManifest.redirects)
|
217123
|
+
routesManifest.redirects = [];
|
217124
|
+
routesManifest.redirects.push(...redirects);
|
217125
|
+
}
|
217126
|
+
if (rewrites) {
|
217127
|
+
if (!routesManifest.rewrites)
|
217128
|
+
routesManifest.rewrites = [];
|
217129
|
+
routesManifest.rewrites.push(...rewrites);
|
217130
|
+
}
|
217131
|
+
if (headers) {
|
217132
|
+
if (!routesManifest.headers)
|
217133
|
+
routesManifest.headers = [];
|
217134
|
+
routesManifest.headers.push(...headers);
|
217135
|
+
}
|
217009
217136
|
if (dynamicRoutes) {
|
217010
217137
|
if (!routesManifest.dynamicRoutes)
|
217011
217138
|
routesManifest.dynamicRoutes = [];
|
217012
217139
|
routesManifest.dynamicRoutes.push(...dynamicRoutes);
|
217013
217140
|
}
|
217141
|
+
if (staticRoutes) {
|
217142
|
+
if (!routesManifest.staticRoutes)
|
217143
|
+
routesManifest.staticRoutes = [];
|
217144
|
+
routesManifest.staticRoutes.push(...staticRoutes);
|
217145
|
+
}
|
217014
217146
|
await fs_extra_1.default.writeFile(routesManifestPath, JSON.stringify(routesManifest));
|
217015
217147
|
}
|
217016
217148
|
exports.updateRoutesManifest = updateRoutesManifest;
|
@@ -217019,12 +217151,12 @@ exports.updateRoutesManifest = updateRoutesManifest;
|
|
217019
217151
|
/***/ }),
|
217020
217152
|
|
217021
217153
|
/***/ 1868:
|
217022
|
-
/***/ ((__unused_webpack_module, exports,
|
217154
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_915404__) => {
|
217023
217155
|
|
217024
217156
|
"use strict";
|
217025
217157
|
|
217026
217158
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
217027
|
-
const _1 =
|
217159
|
+
const _1 = __nested_webpack_require_915404__(2855);
|
217028
217160
|
function debug(message, ...additional) {
|
217029
217161
|
if (_1.getPlatformEnv('BUILDER_DEBUG')) {
|
217030
217162
|
console.log(message, ...additional);
|
@@ -217036,7 +217168,7 @@ exports.default = debug;
|
|
217036
217168
|
/***/ }),
|
217037
217169
|
|
217038
217170
|
/***/ 4246:
|
217039
|
-
/***/ (function(__unused_webpack_module, exports,
|
217171
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_915789__) {
|
217040
217172
|
|
217041
217173
|
"use strict";
|
217042
217174
|
|
@@ -217045,11 +217177,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
217045
217177
|
};
|
217046
217178
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
217047
217179
|
exports.detectBuilders = exports.detectOutputDirectory = exports.detectApiDirectory = exports.detectApiExtensions = exports.sortFiles = void 0;
|
217048
|
-
const minimatch_1 = __importDefault(
|
217049
|
-
const semver_1 =
|
217050
|
-
const path_1 =
|
217051
|
-
const frameworks_1 = __importDefault(
|
217052
|
-
const _1 =
|
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);
|
217053
217185
|
const slugToFramework = new Map(frameworks_1.default.map(f => [f.slug, f]));
|
217054
217186
|
// We need to sort the file paths by alphabet to make
|
217055
217187
|
// sure the routes stay in the same order e.g. for deduping
|
@@ -217107,6 +217239,7 @@ async function detectBuilders(files, pkg, options = {}) {
|
|
217107
217239
|
redirectRoutes: null,
|
217108
217240
|
rewriteRoutes: null,
|
217109
217241
|
errorRoutes: null,
|
217242
|
+
dynamicRoutesWithKeys: null,
|
217110
217243
|
};
|
217111
217244
|
}
|
217112
217245
|
const sortedFiles = files.sort(sortFiles);
|
@@ -217140,11 +217273,12 @@ async function detectBuilders(files, pkg, options = {}) {
|
|
217140
217273
|
let fallbackEntrypoint = null;
|
217141
217274
|
const apiRoutes = [];
|
217142
217275
|
const dynamicRoutes = [];
|
217276
|
+
const dynamicRoutesWithKeys = [];
|
217143
217277
|
// API
|
217144
217278
|
for (const fileName of sortedFiles) {
|
217145
217279
|
const apiBuilder = maybeGetApiBuilder(fileName, apiMatches, options);
|
217146
217280
|
if (apiBuilder) {
|
217147
|
-
const { routeError, apiRoute, isDynamic } = getApiRoute(fileName, apiSortedFiles, options, absolutePathCache);
|
217281
|
+
const { routeError, apiRoute, isDynamic, routeKeys } = getApiRoute(fileName, apiSortedFiles, options, absolutePathCache);
|
217148
217282
|
if (routeError) {
|
217149
217283
|
return {
|
217150
217284
|
builders: null,
|
@@ -217154,12 +217288,18 @@ async function detectBuilders(files, pkg, options = {}) {
|
|
217154
217288
|
redirectRoutes: null,
|
217155
217289
|
rewriteRoutes: null,
|
217156
217290
|
errorRoutes: null,
|
217291
|
+
dynamicRoutesWithKeys: null,
|
217157
217292
|
};
|
217158
217293
|
}
|
217159
217294
|
if (apiRoute) {
|
217160
217295
|
apiRoutes.push(apiRoute);
|
217161
217296
|
if (isDynamic) {
|
217162
217297
|
dynamicRoutes.push(apiRoute);
|
217298
|
+
dynamicRoutesWithKeys.push({
|
217299
|
+
fileName,
|
217300
|
+
regex: apiRoute.src,
|
217301
|
+
routeKeys,
|
217302
|
+
});
|
217163
217303
|
}
|
217164
217304
|
}
|
217165
217305
|
addToUsedFunctions(apiBuilder);
|
@@ -217208,6 +217348,7 @@ async function detectBuilders(files, pkg, options = {}) {
|
|
217208
217348
|
defaultRoutes: null,
|
217209
217349
|
rewriteRoutes: null,
|
217210
217350
|
errorRoutes: null,
|
217351
|
+
dynamicRoutesWithKeys: null,
|
217211
217352
|
};
|
217212
217353
|
}
|
217213
217354
|
// If `outputDirectory` is an empty string,
|
@@ -217244,6 +217385,7 @@ async function detectBuilders(files, pkg, options = {}) {
|
|
217244
217385
|
defaultRoutes: null,
|
217245
217386
|
rewriteRoutes: null,
|
217246
217387
|
errorRoutes: null,
|
217388
|
+
dynamicRoutesWithKeys: null,
|
217247
217389
|
};
|
217248
217390
|
}
|
217249
217391
|
const builders = [];
|
@@ -217271,6 +217413,7 @@ async function detectBuilders(files, pkg, options = {}) {
|
|
217271
217413
|
defaultRoutes: routesResult.defaultRoutes,
|
217272
217414
|
rewriteRoutes: routesResult.rewriteRoutes,
|
217273
217415
|
errorRoutes: routesResult.errorRoutes,
|
217416
|
+
dynamicRoutesWithKeys,
|
217274
217417
|
};
|
217275
217418
|
}
|
217276
217419
|
exports.detectBuilders = detectBuilders;
|
@@ -217525,6 +217668,7 @@ function getApiRoute(fileName, sortedFiles, options, absolutePathCache) {
|
|
217525
217668
|
return {
|
217526
217669
|
apiRoute: null,
|
217527
217670
|
isDynamic: false,
|
217671
|
+
routeKeys: {},
|
217528
217672
|
routeError: {
|
217529
217673
|
code: 'conflicting_path_segment',
|
217530
217674
|
message: `The segment "${conflictingSegment}" occurs more than ` +
|
@@ -217539,6 +217683,7 @@ function getApiRoute(fileName, sortedFiles, options, absolutePathCache) {
|
|
217539
217683
|
return {
|
217540
217684
|
apiRoute: null,
|
217541
217685
|
isDynamic: false,
|
217686
|
+
routeKeys: {},
|
217542
217687
|
routeError: {
|
217543
217688
|
code: 'conflicting_file_path',
|
217544
217689
|
message: `Two or more files have conflicting paths or names. ` +
|
@@ -217551,6 +217696,7 @@ function getApiRoute(fileName, sortedFiles, options, absolutePathCache) {
|
|
217551
217696
|
return {
|
217552
217697
|
apiRoute: out.route,
|
217553
217698
|
isDynamic: out.isDynamic,
|
217699
|
+
routeKeys: out.routeKeys,
|
217554
217700
|
routeError: null,
|
217555
217701
|
};
|
217556
217702
|
}
|
@@ -217660,6 +217806,7 @@ function createRouteFromPath(filePath, featHandleMiss, cleanUrls) {
|
|
217660
217806
|
const parts = filePath.split('/');
|
217661
217807
|
let counter = 1;
|
217662
217808
|
const query = [];
|
217809
|
+
const routeKeys = {};
|
217663
217810
|
let isDynamic = false;
|
217664
217811
|
const srcParts = parts.map((segment, i) => {
|
217665
217812
|
const name = getSegmentName(segment);
|
@@ -217667,6 +217814,7 @@ function createRouteFromPath(filePath, featHandleMiss, cleanUrls) {
|
|
217667
217814
|
if (name !== null) {
|
217668
217815
|
// We can't use `URLSearchParams` because `$` would get escaped
|
217669
217816
|
query.push(`${name}=$${counter++}`);
|
217817
|
+
routeKeys[name] = name;
|
217670
217818
|
isDynamic = true;
|
217671
217819
|
return `([^/]+)`;
|
217672
217820
|
}
|
@@ -217709,7 +217857,7 @@ function createRouteFromPath(filePath, featHandleMiss, cleanUrls) {
|
|
217709
217857
|
dest: `/${filePath}${queryString}`,
|
217710
217858
|
};
|
217711
217859
|
}
|
217712
|
-
return { route, isDynamic };
|
217860
|
+
return { route, isDynamic, routeKeys };
|
217713
217861
|
}
|
217714
217862
|
function getRouteResult(apiRoutes, dynamicRoutes, outputDirectory, apiBuilders, frontendBuilder, options) {
|
217715
217863
|
var _a, _b;
|
@@ -218055,7 +218203,7 @@ function getSuggestion(topLevelProp, additionalProperty) {
|
|
218055
218203
|
/***/ }),
|
218056
218204
|
|
218057
218205
|
/***/ 2397:
|
218058
|
-
/***/ (function(__unused_webpack_module, exports,
|
218206
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_953235__) {
|
218059
218207
|
|
218060
218208
|
"use strict";
|
218061
218209
|
|
@@ -218063,8 +218211,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218063
218211
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
218064
218212
|
};
|
218065
218213
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218066
|
-
const assert_1 = __importDefault(
|
218067
|
-
const into_stream_1 = __importDefault(
|
218214
|
+
const assert_1 = __importDefault(__nested_webpack_require_953235__(2357));
|
218215
|
+
const into_stream_1 = __importDefault(__nested_webpack_require_953235__(6130));
|
218068
218216
|
class FileBlob {
|
218069
218217
|
constructor({ mode = 0o100644, contentType, data }) {
|
218070
218218
|
assert_1.default(typeof mode === 'number');
|
@@ -218096,7 +218244,7 @@ exports.default = FileBlob;
|
|
218096
218244
|
/***/ }),
|
218097
218245
|
|
218098
218246
|
/***/ 9331:
|
218099
|
-
/***/ (function(__unused_webpack_module, exports,
|
218247
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_954687__) {
|
218100
218248
|
|
218101
218249
|
"use strict";
|
218102
218250
|
|
@@ -218104,11 +218252,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218104
218252
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
218105
218253
|
};
|
218106
218254
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218107
|
-
const assert_1 = __importDefault(
|
218108
|
-
const fs_extra_1 = __importDefault(
|
218109
|
-
const multistream_1 = __importDefault(
|
218110
|
-
const path_1 = __importDefault(
|
218111
|
-
const async_sema_1 = __importDefault(
|
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));
|
218112
218260
|
const semaToPreventEMFILE = new async_sema_1.default(20);
|
218113
218261
|
class FileFsRef {
|
218114
218262
|
constructor({ mode = 0o100644, contentType, fsPath }) {
|
@@ -218174,7 +218322,7 @@ exports.default = FileFsRef;
|
|
218174
218322
|
/***/ }),
|
218175
218323
|
|
218176
218324
|
/***/ 5187:
|
218177
|
-
/***/ (function(__unused_webpack_module, exports,
|
218325
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_957491__) {
|
218178
218326
|
|
218179
218327
|
"use strict";
|
218180
218328
|
|
@@ -218182,11 +218330,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218182
218330
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
218183
218331
|
};
|
218184
218332
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218185
|
-
const assert_1 = __importDefault(
|
218186
|
-
const node_fetch_1 = __importDefault(
|
218187
|
-
const multistream_1 = __importDefault(
|
218188
|
-
const async_retry_1 = __importDefault(
|
218189
|
-
const async_sema_1 = __importDefault(
|
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));
|
218190
218338
|
const semaToDownloadFromS3 = new async_sema_1.default(5);
|
218191
218339
|
class BailableError extends Error {
|
218192
218340
|
constructor(...args) {
|
@@ -218267,7 +218415,7 @@ exports.default = FileRef;
|
|
218267
218415
|
/***/ }),
|
218268
218416
|
|
218269
218417
|
/***/ 1611:
|
218270
|
-
/***/ (function(__unused_webpack_module, exports,
|
218418
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_960892__) {
|
218271
218419
|
|
218272
218420
|
"use strict";
|
218273
218421
|
|
@@ -218276,10 +218424,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218276
218424
|
};
|
218277
218425
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218278
218426
|
exports.isSymbolicLink = void 0;
|
218279
|
-
const path_1 = __importDefault(
|
218280
|
-
const debug_1 = __importDefault(
|
218281
|
-
const file_fs_ref_1 = __importDefault(
|
218282
|
-
const fs_extra_1 =
|
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);
|
218283
218431
|
const S_IFMT = 61440; /* 0170000 type of file */
|
218284
218432
|
const S_IFLNK = 40960; /* 0120000 symbolic link */
|
218285
218433
|
function isSymbolicLink(mode) {
|
@@ -218341,14 +218489,14 @@ exports.default = download;
|
|
218341
218489
|
/***/ }),
|
218342
218490
|
|
218343
218491
|
/***/ 3838:
|
218344
|
-
/***/ ((__unused_webpack_module, exports,
|
218492
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_963717__) => {
|
218345
218493
|
|
218346
218494
|
"use strict";
|
218347
218495
|
|
218348
218496
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218349
|
-
const path_1 =
|
218350
|
-
const os_1 =
|
218351
|
-
const fs_extra_1 =
|
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);
|
218352
218500
|
async function getWritableDirectory() {
|
218353
218501
|
const name = Math.floor(Math.random() * 0x7fffffff).toString(16);
|
218354
218502
|
const directory = path_1.join(os_1.tmpdir(), name);
|
@@ -218361,7 +218509,7 @@ exports.default = getWritableDirectory;
|
|
218361
218509
|
/***/ }),
|
218362
218510
|
|
218363
218511
|
/***/ 4240:
|
218364
|
-
/***/ (function(__unused_webpack_module, exports,
|
218512
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_964297__) {
|
218365
218513
|
|
218366
218514
|
"use strict";
|
218367
218515
|
|
@@ -218369,13 +218517,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218369
218517
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
218370
218518
|
};
|
218371
218519
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218372
|
-
const path_1 = __importDefault(
|
218373
|
-
const assert_1 = __importDefault(
|
218374
|
-
const glob_1 = __importDefault(
|
218375
|
-
const util_1 =
|
218376
|
-
const fs_extra_1 =
|
218377
|
-
const normalize_path_1 =
|
218378
|
-
const file_fs_ref_1 = __importDefault(
|
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));
|
218379
218527
|
const vanillaGlob = util_1.promisify(glob_1.default);
|
218380
218528
|
async function glob(pattern, opts, mountpoint) {
|
218381
218529
|
let options;
|
@@ -218421,7 +218569,7 @@ exports.default = glob;
|
|
218421
218569
|
/***/ }),
|
218422
218570
|
|
218423
218571
|
/***/ 7903:
|
218424
|
-
/***/ (function(__unused_webpack_module, exports,
|
218572
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_966493__) {
|
218425
218573
|
|
218426
218574
|
"use strict";
|
218427
218575
|
|
@@ -218430,9 +218578,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218430
218578
|
};
|
218431
218579
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218432
218580
|
exports.getSupportedNodeVersion = exports.getDiscontinuedNodeVersions = exports.getLatestNodeVersion = void 0;
|
218433
|
-
const semver_1 =
|
218434
|
-
const errors_1 =
|
218435
|
-
const debug_1 = __importDefault(
|
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));
|
218436
218584
|
const allOptions = [
|
218437
218585
|
{ major: 14, range: '14.x', runtime: 'nodejs14.x' },
|
218438
218586
|
{ major: 12, range: '12.x', runtime: 'nodejs12.x' },
|
@@ -218526,7 +218674,7 @@ exports.normalizePath = normalizePath;
|
|
218526
218674
|
/***/ }),
|
218527
218675
|
|
218528
218676
|
/***/ 7792:
|
218529
|
-
/***/ (function(__unused_webpack_module, exports,
|
218677
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_970361__) {
|
218530
218678
|
|
218531
218679
|
"use strict";
|
218532
218680
|
|
@@ -218535,9 +218683,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218535
218683
|
};
|
218536
218684
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218537
218685
|
exports.readConfigFile = void 0;
|
218538
|
-
const js_yaml_1 = __importDefault(
|
218539
|
-
const toml_1 = __importDefault(
|
218540
|
-
const fs_extra_1 =
|
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);
|
218541
218689
|
async function readFileOrNull(file) {
|
218542
218690
|
try {
|
218543
218691
|
const data = await fs_extra_1.readFile(file);
|
@@ -218592,7 +218740,7 @@ exports.default = rename;
|
|
218592
218740
|
/***/ }),
|
218593
218741
|
|
218594
218742
|
/***/ 1442:
|
218595
|
-
/***/ (function(__unused_webpack_module, exports,
|
218743
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_972154__) {
|
218596
218744
|
|
218597
218745
|
"use strict";
|
218598
218746
|
|
@@ -218601,14 +218749,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218601
218749
|
};
|
218602
218750
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218603
218751
|
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;
|
218604
|
-
const assert_1 = __importDefault(
|
218605
|
-
const fs_extra_1 = __importDefault(
|
218606
|
-
const path_1 = __importDefault(
|
218607
|
-
const debug_1 = __importDefault(
|
218608
|
-
const cross_spawn_1 = __importDefault(
|
218609
|
-
const util_1 =
|
218610
|
-
const errors_1 =
|
218611
|
-
const node_version_1 =
|
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);
|
218612
218760
|
function spawnAsync(command, args, opts = {}) {
|
218613
218761
|
return new Promise((resolve, reject) => {
|
218614
218762
|
const stderrLogs = [];
|
@@ -218919,7 +219067,7 @@ exports.installDependencies = util_1.deprecate(runNpmInstall, 'installDependenci
|
|
218919
219067
|
/***/ }),
|
218920
219068
|
|
218921
219069
|
/***/ 2560:
|
218922
|
-
/***/ (function(__unused_webpack_module, exports,
|
219070
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_986144__) {
|
218923
219071
|
|
218924
219072
|
"use strict";
|
218925
219073
|
|
@@ -218927,7 +219075,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218927
219075
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
218928
219076
|
};
|
218929
219077
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218930
|
-
const end_of_stream_1 = __importDefault(
|
219078
|
+
const end_of_stream_1 = __importDefault(__nested_webpack_require_986144__(687));
|
218931
219079
|
function streamToBuffer(stream) {
|
218932
219080
|
return new Promise((resolve, reject) => {
|
218933
219081
|
const buffers = [];
|
@@ -218956,7 +219104,7 @@ exports.default = streamToBuffer;
|
|
218956
219104
|
/***/ }),
|
218957
219105
|
|
218958
219106
|
/***/ 2855:
|
218959
|
-
/***/ (function(__unused_webpack_module, exports,
|
219107
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_987212__) {
|
218960
219108
|
|
218961
219109
|
"use strict";
|
218962
219110
|
|
@@ -218987,28 +219135,28 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218987
219135
|
};
|
218988
219136
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218989
219137
|
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;
|
218990
|
-
const file_blob_1 = __importDefault(
|
219138
|
+
const file_blob_1 = __importDefault(__nested_webpack_require_987212__(2397));
|
218991
219139
|
exports.FileBlob = file_blob_1.default;
|
218992
|
-
const file_fs_ref_1 = __importDefault(
|
219140
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_987212__(9331));
|
218993
219141
|
exports.FileFsRef = file_fs_ref_1.default;
|
218994
|
-
const file_ref_1 = __importDefault(
|
219142
|
+
const file_ref_1 = __importDefault(__nested_webpack_require_987212__(5187));
|
218995
219143
|
exports.FileRef = file_ref_1.default;
|
218996
|
-
const lambda_1 =
|
219144
|
+
const lambda_1 = __nested_webpack_require_987212__(6721);
|
218997
219145
|
Object.defineProperty(exports, "Lambda", ({ enumerable: true, get: function () { return lambda_1.Lambda; } }));
|
218998
219146
|
Object.defineProperty(exports, "createLambda", ({ enumerable: true, get: function () { return lambda_1.createLambda; } }));
|
218999
219147
|
Object.defineProperty(exports, "getLambdaOptionsFromFunction", ({ enumerable: true, get: function () { return lambda_1.getLambdaOptionsFromFunction; } }));
|
219000
|
-
const prerender_1 =
|
219148
|
+
const prerender_1 = __nested_webpack_require_987212__(2850);
|
219001
219149
|
Object.defineProperty(exports, "Prerender", ({ enumerable: true, get: function () { return prerender_1.Prerender; } }));
|
219002
|
-
const download_1 = __importStar(
|
219150
|
+
const download_1 = __importStar(__nested_webpack_require_987212__(1611));
|
219003
219151
|
exports.download = download_1.default;
|
219004
219152
|
Object.defineProperty(exports, "isSymbolicLink", ({ enumerable: true, get: function () { return download_1.isSymbolicLink; } }));
|
219005
|
-
const get_writable_directory_1 = __importDefault(
|
219153
|
+
const get_writable_directory_1 = __importDefault(__nested_webpack_require_987212__(3838));
|
219006
219154
|
exports.getWriteableDirectory = get_writable_directory_1.default;
|
219007
|
-
const glob_1 = __importDefault(
|
219155
|
+
const glob_1 = __importDefault(__nested_webpack_require_987212__(4240));
|
219008
219156
|
exports.glob = glob_1.default;
|
219009
|
-
const rename_1 = __importDefault(
|
219157
|
+
const rename_1 = __importDefault(__nested_webpack_require_987212__(6718));
|
219010
219158
|
exports.rename = rename_1.default;
|
219011
|
-
const run_user_scripts_1 =
|
219159
|
+
const run_user_scripts_1 = __nested_webpack_require_987212__(1442);
|
219012
219160
|
Object.defineProperty(exports, "execAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.execAsync; } }));
|
219013
219161
|
Object.defineProperty(exports, "spawnAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.spawnAsync; } }));
|
219014
219162
|
Object.defineProperty(exports, "execCommand", ({ enumerable: true, get: function () { return run_user_scripts_1.execCommand; } }));
|
@@ -219025,36 +219173,36 @@ Object.defineProperty(exports, "getNodeVersion", ({ enumerable: true, get: funct
|
|
219025
219173
|
Object.defineProperty(exports, "getSpawnOptions", ({ enumerable: true, get: function () { return run_user_scripts_1.getSpawnOptions; } }));
|
219026
219174
|
Object.defineProperty(exports, "getNodeBinPath", ({ enumerable: true, get: function () { return run_user_scripts_1.getNodeBinPath; } }));
|
219027
219175
|
Object.defineProperty(exports, "scanParentDirs", ({ enumerable: true, get: function () { return run_user_scripts_1.scanParentDirs; } }));
|
219028
|
-
const node_version_1 =
|
219176
|
+
const node_version_1 = __nested_webpack_require_987212__(7903);
|
219029
219177
|
Object.defineProperty(exports, "getLatestNodeVersion", ({ enumerable: true, get: function () { return node_version_1.getLatestNodeVersion; } }));
|
219030
219178
|
Object.defineProperty(exports, "getDiscontinuedNodeVersions", ({ enumerable: true, get: function () { return node_version_1.getDiscontinuedNodeVersions; } }));
|
219031
|
-
const errors_1 =
|
219032
|
-
const stream_to_buffer_1 = __importDefault(
|
219179
|
+
const errors_1 = __nested_webpack_require_987212__(3983);
|
219180
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_987212__(2560));
|
219033
219181
|
exports.streamToBuffer = stream_to_buffer_1.default;
|
219034
|
-
const should_serve_1 = __importDefault(
|
219182
|
+
const should_serve_1 = __importDefault(__nested_webpack_require_987212__(2564));
|
219035
219183
|
exports.shouldServe = should_serve_1.default;
|
219036
|
-
const debug_1 = __importDefault(
|
219184
|
+
const debug_1 = __importDefault(__nested_webpack_require_987212__(1868));
|
219037
219185
|
exports.debug = debug_1.default;
|
219038
|
-
var detect_builders_1 =
|
219186
|
+
var detect_builders_1 = __nested_webpack_require_987212__(4246);
|
219039
219187
|
Object.defineProperty(exports, "detectBuilders", ({ enumerable: true, get: function () { return detect_builders_1.detectBuilders; } }));
|
219040
219188
|
Object.defineProperty(exports, "detectOutputDirectory", ({ enumerable: true, get: function () { return detect_builders_1.detectOutputDirectory; } }));
|
219041
219189
|
Object.defineProperty(exports, "detectApiDirectory", ({ enumerable: true, get: function () { return detect_builders_1.detectApiDirectory; } }));
|
219042
219190
|
Object.defineProperty(exports, "detectApiExtensions", ({ enumerable: true, get: function () { return detect_builders_1.detectApiExtensions; } }));
|
219043
|
-
var detect_framework_1 =
|
219191
|
+
var detect_framework_1 = __nested_webpack_require_987212__(5224);
|
219044
219192
|
Object.defineProperty(exports, "detectFramework", ({ enumerable: true, get: function () { return detect_framework_1.detectFramework; } }));
|
219045
|
-
var filesystem_1 =
|
219193
|
+
var filesystem_1 = __nested_webpack_require_987212__(461);
|
219046
219194
|
Object.defineProperty(exports, "DetectorFilesystem", ({ enumerable: true, get: function () { return filesystem_1.DetectorFilesystem; } }));
|
219047
|
-
var read_config_file_1 =
|
219195
|
+
var read_config_file_1 = __nested_webpack_require_987212__(7792);
|
219048
219196
|
Object.defineProperty(exports, "readConfigFile", ({ enumerable: true, get: function () { return read_config_file_1.readConfigFile; } }));
|
219049
|
-
var normalize_path_1 =
|
219197
|
+
var normalize_path_1 = __nested_webpack_require_987212__(6261);
|
219050
219198
|
Object.defineProperty(exports, "normalizePath", ({ enumerable: true, get: function () { return normalize_path_1.normalizePath; } }));
|
219051
|
-
var convert_runtime_to_plugin_1 =
|
219199
|
+
var convert_runtime_to_plugin_1 = __nested_webpack_require_987212__(7276);
|
219052
219200
|
Object.defineProperty(exports, "convertRuntimeToPlugin", ({ enumerable: true, get: function () { return convert_runtime_to_plugin_1.convertRuntimeToPlugin; } }));
|
219053
219201
|
Object.defineProperty(exports, "updateFunctionsManifest", ({ enumerable: true, get: function () { return convert_runtime_to_plugin_1.updateFunctionsManifest; } }));
|
219054
219202
|
Object.defineProperty(exports, "updateRoutesManifest", ({ enumerable: true, get: function () { return convert_runtime_to_plugin_1.updateRoutesManifest; } }));
|
219055
|
-
__exportStar(
|
219056
|
-
__exportStar(
|
219057
|
-
__exportStar(
|
219203
|
+
__exportStar(__nested_webpack_require_987212__(2416), exports);
|
219204
|
+
__exportStar(__nested_webpack_require_987212__(5748), exports);
|
219205
|
+
__exportStar(__nested_webpack_require_987212__(3983), exports);
|
219058
219206
|
/**
|
219059
219207
|
* Helper function to support both `@vercel` and legacy `@now` official Runtimes.
|
219060
219208
|
*/
|
@@ -219099,7 +219247,7 @@ exports.getPlatformEnv = getPlatformEnv;
|
|
219099
219247
|
/***/ }),
|
219100
219248
|
|
219101
219249
|
/***/ 6721:
|
219102
|
-
/***/ (function(__unused_webpack_module, exports,
|
219250
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_997676__) {
|
219103
219251
|
|
219104
219252
|
"use strict";
|
219105
219253
|
|
@@ -219108,13 +219256,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219108
219256
|
};
|
219109
219257
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219110
219258
|
exports.getLambdaOptionsFromFunction = exports.createZip = exports.createLambda = exports.Lambda = exports.FILES_SYMBOL = void 0;
|
219111
|
-
const assert_1 = __importDefault(
|
219112
|
-
const async_sema_1 = __importDefault(
|
219113
|
-
const yazl_1 =
|
219114
|
-
const minimatch_1 = __importDefault(
|
219115
|
-
const fs_extra_1 =
|
219116
|
-
const download_1 =
|
219117
|
-
const stream_to_buffer_1 = __importDefault(
|
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));
|
219118
219266
|
exports.FILES_SYMBOL = Symbol('files');
|
219119
219267
|
class Lambda {
|
219120
219268
|
constructor({ zipBuffer, handler, runtime, maxDuration, memory, environment, allowQuery, regions, }) {
|
@@ -219343,12 +219491,12 @@ exports.buildsSchema = {
|
|
219343
219491
|
/***/ }),
|
219344
219492
|
|
219345
219493
|
/***/ 2564:
|
219346
|
-
/***/ ((__unused_webpack_module, exports,
|
219494
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_1006186__) => {
|
219347
219495
|
|
219348
219496
|
"use strict";
|
219349
219497
|
|
219350
219498
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219351
|
-
const path_1 =
|
219499
|
+
const path_1 = __nested_webpack_require_1006186__(5622);
|
219352
219500
|
function shouldServe({ entrypoint, files, requestPath, }) {
|
219353
219501
|
requestPath = requestPath.replace(/\/$/, ''); // sanitize trailing '/'
|
219354
219502
|
entrypoint = entrypoint.replace(/\\/, '/'); // windows compatibility
|
@@ -219577,7 +219725,7 @@ module.exports = __webpack_require__(78761);
|
|
219577
219725
|
/******/ var __webpack_module_cache__ = {};
|
219578
219726
|
/******/
|
219579
219727
|
/******/ // The require function
|
219580
|
-
/******/ function
|
219728
|
+
/******/ function __nested_webpack_require_1105825__(moduleId) {
|
219581
219729
|
/******/ // Check if module is in cache
|
219582
219730
|
/******/ if(__webpack_module_cache__[moduleId]) {
|
219583
219731
|
/******/ return __webpack_module_cache__[moduleId].exports;
|
@@ -219592,7 +219740,7 @@ module.exports = __webpack_require__(78761);
|
|
219592
219740
|
/******/ // Execute the module function
|
219593
219741
|
/******/ var threw = true;
|
219594
219742
|
/******/ try {
|
219595
|
-
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports,
|
219743
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_1105825__);
|
219596
219744
|
/******/ threw = false;
|
219597
219745
|
/******/ } finally {
|
219598
219746
|
/******/ if(threw) delete __webpack_module_cache__[moduleId];
|
@@ -219605,11 +219753,11 @@ module.exports = __webpack_require__(78761);
|
|
219605
219753
|
/************************************************************************/
|
219606
219754
|
/******/ /* webpack/runtime/compat */
|
219607
219755
|
/******/
|
219608
|
-
/******/
|
219756
|
+
/******/ __nested_webpack_require_1105825__.ab = __dirname + "/";/************************************************************************/
|
219609
219757
|
/******/ // module exports must be returned from runtime so entry inlining is disabled
|
219610
219758
|
/******/ // startup
|
219611
219759
|
/******/ // Load entry module and return exports
|
219612
|
-
/******/ return
|
219760
|
+
/******/ return __nested_webpack_require_1105825__(2855);
|
219613
219761
|
/******/ })()
|
219614
219762
|
;
|
219615
219763
|
|
@@ -241881,7 +242029,7 @@ exports.frameworks = [
|
|
241881
242029
|
tagline: 'Gatsby helps developers build blazing fast websites and apps with React.',
|
241882
242030
|
description: 'A Gatsby app, using the default starter theme and a Serverless Function API.',
|
241883
242031
|
website: 'https://gatsbyjs.org',
|
241884
|
-
sort:
|
242032
|
+
sort: 5,
|
241885
242033
|
envPrefix: 'GATSBY_',
|
241886
242034
|
detectors: {
|
241887
242035
|
every: [
|
@@ -241956,6 +242104,73 @@ exports.frameworks = [
|
|
241956
242104
|
},
|
241957
242105
|
cachePattern: '{.cache,public}/**',
|
241958
242106
|
},
|
242107
|
+
{
|
242108
|
+
name: 'Remix',
|
242109
|
+
slug: 'remix',
|
242110
|
+
demo: 'https://remix.examples.vercel.com',
|
242111
|
+
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/remix.svg',
|
242112
|
+
tagline: 'Build Better Websites',
|
242113
|
+
description: 'A new Remix app — the result of running `npx create-remix`.',
|
242114
|
+
website: 'https://remix.run',
|
242115
|
+
sort: 6,
|
242116
|
+
detectors: {
|
242117
|
+
every: [
|
242118
|
+
{
|
242119
|
+
path: 'package.json',
|
242120
|
+
matchContent: '"(dev)?(d|D)ependencies":\\s*{[^}]*"remix":\\s*".+?"[^}]*}',
|
242121
|
+
},
|
242122
|
+
],
|
242123
|
+
},
|
242124
|
+
settings: {
|
242125
|
+
installCommand: {
|
242126
|
+
placeholder: '`yarn install` or `npm install`',
|
242127
|
+
},
|
242128
|
+
buildCommand: {
|
242129
|
+
value: 'remix build',
|
242130
|
+
placeholder: '`npm run build` or `remix build`',
|
242131
|
+
},
|
242132
|
+
devCommand: {
|
242133
|
+
value: 'remix dev',
|
242134
|
+
placeholder: 'remix dev',
|
242135
|
+
},
|
242136
|
+
outputDirectory: {
|
242137
|
+
value: 'public',
|
242138
|
+
},
|
242139
|
+
},
|
242140
|
+
dependency: 'remix',
|
242141
|
+
getFsOutputDir: async () => 'public',
|
242142
|
+
getOutputDirName: async () => 'public',
|
242143
|
+
defaultRoutes: [
|
242144
|
+
{
|
242145
|
+
src: '^/build/(.*)$',
|
242146
|
+
headers: { 'cache-control': 'public, max-age=31536000, immutable' },
|
242147
|
+
continue: true,
|
242148
|
+
},
|
242149
|
+
{
|
242150
|
+
handle: 'filesystem',
|
242151
|
+
},
|
242152
|
+
{
|
242153
|
+
src: '/(.*)',
|
242154
|
+
dest: '/api',
|
242155
|
+
},
|
242156
|
+
],
|
242157
|
+
defaultRewrites: [
|
242158
|
+
{
|
242159
|
+
source: '/(.*)',
|
242160
|
+
regex: '/(.*)',
|
242161
|
+
destination: '/api',
|
242162
|
+
},
|
242163
|
+
],
|
242164
|
+
defaultHeaders: [
|
242165
|
+
{
|
242166
|
+
source: '^/build/(.*)$',
|
242167
|
+
regex: '^/build/(.*)$',
|
242168
|
+
headers: [
|
242169
|
+
{ key: 'cache-control', value: 'public, max-age=31536000, immutable' },
|
242170
|
+
],
|
242171
|
+
},
|
242172
|
+
]
|
242173
|
+
},
|
241959
242174
|
{
|
241960
242175
|
name: 'Hexo',
|
241961
242176
|
slug: 'hexo',
|
@@ -241964,7 +242179,6 @@ exports.frameworks = [
|
|
241964
242179
|
tagline: 'Hexo is a fast, simple & powerful blog framework powered by Node.js.',
|
241965
242180
|
description: 'A Hexo site, created with the Hexo CLI.',
|
241966
242181
|
website: 'https://hexo.io',
|
241967
|
-
sort: 3,
|
241968
242182
|
detectors: {
|
241969
242183
|
every: [
|
241970
242184
|
{
|
@@ -242001,7 +242215,6 @@ exports.frameworks = [
|
|
242001
242215
|
tagline: '11ty is a simpler static site generator written in JavaScript, created to be an alternative to Jekyll.',
|
242002
242216
|
description: 'An Eleventy site, created with npm init.',
|
242003
242217
|
website: 'https://www.11ty.dev',
|
242004
|
-
sort: 4,
|
242005
242218
|
detectors: {
|
242006
242219
|
every: [
|
242007
242220
|
{
|
@@ -242713,6 +242926,7 @@ exports.frameworks = [
|
|
242713
242926
|
tagline: 'Svelte lets you write high performance reactive apps with significantly less boilerplate.',
|
242714
242927
|
description: 'A basic Svelte app using the default template.',
|
242715
242928
|
website: 'https://svelte.dev',
|
242929
|
+
sort: 3,
|
242716
242930
|
detectors: {
|
242717
242931
|
every: [
|
242718
242932
|
{
|
@@ -242902,6 +243116,7 @@ exports.frameworks = [
|
|
242902
243116
|
tagline: 'Create React App allows you to get going with React in no time.',
|
242903
243117
|
description: 'A React app, bootstrapped with create-react-app, and a Serverless Function API.',
|
242904
243118
|
website: 'https://create-react-app.dev',
|
243119
|
+
sort: 4,
|
242905
243120
|
envPrefix: 'REACT_APP_',
|
242906
243121
|
detectors: {
|
242907
243122
|
some: [
|
@@ -243283,6 +243498,7 @@ exports.frameworks = [
|
|
243283
243498
|
tagline: 'Nuxt.js is the web comprehensive framework that lets you dream big with Vue.js.',
|
243284
243499
|
description: 'A Nuxt.js app, bootstrapped with create-nuxt-app.',
|
243285
243500
|
website: 'https://nuxtjs.org',
|
243501
|
+
sort: 2,
|
243286
243502
|
envPrefix: 'NUXT_ENV_',
|
243287
243503
|
detectors: {
|
243288
243504
|
every: [
|
@@ -243376,7 +243592,6 @@ exports.frameworks = [
|
|
243376
243592
|
tagline: 'Hugo is the world’s fastest framework for building websites, written in Go.',
|
243377
243593
|
description: 'A Hugo site, created with the Hugo CLI.',
|
243378
243594
|
website: 'https://gohugo.io',
|
243379
|
-
sort: 5,
|
243380
243595
|
detectors: {
|
243381
243596
|
some: [
|
243382
243597
|
{
|
@@ -249730,10 +249945,12 @@ async function main(client) {
|
|
249730
249945
|
cwd,
|
249731
249946
|
});
|
249732
249947
|
}
|
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'));
|
249733
249950
|
if (!fs_extra_1.default.existsSync(path_1.join(cwd, OUTPUT_DIR))) {
|
249734
249951
|
let outputDir = path_1.join(OUTPUT_DIR, 'static');
|
249735
249952
|
let distDir = await framework.getFsOutputDir(cwd);
|
249736
|
-
if (
|
249953
|
+
if (isNextJs) {
|
249737
249954
|
outputDir = OUTPUT_DIR;
|
249738
249955
|
}
|
249739
249956
|
const copyStamp = stamp_1.default();
|
@@ -249791,7 +250008,7 @@ async function main(client) {
|
|
249791
250008
|
await fs_extra_1.default.writeJSON(path_1.join(cwd, OUTPUT_DIR, 'routes-manifest.json'), routesManifest, { spaces: 2 });
|
249792
250009
|
}
|
249793
250010
|
// Special Next.js processing.
|
249794
|
-
if (
|
250011
|
+
if (isNextJs) {
|
249795
250012
|
// The contents of `.output/static` should be placed inside of `.output/static/_next/static`
|
249796
250013
|
const tempStatic = '___static';
|
249797
250014
|
await fs_extra_1.default.rename(path_1.join(cwd, OUTPUT_DIR, 'static'), path_1.join(cwd, OUTPUT_DIR, tempStatic));
|
@@ -249925,6 +250142,15 @@ async function main(client) {
|
|
249925
250142
|
// Build Plugins
|
249926
250143
|
if ((plugins === null || plugins === void 0 ? void 0 : plugins.buildPlugins) && plugins.buildPlugins.length > 0) {
|
249927
250144
|
console.log(`Running ${plugins.pluginCount} CLI ${pluralize_1.default('Plugin', plugins.pluginCount)} after Build Command:`);
|
250145
|
+
let vercelConfig = {};
|
250146
|
+
try {
|
250147
|
+
vercelConfig = await fs_extra_1.default.readJSON(path_1.join(cwd, 'vercel.json'));
|
250148
|
+
}
|
250149
|
+
catch (error) {
|
250150
|
+
if (error.code !== 'ENOENT') {
|
250151
|
+
throw new Error(`Failed to read vercel.json: ${error.message}`);
|
250152
|
+
}
|
250153
|
+
}
|
249928
250154
|
for (let item of plugins.buildPlugins) {
|
249929
250155
|
const { name, plugin, color } = item;
|
249930
250156
|
if (typeof plugin.build === 'function') {
|
@@ -249936,6 +250162,7 @@ async function main(client) {
|
|
249936
250162
|
console.log = (...args) => prefixedLog(prefix, args, origLog);
|
249937
250163
|
console.error = (...args) => prefixedLog(prefix, args, origErr);
|
249938
250164
|
await plugin.build({
|
250165
|
+
vercelConfig,
|
249939
250166
|
workPath: cwd,
|
249940
250167
|
});
|
249941
250168
|
client.output.debug(`Completed ${fullName} ${chalk_1.default.dim(`${pluginStamp()}`)}`);
|
@@ -270244,7 +270471,7 @@ module.exports = JSON.parse("[\"ac\",\"com.ac\",\"edu.ac\",\"gov.ac\",\"net.ac\"
|
|
270244
270471
|
/***/ ((module) => {
|
270245
270472
|
|
270246
270473
|
"use strict";
|
270247
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"23.1.3-canary.
|
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\"}");
|
270248
270475
|
|
270249
270476
|
/***/ }),
|
270250
270477
|
|
@@ -270260,7 +270487,7 @@ module.exports = JSON.parse("{\"VISA\":\"Visa\",\"MASTERCARD\":\"MasterCard\",\"
|
|
270260
270487
|
/***/ ((module) => {
|
270261
270488
|
|
270262
270489
|
"use strict";
|
270263
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"10.2.3-canary.
|
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\"}");
|
270264
270491
|
|
270265
270492
|
/***/ }),
|
270266
270493
|
|