-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgatsby-node.js
31 lines (31 loc) · 1.15 KB
/
gatsby-node.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
exports.pluginOptionsSchema = ({Joi}) => {
return Joi.object({
delimiter: Joi.string()
.default('$card')
.description('Title of the link to create a card'),
timeout: Joi.number()
.default(30000)
.description('Default timeout(ms) for puppeteer'),
enableLinkPreview: Joi.boolean()
.default(true)
.description('Whether to generate the preview images or not'),
screenshotQuality: Joi.number()
.default(80)
.description('The quality of the screenshot images in %'),
showFavicon: Joi.boolean()
.default(true)
.description('Whether to show the favicon or not'),
browserNumer: Joi.number()
.default(3)
.description('Number of browsers launched'),
puppeteerLaunchArgs: Joi.array()
.items(Joi.string())
.default([])
.description('Arguments for puppeteer launch'),
error: Joi.object({
title: Joi.string(),
})
.default({title: 'Not Found Site'})
.description('Default config when error'),
});
};