@ui5/server
Methods
(static) serve(graph, options) → {Promise<object>}
Description: Start a server for the given project (sub-)tree.
Source: server/lib/server.js, line 135
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
graph | @ui5/project/graph/ProjectGraph | Project graph | ||||||||||||||||||||||||||||||||||||||||||||||||||
options | object | Options Properties:
|
Returns:
Promise resolving once the server is listening. It resolves with an object containing the port, h2-flag and a close function, which can be used to stop the server.
Type: Promise<object>
Type Definitions
SAPTargetCSPOptions
Description: SAP target CSP middleware options
Source: server/lib/server.js, line 97
Properties:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
defaultPolicy | string | optional | "sap-target-level-1" | |
defaultPolicyIsReportOnly | string | optional | true | |
defaultPolicy2 | string | optional | "sap-target-level-3" | |
defaultPolicy2IsReportOnly | string | optional | true | |
ignorePaths | Array<string> | optional | ["test-resources/sap/ui/qunit/testrunner.html"] |
SAP target CSP middleware options
Type:
- object

