streamConfig.mockWeb turns the mock site on for the target whose services are JavaScript, so sasjs build produces sasjsbuild/mock alongside the deploy artefact. mockWeb is independent of streamWeb, so the same target still deploys for real.
44 lines
1.1 KiB
JSON
44 lines
1.1 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/sasjs/utils/main/src/types/sasjsconfig-schema.json",
|
|
"defaultTarget": "server-mihajlo",
|
|
"syncFolder": "sasjs",
|
|
"targets": [
|
|
{
|
|
"name": "server-ci",
|
|
"serverUrl": "http://localhost:5000",
|
|
"serverType": "SASJS",
|
|
"httpsAgentOptions": {
|
|
"allowInsecureRequests": true
|
|
},
|
|
"appLoc": "/Public/app/dc",
|
|
"streamConfig": {
|
|
"streamWeb": true,
|
|
"streamWebFolder": "web9",
|
|
"webSourcePath": "../../client/dist",
|
|
"assetPaths": [],
|
|
"streamServiceName": "clickme",
|
|
"mockWeb": true,
|
|
"mockWebFolder": "sasjsbuild/mock"
|
|
}
|
|
},
|
|
{
|
|
"name": "server-mihajlo",
|
|
"serverUrl": "https://sas.4gl.io:5002",
|
|
"serverType": "SASJS",
|
|
"httpsAgentOptions": {
|
|
"rejectUnauthorized": false,
|
|
"allowInsecureRequests": true
|
|
},
|
|
"appLoc": "/Public/app/dc"
|
|
},
|
|
{
|
|
"name": "dcdemo",
|
|
"serverUrl": "https://sas.4gl.io:5006",
|
|
"serverType": "SASJS",
|
|
"httpsAgentOptions": {
|
|
"allowInsecureRequests": false
|
|
},
|
|
"appLoc": "/Public/app/dc"
|
|
}
|
|
]
|
|
} |