Hello CAP Community,
right now the SAP Fiori Preview does always use the Fiori Launchpad (FLP) Sandbox. In my bookshop-demo project I've added the Service minimal-service.cds that can be shown as a standalone UI5 app via the URL:
http://localhost:4004/webapp/minimal-static/index.html
For usecases with dynamically added services and entities it would be great to have a dynamic way to display the Entity as a standalone UI5 app. The code that would need to be adjusted is in @sap/cds/app/fiori/preview.js. Beside the function _html a new one based on my index.html example would be needed that would be used when instead of:
http://localhost:4004/$fiori-preview/minimal.MinimalService/Books#preview-app
the URL:
http://localhost:4004/$standalone-preview/minimal.MinimalService/Books#preview-app
is used.
What do you think?
Best Regards
Gregor