@@ -7,15 +7,20 @@ If you are starting to use scully we highly recommend read the [Getting Started]
77also if you want to enhance you project made with scully, visit the [ Utils] ( utils.md ) section and see
88or teach to the community how to combine scully with others tools.
99
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 )
1924
2025## ` ScullyConfig ` Interface
2126
@@ -29,11 +34,14 @@ export interface ScullyConfig {
2934 extraRoutes? : string [];
3035 appPort: number ;
3136 staticport: number ;
37+ puppeteerLaunchOptions? : LaunchOptions ;
3238}
3339```
3440
3541` ScullyConfig ` interface provide the parameters to configure how scully works in your project.
3642
43+ ## scullyConfig properties explained
44+
3745### projectRoot
3846
3947` 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.
8795
8896### extraRoutes
8997
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.
9199These can be routes that exist in AngularJS, or in React, or in whatever Framework's router.
92100
93101It can be handle ` :string ` , ` Promise<string> ` or ` Promise<Array<string>> `
@@ -110,4 +118,11 @@ which will serve static files compiled by Scully.
110118
111119The port by default is: ` 1668 `
112120
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+
113128[ Full Documentation ➡️] ( scully.md )
0 commit comments