vercel 23.1.3-canary.38 → 23.1.3-canary.41
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 +454 -239
- 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,26 @@ 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 lambda_1 =
|
216871
|
-
const minimatch_1 = __importDefault(
|
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 lambda_1 = __nested_webpack_require_905801__(6721);
|
216938
|
+
const minimatch_1 = __importDefault(__nested_webpack_require_905801__(9566));
|
216872
216939
|
/**
|
216873
216940
|
* Convert legacy Runtime to a Plugin.
|
216874
216941
|
* @param buildRuntime - a legacy build() function from a Runtime
|
216875
216942
|
* @param ext - the file extension, for example `.py`
|
216876
216943
|
*/
|
216877
216944
|
function convertRuntimeToPlugin(buildRuntime, ext) {
|
216878
|
-
|
216945
|
+
// This `build()` signature should match `plugin.build()` signature in `vercel build`.
|
216946
|
+
return async function build({ vercelConfig, workPath, }) {
|
216879
216947
|
const opts = { cwd: workPath };
|
216880
216948
|
const files = await glob_1.default('**', opts);
|
216881
216949
|
delete files['vercel.json']; // Builders/Runtimes didn't have vercel.json
|
216882
216950
|
const entrypoints = await glob_1.default(`api/**/*${ext}`, opts);
|
216883
216951
|
const pages = {};
|
216884
|
-
const { functions = {} } =
|
216952
|
+
const { functions = {} } = vercelConfig;
|
216885
216953
|
const traceDir = path_1.join(workPath, '.output', 'runtime-traced-files');
|
216886
216954
|
await fs_extra_1.default.ensureDir(traceDir);
|
216887
216955
|
for (const entrypoint of Object.keys(entrypoints)) {
|
@@ -216904,7 +216972,7 @@ function convertRuntimeToPlugin(buildRuntime, ext) {
|
|
216904
216972
|
maxDuration: output.maxDuration,
|
216905
216973
|
environment: output.environment,
|
216906
216974
|
allowQuery: output.allowQuery,
|
216907
|
-
regions: output.regions,
|
216975
|
+
//regions: output.regions,
|
216908
216976
|
};
|
216909
216977
|
// @ts-ignore This symbol is a private API
|
216910
216978
|
const lambdaFiles = output[lambda_1.FILES_SYMBOL];
|
@@ -216937,7 +217005,7 @@ function convertRuntimeToPlugin(buildRuntime, ext) {
|
|
216937
217005
|
await fs_extra_1.default.ensureDir(path_1.dirname(nft));
|
216938
217006
|
await fs_extra_1.default.writeFile(nft, json);
|
216939
217007
|
}
|
216940
|
-
await updateFunctionsManifest({ workPath, pages });
|
217008
|
+
await updateFunctionsManifest({ vercelConfig, workPath, pages });
|
216941
217009
|
};
|
216942
217010
|
}
|
216943
217011
|
exports.convertRuntimeToPlugin = convertRuntimeToPlugin;
|
@@ -216963,18 +217031,13 @@ async function readJson(filePath) {
|
|
216963
217031
|
throw err;
|
216964
217032
|
}
|
216965
217033
|
}
|
216966
|
-
async function readVercelConfig(workPath) {
|
216967
|
-
const vercelJsonPath = path_1.join(workPath, 'vercel.json');
|
216968
|
-
return readJson(vercelJsonPath);
|
216969
|
-
}
|
216970
217034
|
/**
|
216971
217035
|
* If `.output/functions-manifest.json` exists, append to the pages
|
216972
217036
|
* property. Otherwise write a new file. This will also read `vercel.json`
|
216973
217037
|
* and apply relevant `functions` property config.
|
216974
217038
|
*/
|
216975
|
-
async function updateFunctionsManifest({ workPath, pages, }) {
|
217039
|
+
async function updateFunctionsManifest({ vercelConfig, workPath, pages, }) {
|
216976
217040
|
const functionsManifestPath = path_1.join(workPath, '.output', 'functions-manifest.json');
|
216977
|
-
const vercelConfig = await readVercelConfig(workPath);
|
216978
217041
|
const functionsManifest = await readJson(functionsManifestPath);
|
216979
217042
|
if (!functionsManifest.version)
|
216980
217043
|
functionsManifest.version = 1;
|
@@ -216996,21 +217059,41 @@ async function updateFunctionsManifest({ workPath, pages, }) {
|
|
216996
217059
|
}
|
216997
217060
|
exports.updateFunctionsManifest = updateFunctionsManifest;
|
216998
217061
|
/**
|
216999
|
-
*
|
217000
|
-
* If the file does not exist, it
|
217062
|
+
* Append routes to the `routes-manifest.json` file.
|
217063
|
+
* If the file does not exist, it will be created.
|
217001
217064
|
*/
|
217002
|
-
async function updateRoutesManifest({ workPath, dynamicRoutes, }) {
|
217065
|
+
async function updateRoutesManifest({ workPath, redirects, rewrites, headers, dynamicRoutes, staticRoutes, }) {
|
217003
217066
|
const routesManifestPath = path_1.join(workPath, '.output', 'routes-manifest.json');
|
217004
217067
|
const routesManifest = await readJson(routesManifestPath);
|
217005
217068
|
if (!routesManifest.version)
|
217006
|
-
routesManifest.version =
|
217069
|
+
routesManifest.version = 3;
|
217007
217070
|
if (routesManifest.pages404 === undefined)
|
217008
217071
|
routesManifest.pages404 = true;
|
217072
|
+
if (redirects) {
|
217073
|
+
if (!routesManifest.redirects)
|
217074
|
+
routesManifest.redirects = [];
|
217075
|
+
routesManifest.redirects.push(...redirects);
|
217076
|
+
}
|
217077
|
+
if (rewrites) {
|
217078
|
+
if (!routesManifest.rewrites)
|
217079
|
+
routesManifest.rewrites = [];
|
217080
|
+
routesManifest.rewrites.push(...rewrites);
|
217081
|
+
}
|
217082
|
+
if (headers) {
|
217083
|
+
if (!routesManifest.headers)
|
217084
|
+
routesManifest.headers = [];
|
217085
|
+
routesManifest.headers.push(...headers);
|
217086
|
+
}
|
217009
217087
|
if (dynamicRoutes) {
|
217010
217088
|
if (!routesManifest.dynamicRoutes)
|
217011
217089
|
routesManifest.dynamicRoutes = [];
|
217012
217090
|
routesManifest.dynamicRoutes.push(...dynamicRoutes);
|
217013
217091
|
}
|
217092
|
+
if (staticRoutes) {
|
217093
|
+
if (!routesManifest.staticRoutes)
|
217094
|
+
routesManifest.staticRoutes = [];
|
217095
|
+
routesManifest.staticRoutes.push(...staticRoutes);
|
217096
|
+
}
|
217014
217097
|
await fs_extra_1.default.writeFile(routesManifestPath, JSON.stringify(routesManifest));
|
217015
217098
|
}
|
217016
217099
|
exports.updateRoutesManifest = updateRoutesManifest;
|
@@ -217019,12 +217102,12 @@ exports.updateRoutesManifest = updateRoutesManifest;
|
|
217019
217102
|
/***/ }),
|
217020
217103
|
|
217021
217104
|
/***/ 1868:
|
217022
|
-
/***/ ((__unused_webpack_module, exports,
|
217105
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_913374__) => {
|
217023
217106
|
|
217024
217107
|
"use strict";
|
217025
217108
|
|
217026
217109
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
217027
|
-
const _1 =
|
217110
|
+
const _1 = __nested_webpack_require_913374__(2855);
|
217028
217111
|
function debug(message, ...additional) {
|
217029
217112
|
if (_1.getPlatformEnv('BUILDER_DEBUG')) {
|
217030
217113
|
console.log(message, ...additional);
|
@@ -217036,7 +217119,7 @@ exports.default = debug;
|
|
217036
217119
|
/***/ }),
|
217037
217120
|
|
217038
217121
|
/***/ 4246:
|
217039
|
-
/***/ (function(__unused_webpack_module, exports,
|
217122
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_913759__) {
|
217040
217123
|
|
217041
217124
|
"use strict";
|
217042
217125
|
|
@@ -217045,11 +217128,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
217045
217128
|
};
|
217046
217129
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
217047
217130
|
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 =
|
217131
|
+
const minimatch_1 = __importDefault(__nested_webpack_require_913759__(9566));
|
217132
|
+
const semver_1 = __nested_webpack_require_913759__(2879);
|
217133
|
+
const path_1 = __nested_webpack_require_913759__(5622);
|
217134
|
+
const frameworks_1 = __importDefault(__nested_webpack_require_913759__(8438));
|
217135
|
+
const _1 = __nested_webpack_require_913759__(2855);
|
217053
217136
|
const slugToFramework = new Map(frameworks_1.default.map(f => [f.slug, f]));
|
217054
217137
|
// We need to sort the file paths by alphabet to make
|
217055
217138
|
// sure the routes stay in the same order e.g. for deduping
|
@@ -217107,6 +217190,7 @@ async function detectBuilders(files, pkg, options = {}) {
|
|
217107
217190
|
redirectRoutes: null,
|
217108
217191
|
rewriteRoutes: null,
|
217109
217192
|
errorRoutes: null,
|
217193
|
+
limitedRoutes: null,
|
217110
217194
|
};
|
217111
217195
|
}
|
217112
217196
|
const sortedFiles = files.sort(sortFiles);
|
@@ -217154,6 +217238,7 @@ async function detectBuilders(files, pkg, options = {}) {
|
|
217154
217238
|
redirectRoutes: null,
|
217155
217239
|
rewriteRoutes: null,
|
217156
217240
|
errorRoutes: null,
|
217241
|
+
limitedRoutes: null,
|
217157
217242
|
};
|
217158
217243
|
}
|
217159
217244
|
if (apiRoute) {
|
@@ -217208,6 +217293,7 @@ async function detectBuilders(files, pkg, options = {}) {
|
|
217208
217293
|
defaultRoutes: null,
|
217209
217294
|
rewriteRoutes: null,
|
217210
217295
|
errorRoutes: null,
|
217296
|
+
limitedRoutes: null,
|
217211
217297
|
};
|
217212
217298
|
}
|
217213
217299
|
// If `outputDirectory` is an empty string,
|
@@ -217244,6 +217330,7 @@ async function detectBuilders(files, pkg, options = {}) {
|
|
217244
217330
|
defaultRoutes: null,
|
217245
217331
|
rewriteRoutes: null,
|
217246
217332
|
errorRoutes: null,
|
217333
|
+
limitedRoutes: null,
|
217247
217334
|
};
|
217248
217335
|
}
|
217249
217336
|
const builders = [];
|
@@ -217262,7 +217349,7 @@ async function detectBuilders(files, pkg, options = {}) {
|
|
217262
217349
|
});
|
217263
217350
|
}
|
217264
217351
|
}
|
217265
|
-
const routesResult = getRouteResult(apiRoutes, dynamicRoutes, usedOutputDirectory, apiBuilders, frontendBuilder, options);
|
217352
|
+
const routesResult = getRouteResult(pkg, apiRoutes, dynamicRoutes, usedOutputDirectory, apiBuilders, frontendBuilder, options);
|
217266
217353
|
return {
|
217267
217354
|
warnings,
|
217268
217355
|
builders: builders.length ? builders : null,
|
@@ -217271,6 +217358,7 @@ async function detectBuilders(files, pkg, options = {}) {
|
|
217271
217358
|
defaultRoutes: routesResult.defaultRoutes,
|
217272
217359
|
rewriteRoutes: routesResult.rewriteRoutes,
|
217273
217360
|
errorRoutes: routesResult.errorRoutes,
|
217361
|
+
limitedRoutes: routesResult.limitedRoutes,
|
217274
217362
|
};
|
217275
217363
|
}
|
217276
217364
|
exports.detectBuilders = detectBuilders;
|
@@ -217711,23 +217799,51 @@ function createRouteFromPath(filePath, featHandleMiss, cleanUrls) {
|
|
217711
217799
|
}
|
217712
217800
|
return { route, isDynamic };
|
217713
217801
|
}
|
217714
|
-
function getRouteResult(apiRoutes, dynamicRoutes, outputDirectory, apiBuilders, frontendBuilder, options) {
|
217802
|
+
function getRouteResult(pkg, apiRoutes, dynamicRoutes, outputDirectory, apiBuilders, frontendBuilder, options) {
|
217715
217803
|
var _a, _b;
|
217804
|
+
const deps = Object.assign({}, pkg === null || pkg === void 0 ? void 0 : pkg.dependencies, pkg === null || pkg === void 0 ? void 0 : pkg.devDependencies);
|
217716
217805
|
const defaultRoutes = [];
|
217717
217806
|
const redirectRoutes = [];
|
217718
217807
|
const rewriteRoutes = [];
|
217719
217808
|
const errorRoutes = [];
|
217809
|
+
const limitedRoutes = {
|
217810
|
+
defaultRoutes: [],
|
217811
|
+
redirectRoutes: [],
|
217812
|
+
rewriteRoutes: [],
|
217813
|
+
};
|
217720
217814
|
const framework = ((_a = frontendBuilder === null || frontendBuilder === void 0 ? void 0 : frontendBuilder.config) === null || _a === void 0 ? void 0 : _a.framework) || '';
|
217721
217815
|
const isNextjs = framework === 'nextjs' || _1.isOfficialRuntime('next', frontendBuilder === null || frontendBuilder === void 0 ? void 0 : frontendBuilder.use);
|
217722
217816
|
const ignoreRuntimes = (_b = slugToFramework.get(framework)) === null || _b === void 0 ? void 0 : _b.ignoreRuntimes;
|
217723
217817
|
if (apiRoutes && apiRoutes.length > 0) {
|
217724
217818
|
if (options.featHandleMiss) {
|
217819
|
+
// Exclude extension names if the corresponding plugin is not found in package.json
|
217820
|
+
// detectBuilders({ignoreRoutesForBuilders: ['@vercel/python']})
|
217821
|
+
// return a copy of routes.
|
217822
|
+
// We should exclud errorRoutes and
|
217725
217823
|
const extSet = detectApiExtensions(apiBuilders);
|
217824
|
+
const withTag = options.tag ? `@${options.tag}` : '';
|
217825
|
+
const extSetLimited = detectApiExtensions(apiBuilders.filter(b => {
|
217826
|
+
if (b.use === `@vercel/python${withTag}` &&
|
217827
|
+
!('vercel-plugin-python' in deps)) {
|
217828
|
+
return false;
|
217829
|
+
}
|
217830
|
+
if (b.use === `@vercel/go${withTag}` &&
|
217831
|
+
!('vercel-plugin-go' in deps)) {
|
217832
|
+
return false;
|
217833
|
+
}
|
217834
|
+
if (b.use === `@vercel/ruby${withTag}` &&
|
217835
|
+
!('vercel-plugin-ruby' in deps)) {
|
217836
|
+
return false;
|
217837
|
+
}
|
217838
|
+
return true;
|
217839
|
+
}));
|
217726
217840
|
if (extSet.size > 0) {
|
217727
|
-
const
|
217841
|
+
const extGroup = `(?:\\.(?:${Array.from(extSet)
|
217728
217842
|
.map(ext => ext.slice(1))
|
217729
|
-
.join('|')
|
217730
|
-
const
|
217843
|
+
.join('|')}))`;
|
217844
|
+
const extGroupLimited = `(?:\\.(?:${Array.from(extSetLimited)
|
217845
|
+
.map(ext => ext.slice(1))
|
217846
|
+
.join('|')}))`;
|
217731
217847
|
if (options.cleanUrls) {
|
217732
217848
|
redirectRoutes.push({
|
217733
217849
|
src: `^/(api(?:.+)?)/index${extGroup}?/?$`,
|
@@ -217741,6 +217857,18 @@ function getRouteResult(apiRoutes, dynamicRoutes, outputDirectory, apiBuilders,
|
|
217741
217857
|
},
|
217742
217858
|
status: 308,
|
217743
217859
|
});
|
217860
|
+
limitedRoutes.redirectRoutes.push({
|
217861
|
+
src: `^/(api(?:.+)?)/index${extGroupLimited}?/?$`,
|
217862
|
+
headers: { Location: options.trailingSlash ? '/$1/' : '/$1' },
|
217863
|
+
status: 308,
|
217864
|
+
});
|
217865
|
+
limitedRoutes.redirectRoutes.push({
|
217866
|
+
src: `^/api/(.+)${extGroupLimited}/?$`,
|
217867
|
+
headers: {
|
217868
|
+
Location: options.trailingSlash ? '/api/$1/' : '/api/$1',
|
217869
|
+
},
|
217870
|
+
status: 308,
|
217871
|
+
});
|
217744
217872
|
}
|
217745
217873
|
else {
|
217746
217874
|
defaultRoutes.push({ handle: 'miss' });
|
@@ -217749,9 +217877,16 @@ function getRouteResult(apiRoutes, dynamicRoutes, outputDirectory, apiBuilders,
|
|
217749
217877
|
dest: '/api/$1',
|
217750
217878
|
check: true,
|
217751
217879
|
});
|
217880
|
+
limitedRoutes.defaultRoutes.push({ handle: 'miss' });
|
217881
|
+
limitedRoutes.defaultRoutes.push({
|
217882
|
+
src: `^/api/(.+)${extGroupLimited}$`,
|
217883
|
+
dest: '/api/$1',
|
217884
|
+
check: true,
|
217885
|
+
});
|
217752
217886
|
}
|
217753
217887
|
}
|
217754
217888
|
rewriteRoutes.push(...dynamicRoutes);
|
217889
|
+
limitedRoutes.rewriteRoutes.push(...dynamicRoutes);
|
217755
217890
|
if (typeof ignoreRuntimes === 'undefined') {
|
217756
217891
|
// This route is only necessary to hide the directory listing
|
217757
217892
|
// to avoid enumerating serverless function names.
|
@@ -217796,6 +217931,7 @@ function getRouteResult(apiRoutes, dynamicRoutes, outputDirectory, apiBuilders,
|
|
217796
217931
|
redirectRoutes,
|
217797
217932
|
rewriteRoutes,
|
217798
217933
|
errorRoutes,
|
217934
|
+
limitedRoutes,
|
217799
217935
|
};
|
217800
217936
|
}
|
217801
217937
|
function sortFilesBySegmentCount(fileA, fileB) {
|
@@ -218055,7 +218191,7 @@ function getSuggestion(topLevelProp, additionalProperty) {
|
|
218055
218191
|
/***/ }),
|
218056
218192
|
|
218057
218193
|
/***/ 2397:
|
218058
|
-
/***/ (function(__unused_webpack_module, exports,
|
218194
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_953143__) {
|
218059
218195
|
|
218060
218196
|
"use strict";
|
218061
218197
|
|
@@ -218063,8 +218199,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218063
218199
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
218064
218200
|
};
|
218065
218201
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218066
|
-
const assert_1 = __importDefault(
|
218067
|
-
const into_stream_1 = __importDefault(
|
218202
|
+
const assert_1 = __importDefault(__nested_webpack_require_953143__(2357));
|
218203
|
+
const into_stream_1 = __importDefault(__nested_webpack_require_953143__(6130));
|
218068
218204
|
class FileBlob {
|
218069
218205
|
constructor({ mode = 0o100644, contentType, data }) {
|
218070
218206
|
assert_1.default(typeof mode === 'number');
|
@@ -218096,7 +218232,7 @@ exports.default = FileBlob;
|
|
218096
218232
|
/***/ }),
|
218097
218233
|
|
218098
218234
|
/***/ 9331:
|
218099
|
-
/***/ (function(__unused_webpack_module, exports,
|
218235
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_954595__) {
|
218100
218236
|
|
218101
218237
|
"use strict";
|
218102
218238
|
|
@@ -218104,11 +218240,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218104
218240
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
218105
218241
|
};
|
218106
218242
|
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(
|
218243
|
+
const assert_1 = __importDefault(__nested_webpack_require_954595__(2357));
|
218244
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_954595__(5392));
|
218245
|
+
const multistream_1 = __importDefault(__nested_webpack_require_954595__(8179));
|
218246
|
+
const path_1 = __importDefault(__nested_webpack_require_954595__(5622));
|
218247
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_954595__(5758));
|
218112
218248
|
const semaToPreventEMFILE = new async_sema_1.default(20);
|
218113
218249
|
class FileFsRef {
|
218114
218250
|
constructor({ mode = 0o100644, contentType, fsPath }) {
|
@@ -218174,7 +218310,7 @@ exports.default = FileFsRef;
|
|
218174
218310
|
/***/ }),
|
218175
218311
|
|
218176
218312
|
/***/ 5187:
|
218177
|
-
/***/ (function(__unused_webpack_module, exports,
|
218313
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_957399__) {
|
218178
218314
|
|
218179
218315
|
"use strict";
|
218180
218316
|
|
@@ -218182,11 +218318,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218182
218318
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
218183
218319
|
};
|
218184
218320
|
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(
|
218321
|
+
const assert_1 = __importDefault(__nested_webpack_require_957399__(2357));
|
218322
|
+
const node_fetch_1 = __importDefault(__nested_webpack_require_957399__(2197));
|
218323
|
+
const multistream_1 = __importDefault(__nested_webpack_require_957399__(8179));
|
218324
|
+
const async_retry_1 = __importDefault(__nested_webpack_require_957399__(3691));
|
218325
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_957399__(5758));
|
218190
218326
|
const semaToDownloadFromS3 = new async_sema_1.default(5);
|
218191
218327
|
class BailableError extends Error {
|
218192
218328
|
constructor(...args) {
|
@@ -218267,7 +218403,7 @@ exports.default = FileRef;
|
|
218267
218403
|
/***/ }),
|
218268
218404
|
|
218269
218405
|
/***/ 1611:
|
218270
|
-
/***/ (function(__unused_webpack_module, exports,
|
218406
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_960800__) {
|
218271
218407
|
|
218272
218408
|
"use strict";
|
218273
218409
|
|
@@ -218276,10 +218412,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218276
218412
|
};
|
218277
218413
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218278
218414
|
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 =
|
218415
|
+
const path_1 = __importDefault(__nested_webpack_require_960800__(5622));
|
218416
|
+
const debug_1 = __importDefault(__nested_webpack_require_960800__(1868));
|
218417
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_960800__(9331));
|
218418
|
+
const fs_extra_1 = __nested_webpack_require_960800__(5392);
|
218283
218419
|
const S_IFMT = 61440; /* 0170000 type of file */
|
218284
218420
|
const S_IFLNK = 40960; /* 0120000 symbolic link */
|
218285
218421
|
function isSymbolicLink(mode) {
|
@@ -218341,14 +218477,14 @@ exports.default = download;
|
|
218341
218477
|
/***/ }),
|
218342
218478
|
|
218343
218479
|
/***/ 3838:
|
218344
|
-
/***/ ((__unused_webpack_module, exports,
|
218480
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_963625__) => {
|
218345
218481
|
|
218346
218482
|
"use strict";
|
218347
218483
|
|
218348
218484
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218349
|
-
const path_1 =
|
218350
|
-
const os_1 =
|
218351
|
-
const fs_extra_1 =
|
218485
|
+
const path_1 = __nested_webpack_require_963625__(5622);
|
218486
|
+
const os_1 = __nested_webpack_require_963625__(2087);
|
218487
|
+
const fs_extra_1 = __nested_webpack_require_963625__(5392);
|
218352
218488
|
async function getWritableDirectory() {
|
218353
218489
|
const name = Math.floor(Math.random() * 0x7fffffff).toString(16);
|
218354
218490
|
const directory = path_1.join(os_1.tmpdir(), name);
|
@@ -218361,7 +218497,7 @@ exports.default = getWritableDirectory;
|
|
218361
218497
|
/***/ }),
|
218362
218498
|
|
218363
218499
|
/***/ 4240:
|
218364
|
-
/***/ (function(__unused_webpack_module, exports,
|
218500
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_964205__) {
|
218365
218501
|
|
218366
218502
|
"use strict";
|
218367
218503
|
|
@@ -218369,13 +218505,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218369
218505
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
218370
218506
|
};
|
218371
218507
|
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(
|
218508
|
+
const path_1 = __importDefault(__nested_webpack_require_964205__(5622));
|
218509
|
+
const assert_1 = __importDefault(__nested_webpack_require_964205__(2357));
|
218510
|
+
const glob_1 = __importDefault(__nested_webpack_require_964205__(1104));
|
218511
|
+
const util_1 = __nested_webpack_require_964205__(1669);
|
218512
|
+
const fs_extra_1 = __nested_webpack_require_964205__(5392);
|
218513
|
+
const normalize_path_1 = __nested_webpack_require_964205__(6261);
|
218514
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_964205__(9331));
|
218379
218515
|
const vanillaGlob = util_1.promisify(glob_1.default);
|
218380
218516
|
async function glob(pattern, opts, mountpoint) {
|
218381
218517
|
let options;
|
@@ -218421,7 +218557,7 @@ exports.default = glob;
|
|
218421
218557
|
/***/ }),
|
218422
218558
|
|
218423
218559
|
/***/ 7903:
|
218424
|
-
/***/ (function(__unused_webpack_module, exports,
|
218560
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_966401__) {
|
218425
218561
|
|
218426
218562
|
"use strict";
|
218427
218563
|
|
@@ -218430,9 +218566,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218430
218566
|
};
|
218431
218567
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218432
218568
|
exports.getSupportedNodeVersion = exports.getDiscontinuedNodeVersions = exports.getLatestNodeVersion = void 0;
|
218433
|
-
const semver_1 =
|
218434
|
-
const errors_1 =
|
218435
|
-
const debug_1 = __importDefault(
|
218569
|
+
const semver_1 = __nested_webpack_require_966401__(2879);
|
218570
|
+
const errors_1 = __nested_webpack_require_966401__(3983);
|
218571
|
+
const debug_1 = __importDefault(__nested_webpack_require_966401__(1868));
|
218436
218572
|
const allOptions = [
|
218437
218573
|
{ major: 14, range: '14.x', runtime: 'nodejs14.x' },
|
218438
218574
|
{ major: 12, range: '12.x', runtime: 'nodejs12.x' },
|
@@ -218526,7 +218662,7 @@ exports.normalizePath = normalizePath;
|
|
218526
218662
|
/***/ }),
|
218527
218663
|
|
218528
218664
|
/***/ 7792:
|
218529
|
-
/***/ (function(__unused_webpack_module, exports,
|
218665
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_970269__) {
|
218530
218666
|
|
218531
218667
|
"use strict";
|
218532
218668
|
|
@@ -218535,9 +218671,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218535
218671
|
};
|
218536
218672
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218537
218673
|
exports.readConfigFile = void 0;
|
218538
|
-
const js_yaml_1 = __importDefault(
|
218539
|
-
const toml_1 = __importDefault(
|
218540
|
-
const fs_extra_1 =
|
218674
|
+
const js_yaml_1 = __importDefault(__nested_webpack_require_970269__(6540));
|
218675
|
+
const toml_1 = __importDefault(__nested_webpack_require_970269__(9434));
|
218676
|
+
const fs_extra_1 = __nested_webpack_require_970269__(5392);
|
218541
218677
|
async function readFileOrNull(file) {
|
218542
218678
|
try {
|
218543
218679
|
const data = await fs_extra_1.readFile(file);
|
@@ -218592,7 +218728,7 @@ exports.default = rename;
|
|
218592
218728
|
/***/ }),
|
218593
218729
|
|
218594
218730
|
/***/ 1442:
|
218595
|
-
/***/ (function(__unused_webpack_module, exports,
|
218731
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_972062__) {
|
218596
218732
|
|
218597
218733
|
"use strict";
|
218598
218734
|
|
@@ -218601,14 +218737,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218601
218737
|
};
|
218602
218738
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218603
218739
|
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 =
|
218740
|
+
const assert_1 = __importDefault(__nested_webpack_require_972062__(2357));
|
218741
|
+
const fs_extra_1 = __importDefault(__nested_webpack_require_972062__(5392));
|
218742
|
+
const path_1 = __importDefault(__nested_webpack_require_972062__(5622));
|
218743
|
+
const debug_1 = __importDefault(__nested_webpack_require_972062__(1868));
|
218744
|
+
const cross_spawn_1 = __importDefault(__nested_webpack_require_972062__(7618));
|
218745
|
+
const util_1 = __nested_webpack_require_972062__(1669);
|
218746
|
+
const errors_1 = __nested_webpack_require_972062__(3983);
|
218747
|
+
const node_version_1 = __nested_webpack_require_972062__(7903);
|
218612
218748
|
function spawnAsync(command, args, opts = {}) {
|
218613
218749
|
return new Promise((resolve, reject) => {
|
218614
218750
|
const stderrLogs = [];
|
@@ -218919,7 +219055,7 @@ exports.installDependencies = util_1.deprecate(runNpmInstall, 'installDependenci
|
|
218919
219055
|
/***/ }),
|
218920
219056
|
|
218921
219057
|
/***/ 2560:
|
218922
|
-
/***/ (function(__unused_webpack_module, exports,
|
219058
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_986052__) {
|
218923
219059
|
|
218924
219060
|
"use strict";
|
218925
219061
|
|
@@ -218927,7 +219063,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218927
219063
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
218928
219064
|
};
|
218929
219065
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218930
|
-
const end_of_stream_1 = __importDefault(
|
219066
|
+
const end_of_stream_1 = __importDefault(__nested_webpack_require_986052__(687));
|
218931
219067
|
function streamToBuffer(stream) {
|
218932
219068
|
return new Promise((resolve, reject) => {
|
218933
219069
|
const buffers = [];
|
@@ -218956,7 +219092,7 @@ exports.default = streamToBuffer;
|
|
218956
219092
|
/***/ }),
|
218957
219093
|
|
218958
219094
|
/***/ 2855:
|
218959
|
-
/***/ (function(__unused_webpack_module, exports,
|
219095
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_987120__) {
|
218960
219096
|
|
218961
219097
|
"use strict";
|
218962
219098
|
|
@@ -218987,28 +219123,28 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
218987
219123
|
};
|
218988
219124
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
218989
219125
|
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(
|
219126
|
+
const file_blob_1 = __importDefault(__nested_webpack_require_987120__(2397));
|
218991
219127
|
exports.FileBlob = file_blob_1.default;
|
218992
|
-
const file_fs_ref_1 = __importDefault(
|
219128
|
+
const file_fs_ref_1 = __importDefault(__nested_webpack_require_987120__(9331));
|
218993
219129
|
exports.FileFsRef = file_fs_ref_1.default;
|
218994
|
-
const file_ref_1 = __importDefault(
|
219130
|
+
const file_ref_1 = __importDefault(__nested_webpack_require_987120__(5187));
|
218995
219131
|
exports.FileRef = file_ref_1.default;
|
218996
|
-
const lambda_1 =
|
219132
|
+
const lambda_1 = __nested_webpack_require_987120__(6721);
|
218997
219133
|
Object.defineProperty(exports, "Lambda", ({ enumerable: true, get: function () { return lambda_1.Lambda; } }));
|
218998
219134
|
Object.defineProperty(exports, "createLambda", ({ enumerable: true, get: function () { return lambda_1.createLambda; } }));
|
218999
219135
|
Object.defineProperty(exports, "getLambdaOptionsFromFunction", ({ enumerable: true, get: function () { return lambda_1.getLambdaOptionsFromFunction; } }));
|
219000
|
-
const prerender_1 =
|
219136
|
+
const prerender_1 = __nested_webpack_require_987120__(2850);
|
219001
219137
|
Object.defineProperty(exports, "Prerender", ({ enumerable: true, get: function () { return prerender_1.Prerender; } }));
|
219002
|
-
const download_1 = __importStar(
|
219138
|
+
const download_1 = __importStar(__nested_webpack_require_987120__(1611));
|
219003
219139
|
exports.download = download_1.default;
|
219004
219140
|
Object.defineProperty(exports, "isSymbolicLink", ({ enumerable: true, get: function () { return download_1.isSymbolicLink; } }));
|
219005
|
-
const get_writable_directory_1 = __importDefault(
|
219141
|
+
const get_writable_directory_1 = __importDefault(__nested_webpack_require_987120__(3838));
|
219006
219142
|
exports.getWriteableDirectory = get_writable_directory_1.default;
|
219007
|
-
const glob_1 = __importDefault(
|
219143
|
+
const glob_1 = __importDefault(__nested_webpack_require_987120__(4240));
|
219008
219144
|
exports.glob = glob_1.default;
|
219009
|
-
const rename_1 = __importDefault(
|
219145
|
+
const rename_1 = __importDefault(__nested_webpack_require_987120__(6718));
|
219010
219146
|
exports.rename = rename_1.default;
|
219011
|
-
const run_user_scripts_1 =
|
219147
|
+
const run_user_scripts_1 = __nested_webpack_require_987120__(1442);
|
219012
219148
|
Object.defineProperty(exports, "execAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.execAsync; } }));
|
219013
219149
|
Object.defineProperty(exports, "spawnAsync", ({ enumerable: true, get: function () { return run_user_scripts_1.spawnAsync; } }));
|
219014
219150
|
Object.defineProperty(exports, "execCommand", ({ enumerable: true, get: function () { return run_user_scripts_1.execCommand; } }));
|
@@ -219025,36 +219161,36 @@ Object.defineProperty(exports, "getNodeVersion", ({ enumerable: true, get: funct
|
|
219025
219161
|
Object.defineProperty(exports, "getSpawnOptions", ({ enumerable: true, get: function () { return run_user_scripts_1.getSpawnOptions; } }));
|
219026
219162
|
Object.defineProperty(exports, "getNodeBinPath", ({ enumerable: true, get: function () { return run_user_scripts_1.getNodeBinPath; } }));
|
219027
219163
|
Object.defineProperty(exports, "scanParentDirs", ({ enumerable: true, get: function () { return run_user_scripts_1.scanParentDirs; } }));
|
219028
|
-
const node_version_1 =
|
219164
|
+
const node_version_1 = __nested_webpack_require_987120__(7903);
|
219029
219165
|
Object.defineProperty(exports, "getLatestNodeVersion", ({ enumerable: true, get: function () { return node_version_1.getLatestNodeVersion; } }));
|
219030
219166
|
Object.defineProperty(exports, "getDiscontinuedNodeVersions", ({ enumerable: true, get: function () { return node_version_1.getDiscontinuedNodeVersions; } }));
|
219031
|
-
const errors_1 =
|
219032
|
-
const stream_to_buffer_1 = __importDefault(
|
219167
|
+
const errors_1 = __nested_webpack_require_987120__(3983);
|
219168
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_987120__(2560));
|
219033
219169
|
exports.streamToBuffer = stream_to_buffer_1.default;
|
219034
|
-
const should_serve_1 = __importDefault(
|
219170
|
+
const should_serve_1 = __importDefault(__nested_webpack_require_987120__(2564));
|
219035
219171
|
exports.shouldServe = should_serve_1.default;
|
219036
|
-
const debug_1 = __importDefault(
|
219172
|
+
const debug_1 = __importDefault(__nested_webpack_require_987120__(1868));
|
219037
219173
|
exports.debug = debug_1.default;
|
219038
|
-
var detect_builders_1 =
|
219174
|
+
var detect_builders_1 = __nested_webpack_require_987120__(4246);
|
219039
219175
|
Object.defineProperty(exports, "detectBuilders", ({ enumerable: true, get: function () { return detect_builders_1.detectBuilders; } }));
|
219040
219176
|
Object.defineProperty(exports, "detectOutputDirectory", ({ enumerable: true, get: function () { return detect_builders_1.detectOutputDirectory; } }));
|
219041
219177
|
Object.defineProperty(exports, "detectApiDirectory", ({ enumerable: true, get: function () { return detect_builders_1.detectApiDirectory; } }));
|
219042
219178
|
Object.defineProperty(exports, "detectApiExtensions", ({ enumerable: true, get: function () { return detect_builders_1.detectApiExtensions; } }));
|
219043
|
-
var detect_framework_1 =
|
219179
|
+
var detect_framework_1 = __nested_webpack_require_987120__(5224);
|
219044
219180
|
Object.defineProperty(exports, "detectFramework", ({ enumerable: true, get: function () { return detect_framework_1.detectFramework; } }));
|
219045
|
-
var filesystem_1 =
|
219181
|
+
var filesystem_1 = __nested_webpack_require_987120__(461);
|
219046
219182
|
Object.defineProperty(exports, "DetectorFilesystem", ({ enumerable: true, get: function () { return filesystem_1.DetectorFilesystem; } }));
|
219047
|
-
var read_config_file_1 =
|
219183
|
+
var read_config_file_1 = __nested_webpack_require_987120__(7792);
|
219048
219184
|
Object.defineProperty(exports, "readConfigFile", ({ enumerable: true, get: function () { return read_config_file_1.readConfigFile; } }));
|
219049
|
-
var normalize_path_1 =
|
219185
|
+
var normalize_path_1 = __nested_webpack_require_987120__(6261);
|
219050
219186
|
Object.defineProperty(exports, "normalizePath", ({ enumerable: true, get: function () { return normalize_path_1.normalizePath; } }));
|
219051
|
-
var convert_runtime_to_plugin_1 =
|
219187
|
+
var convert_runtime_to_plugin_1 = __nested_webpack_require_987120__(7276);
|
219052
219188
|
Object.defineProperty(exports, "convertRuntimeToPlugin", ({ enumerable: true, get: function () { return convert_runtime_to_plugin_1.convertRuntimeToPlugin; } }));
|
219053
219189
|
Object.defineProperty(exports, "updateFunctionsManifest", ({ enumerable: true, get: function () { return convert_runtime_to_plugin_1.updateFunctionsManifest; } }));
|
219054
219190
|
Object.defineProperty(exports, "updateRoutesManifest", ({ enumerable: true, get: function () { return convert_runtime_to_plugin_1.updateRoutesManifest; } }));
|
219055
|
-
__exportStar(
|
219056
|
-
__exportStar(
|
219057
|
-
__exportStar(
|
219191
|
+
__exportStar(__nested_webpack_require_987120__(2416), exports);
|
219192
|
+
__exportStar(__nested_webpack_require_987120__(5748), exports);
|
219193
|
+
__exportStar(__nested_webpack_require_987120__(3983), exports);
|
219058
219194
|
/**
|
219059
219195
|
* Helper function to support both `@vercel` and legacy `@now` official Runtimes.
|
219060
219196
|
*/
|
@@ -219099,7 +219235,7 @@ exports.getPlatformEnv = getPlatformEnv;
|
|
219099
219235
|
/***/ }),
|
219100
219236
|
|
219101
219237
|
/***/ 6721:
|
219102
|
-
/***/ (function(__unused_webpack_module, exports,
|
219238
|
+
/***/ (function(__unused_webpack_module, exports, __nested_webpack_require_997584__) {
|
219103
219239
|
|
219104
219240
|
"use strict";
|
219105
219241
|
|
@@ -219108,13 +219244,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
219108
219244
|
};
|
219109
219245
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219110
219246
|
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(
|
219247
|
+
const assert_1 = __importDefault(__nested_webpack_require_997584__(2357));
|
219248
|
+
const async_sema_1 = __importDefault(__nested_webpack_require_997584__(5758));
|
219249
|
+
const yazl_1 = __nested_webpack_require_997584__(1223);
|
219250
|
+
const minimatch_1 = __importDefault(__nested_webpack_require_997584__(9566));
|
219251
|
+
const fs_extra_1 = __nested_webpack_require_997584__(5392);
|
219252
|
+
const download_1 = __nested_webpack_require_997584__(1611);
|
219253
|
+
const stream_to_buffer_1 = __importDefault(__nested_webpack_require_997584__(2560));
|
219118
219254
|
exports.FILES_SYMBOL = Symbol('files');
|
219119
219255
|
class Lambda {
|
219120
219256
|
constructor({ zipBuffer, handler, runtime, maxDuration, memory, environment, allowQuery, regions, }) {
|
@@ -219343,12 +219479,12 @@ exports.buildsSchema = {
|
|
219343
219479
|
/***/ }),
|
219344
219480
|
|
219345
219481
|
/***/ 2564:
|
219346
|
-
/***/ ((__unused_webpack_module, exports,
|
219482
|
+
/***/ ((__unused_webpack_module, exports, __nested_webpack_require_1006094__) => {
|
219347
219483
|
|
219348
219484
|
"use strict";
|
219349
219485
|
|
219350
219486
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
219351
|
-
const path_1 =
|
219487
|
+
const path_1 = __nested_webpack_require_1006094__(5622);
|
219352
219488
|
function shouldServe({ entrypoint, files, requestPath, }) {
|
219353
219489
|
requestPath = requestPath.replace(/\/$/, ''); // sanitize trailing '/'
|
219354
219490
|
entrypoint = entrypoint.replace(/\\/, '/'); // windows compatibility
|
@@ -219577,7 +219713,7 @@ module.exports = __webpack_require__(78761);
|
|
219577
219713
|
/******/ var __webpack_module_cache__ = {};
|
219578
219714
|
/******/
|
219579
219715
|
/******/ // The require function
|
219580
|
-
/******/ function
|
219716
|
+
/******/ function __nested_webpack_require_1105733__(moduleId) {
|
219581
219717
|
/******/ // Check if module is in cache
|
219582
219718
|
/******/ if(__webpack_module_cache__[moduleId]) {
|
219583
219719
|
/******/ return __webpack_module_cache__[moduleId].exports;
|
@@ -219592,7 +219728,7 @@ module.exports = __webpack_require__(78761);
|
|
219592
219728
|
/******/ // Execute the module function
|
219593
219729
|
/******/ var threw = true;
|
219594
219730
|
/******/ try {
|
219595
|
-
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports,
|
219731
|
+
/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nested_webpack_require_1105733__);
|
219596
219732
|
/******/ threw = false;
|
219597
219733
|
/******/ } finally {
|
219598
219734
|
/******/ if(threw) delete __webpack_module_cache__[moduleId];
|
@@ -219605,11 +219741,11 @@ module.exports = __webpack_require__(78761);
|
|
219605
219741
|
/************************************************************************/
|
219606
219742
|
/******/ /* webpack/runtime/compat */
|
219607
219743
|
/******/
|
219608
|
-
/******/
|
219744
|
+
/******/ __nested_webpack_require_1105733__.ab = __dirname + "/";/************************************************************************/
|
219609
219745
|
/******/ // module exports must be returned from runtime so entry inlining is disabled
|
219610
219746
|
/******/ // startup
|
219611
219747
|
/******/ // Load entry module and return exports
|
219612
|
-
/******/ return
|
219748
|
+
/******/ return __nested_webpack_require_1105733__(2855);
|
219613
219749
|
/******/ })()
|
219614
219750
|
;
|
219615
219751
|
|
@@ -241881,7 +242017,7 @@ exports.frameworks = [
|
|
241881
242017
|
tagline: 'Gatsby helps developers build blazing fast websites and apps with React.',
|
241882
242018
|
description: 'A Gatsby app, using the default starter theme and a Serverless Function API.',
|
241883
242019
|
website: 'https://gatsbyjs.org',
|
241884
|
-
sort:
|
242020
|
+
sort: 5,
|
241885
242021
|
envPrefix: 'GATSBY_',
|
241886
242022
|
detectors: {
|
241887
242023
|
every: [
|
@@ -241956,6 +242092,73 @@ exports.frameworks = [
|
|
241956
242092
|
},
|
241957
242093
|
cachePattern: '{.cache,public}/**',
|
241958
242094
|
},
|
242095
|
+
{
|
242096
|
+
name: 'Remix',
|
242097
|
+
slug: 'remix',
|
242098
|
+
demo: 'https://remix.examples.vercel.com',
|
242099
|
+
logo: 'https://raw.githubusercontent.com/vercel/vercel/main/packages/frameworks/logos/remix.svg',
|
242100
|
+
tagline: 'Build Better Websites',
|
242101
|
+
description: 'A new Remix app — the result of running `npx create-remix`.',
|
242102
|
+
website: 'https://remix.run',
|
242103
|
+
sort: 6,
|
242104
|
+
detectors: {
|
242105
|
+
every: [
|
242106
|
+
{
|
242107
|
+
path: 'package.json',
|
242108
|
+
matchContent: '"(dev)?(d|D)ependencies":\\s*{[^}]*"remix":\\s*".+?"[^}]*}',
|
242109
|
+
},
|
242110
|
+
],
|
242111
|
+
},
|
242112
|
+
settings: {
|
242113
|
+
installCommand: {
|
242114
|
+
placeholder: '`yarn install` or `npm install`',
|
242115
|
+
},
|
242116
|
+
buildCommand: {
|
242117
|
+
value: 'remix build',
|
242118
|
+
placeholder: '`npm run build` or `remix build`',
|
242119
|
+
},
|
242120
|
+
devCommand: {
|
242121
|
+
value: 'remix dev',
|
242122
|
+
placeholder: 'remix dev',
|
242123
|
+
},
|
242124
|
+
outputDirectory: {
|
242125
|
+
value: 'public',
|
242126
|
+
},
|
242127
|
+
},
|
242128
|
+
dependency: 'remix',
|
242129
|
+
getFsOutputDir: async () => 'public',
|
242130
|
+
getOutputDirName: async () => 'public',
|
242131
|
+
defaultRoutes: [
|
242132
|
+
{
|
242133
|
+
src: '^/build/(.*)$',
|
242134
|
+
headers: { 'cache-control': 'public, max-age=31536000, immutable' },
|
242135
|
+
continue: true,
|
242136
|
+
},
|
242137
|
+
{
|
242138
|
+
handle: 'filesystem',
|
242139
|
+
},
|
242140
|
+
{
|
242141
|
+
src: '/(.*)',
|
242142
|
+
dest: '/api',
|
242143
|
+
},
|
242144
|
+
],
|
242145
|
+
defaultRewrites: [
|
242146
|
+
{
|
242147
|
+
source: '/(.*)',
|
242148
|
+
regex: '/(.*)',
|
242149
|
+
destination: '/api',
|
242150
|
+
},
|
242151
|
+
],
|
242152
|
+
defaultHeaders: [
|
242153
|
+
{
|
242154
|
+
source: '^/build/(.*)$',
|
242155
|
+
regex: '^/build/(.*)$',
|
242156
|
+
headers: [
|
242157
|
+
{ key: 'cache-control', value: 'public, max-age=31536000, immutable' },
|
242158
|
+
],
|
242159
|
+
},
|
242160
|
+
]
|
242161
|
+
},
|
241959
242162
|
{
|
241960
242163
|
name: 'Hexo',
|
241961
242164
|
slug: 'hexo',
|
@@ -241964,7 +242167,6 @@ exports.frameworks = [
|
|
241964
242167
|
tagline: 'Hexo is a fast, simple & powerful blog framework powered by Node.js.',
|
241965
242168
|
description: 'A Hexo site, created with the Hexo CLI.',
|
241966
242169
|
website: 'https://hexo.io',
|
241967
|
-
sort: 3,
|
241968
242170
|
detectors: {
|
241969
242171
|
every: [
|
241970
242172
|
{
|
@@ -242001,7 +242203,6 @@ exports.frameworks = [
|
|
242001
242203
|
tagline: '11ty is a simpler static site generator written in JavaScript, created to be an alternative to Jekyll.',
|
242002
242204
|
description: 'An Eleventy site, created with npm init.',
|
242003
242205
|
website: 'https://www.11ty.dev',
|
242004
|
-
sort: 4,
|
242005
242206
|
detectors: {
|
242006
242207
|
every: [
|
242007
242208
|
{
|
@@ -242713,6 +242914,7 @@ exports.frameworks = [
|
|
242713
242914
|
tagline: 'Svelte lets you write high performance reactive apps with significantly less boilerplate.',
|
242714
242915
|
description: 'A basic Svelte app using the default template.',
|
242715
242916
|
website: 'https://svelte.dev',
|
242917
|
+
sort: 3,
|
242716
242918
|
detectors: {
|
242717
242919
|
every: [
|
242718
242920
|
{
|
@@ -242902,6 +243104,7 @@ exports.frameworks = [
|
|
242902
243104
|
tagline: 'Create React App allows you to get going with React in no time.',
|
242903
243105
|
description: 'A React app, bootstrapped with create-react-app, and a Serverless Function API.',
|
242904
243106
|
website: 'https://create-react-app.dev',
|
243107
|
+
sort: 4,
|
242905
243108
|
envPrefix: 'REACT_APP_',
|
242906
243109
|
detectors: {
|
242907
243110
|
some: [
|
@@ -243283,6 +243486,7 @@ exports.frameworks = [
|
|
243283
243486
|
tagline: 'Nuxt.js is the web comprehensive framework that lets you dream big with Vue.js.',
|
243284
243487
|
description: 'A Nuxt.js app, bootstrapped with create-nuxt-app.',
|
243285
243488
|
website: 'https://nuxtjs.org',
|
243489
|
+
sort: 2,
|
243286
243490
|
envPrefix: 'NUXT_ENV_',
|
243287
243491
|
detectors: {
|
243288
243492
|
every: [
|
@@ -243376,7 +243580,6 @@ exports.frameworks = [
|
|
243376
243580
|
tagline: 'Hugo is the world’s fastest framework for building websites, written in Go.',
|
243377
243581
|
description: 'A Hugo site, created with the Hugo CLI.',
|
243378
243582
|
website: 'https://gohugo.io',
|
243379
|
-
sort: 5,
|
243380
243583
|
detectors: {
|
243381
243584
|
some: [
|
243382
243585
|
{
|
@@ -249730,10 +249933,12 @@ async function main(client) {
|
|
249730
249933
|
cwd,
|
249731
249934
|
});
|
249732
249935
|
}
|
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'));
|
249733
249938
|
if (!fs_extra_1.default.existsSync(path_1.join(cwd, OUTPUT_DIR))) {
|
249734
249939
|
let outputDir = path_1.join(OUTPUT_DIR, 'static');
|
249735
249940
|
let distDir = await framework.getFsOutputDir(cwd);
|
249736
|
-
if (
|
249941
|
+
if (isNextJs) {
|
249737
249942
|
outputDir = OUTPUT_DIR;
|
249738
249943
|
}
|
249739
249944
|
const copyStamp = stamp_1.default();
|
@@ -249791,7 +249996,7 @@ async function main(client) {
|
|
249791
249996
|
await fs_extra_1.default.writeJSON(path_1.join(cwd, OUTPUT_DIR, 'routes-manifest.json'), routesManifest, { spaces: 2 });
|
249792
249997
|
}
|
249793
249998
|
// Special Next.js processing.
|
249794
|
-
if (
|
249999
|
+
if (isNextJs) {
|
249795
250000
|
// The contents of `.output/static` should be placed inside of `.output/static/_next/static`
|
249796
250001
|
const tempStatic = '___static';
|
249797
250002
|
await fs_extra_1.default.rename(path_1.join(cwd, OUTPUT_DIR, 'static'), path_1.join(cwd, OUTPUT_DIR, tempStatic));
|
@@ -249925,6 +250130,15 @@ async function main(client) {
|
|
249925
250130
|
// Build Plugins
|
249926
250131
|
if ((plugins === null || plugins === void 0 ? void 0 : plugins.buildPlugins) && plugins.buildPlugins.length > 0) {
|
249927
250132
|
console.log(`Running ${plugins.pluginCount} CLI ${pluralize_1.default('Plugin', plugins.pluginCount)} after Build Command:`);
|
250133
|
+
let vercelConfig = {};
|
250134
|
+
try {
|
250135
|
+
vercelConfig = await fs_extra_1.default.readJSON(path_1.join(cwd, 'vercel.json'));
|
250136
|
+
}
|
250137
|
+
catch (error) {
|
250138
|
+
if (error.code !== 'ENOENT') {
|
250139
|
+
throw new Error(`Failed to read vercel.json: ${error.message}`);
|
250140
|
+
}
|
250141
|
+
}
|
249928
250142
|
for (let item of plugins.buildPlugins) {
|
249929
250143
|
const { name, plugin, color } = item;
|
249930
250144
|
if (typeof plugin.build === 'function') {
|
@@ -249936,6 +250150,7 @@ async function main(client) {
|
|
249936
250150
|
console.log = (...args) => prefixedLog(prefix, args, origLog);
|
249937
250151
|
console.error = (...args) => prefixedLog(prefix, args, origErr);
|
249938
250152
|
await plugin.build({
|
250153
|
+
vercelConfig,
|
249939
250154
|
workPath: cwd,
|
249940
250155
|
});
|
249941
250156
|
client.output.debug(`Completed ${fullName} ${chalk_1.default.dim(`${pluginStamp()}`)}`);
|
@@ -270244,7 +270459,7 @@ module.exports = JSON.parse("[\"ac\",\"com.ac\",\"edu.ac\",\"gov.ac\",\"net.ac\"
|
|
270244
270459
|
/***/ ((module) => {
|
270245
270460
|
|
270246
270461
|
"use strict";
|
270247
|
-
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"23.1.3-canary.
|
270462
|
+
module.exports = JSON.parse("{\"name\":\"vercel\",\"version\":\"23.1.3-canary.41\",\"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.23\",\"@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.14\"},\"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\":\"7bd338618c80681a09cd8d4c482f1038f8676f7f\"}");
|
270248
270463
|
|
270249
270464
|
/***/ }),
|
270250
270465
|
|
@@ -270260,7 +270475,7 @@ module.exports = JSON.parse("{\"VISA\":\"Visa\",\"MASTERCARD\":\"MasterCard\",\"
|
|
270260
270475
|
/***/ ((module) => {
|
270261
270476
|
|
270262
270477
|
"use strict";
|
270263
|
-
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"10.2.3-canary.
|
270478
|
+
module.exports = JSON.parse("{\"name\":\"@vercel/client\",\"version\":\"10.2.3-canary.24\",\"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.23\",\"@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\":\"7bd338618c80681a09cd8d4c482f1038f8676f7f\"}");
|
270264
270479
|
|
270265
270480
|
/***/ }),
|
270266
270481
|
|