@@ -7,15 +7,20 @@ If you are starting to use scully we highly recommend read the [Getting Started]
7
7
also if you want to enhance you project made with scully, visit the [ Utils] ( utils.md ) section and see
8
8
or teach to the community how to combine scully with others tools.
9
9
10
- - [ ` ScullyConfig ` Interface] ( #scullyconfig-interface )
11
- - [ projectRoot] ( #projectRoot )
12
- - [ homeFolder] ( #homeFolder )
13
- - [ outDir] ( #outDir )
14
- - [ distFolder] ( #distFolder )
15
- - [ routes] ( #routes )
16
- - [ extraRoutes] ( #extraRoutes )
17
- - [ appPort] ( #appPort )
18
- - [ staticport] ( #staticport )
10
+ - [ Scully Configuration] ( #scully-configuration )
11
+ - [ ` ScullyConfig ` Interface] ( #scullyconfig-interface )
12
+ - [ scullyConfig properties explained] ( #scullyconfig-properties-explained )
13
+ - [ projectRoot] ( #projectroot )
14
+ - [ homeFolder] ( #homefolder )
15
+ - [ outDir] ( #outdir )
16
+ - [ distFolder] ( #distfolder )
17
+ - [ routes] ( #routes )
18
+ - [ handled Routes] ( #handled-routes )
19
+ - [ unhandled Routes] ( #unhandled-routes )
20
+ - [ extraRoutes] ( #extraroutes )
21
+ - [ appPort] ( #appport )
22
+ - [ staticport] ( #staticport )
23
+ - [ puppeteerLaunchOptions] ( #puppeteerlaunchoptions )
19
24
20
25
## ` ScullyConfig ` Interface
21
26
@@ -29,11 +34,14 @@ export interface ScullyConfig {
29
34
extraRoutes? : string [];
30
35
appPort: number ;
31
36
staticport: number ;
37
+ puppeteerLaunchOptions? : LaunchOptions ;
32
38
}
33
39
```
34
40
35
41
` ScullyConfig ` interface provide the parameters to configure how scully works in your project.
36
42
43
+ ## scullyConfig properties explained
44
+
37
45
### projectRoot
38
46
39
47
` projectRoot ` is reference to the path to the project where scully will intervene.
@@ -87,7 +95,7 @@ I you want to know more about plugins go to [Plugins](plugins.md) section.
87
95
88
96
### extraRoutes
89
97
90
- The ` extraRoutes ` property allow to the developer add an array of handled routes to discover by Scully.
98
+ The ` extraRoutes ` property allow to the developer add an array of unhandled routes to discover by Scully.
91
99
These can be routes that exist in AngularJS, or in React, or in whatever Framework's router.
92
100
93
101
It can be handle ` :string ` , ` Promise<string> ` or ` Promise<Array<string>> `
@@ -110,4 +118,11 @@ which will serve static files compiled by Scully.
110
118
111
119
The port by default is: ` 1668 `
112
120
121
+ ### puppeteerLaunchOptions
122
+
123
+ When in a restricted environment there is a change the default options for puppeteer won't work. In such a case
124
+ this option can override the puppeteerLaunchOptions with settings that match this environment.
125
+ Word of warning, some settings might interfer with the way Scully is working, creating errornous results.
126
+ Follow [ this link] ( https://pptr.dev/#?product=Puppeteer&version=v2.0.0&show=api-puppeteerlaunchoptions ) for more information
127
+
113
128
[ Full Documentation ➡️] ( scully.md )
0 commit comments