Portal: New plugin definition for Portal Apps with type portal-app2 added to be able to integrate new features such as SSR and config editor.
Changes are compared to portal-app are:
- Moved title, tags and category to defaultConfig, so it can be overwritten per server instance
- bootstrap has been renamed to clientBootstrap
- The resourcesRoot can now be defined for local deployment and remote access separately
- restProxies has been renamed to proxies because the proxy supports all kinds of HTTP and WebSocket connections
- Caching config added
- Custom editor config added
Existing portal-app definitions are still valid, but if you want to upgrade, change the following:
{
"name": "My Single Page App",
"title": "My Single Page App",
"category": "Demo",
"tags": ["what", "ever"],
"type": "portal-app",
"bootstrap": "startMyApp",
"defaultConfig": {
"resourcesRoot": "./dist",
"restProxies": {
"spaceXApi": {
"targetUri": "https://api.spacexdata.com/v3",
"sendPermissionsHeader": false,
"restrictToRoles": ["Role1"]
}
}
}
}
to:
{
"name": "My Single Page App",
"type": "portal-app2",
"clientBootstrap": "startMyApp",
"local": {
"resourcesRoot": "./dist",
"ssrBootstrap": "optional-ssr-bootstrap-file"
},
"remote": {
"resourcesRoot": "/if-remote-access-supported",
"ssrInitialHtmlPath": "optional-ssr-route"
},
"defaultConfig": {
"title": "My Single Page App",
"category": "Demo",
"tags": ["what", "ever"],
"caching": {
"ssrHtml": "same-config-and-user"
},
"editor": {
"editorPortalApp": "My Optional App Config Editor",
"position": "in-place",
"appConfig": {
}
},
"proxies": {
"spaceXApi": {
"targetUri": "https://api.spacexdata.com/v3",
"sendPermissionsHeader": false,
"restrictToRoles": ["Role1"]
}
}
}
}