geert-janklaps / cds-launchpad-plugin

Launchpad Plugin for demo / development / testing SAP CAP-based projects
MIT License
12 stars 13 forks source link

appConfigPath in Setup is not implemented #12

Closed hh4711 closed 7 months ago

hh4711 commented 7 months ago

Hi, I have the requirement to start the Launchpad tiles in different subdirectories.

But the appConfigPath with my own config doesn_t work.

I used this code: app.use(handler.setup({theme:'sap_horizon', version: '1.99.0', appConfigPath: '/fiori/appconfig/fioriSandboxConfig'}));

Is it possible to implement. If not, could you please adjust

in index.js line 149 // App URL const url = /${element.replace(cds.env.folders.app, '')}/webapp;

my element 'main-app/app/backend' is replaced to /main-app/backend, but this is wrong. It should be: /main-app/app/backend

Thank you in advance.

nlaenger commented 7 months ago

Hi @hh4711 ,

are you using this cds config to address your different folder for your UI5 apps?

  "cds": {
    "folders": {
      "app": "./../app/"
    }
  }

cause we also have an issue after the latest patch. Maybe my solution will fix your issue. Can you check the changes in your project?

regards Norbert

geert-janklaps commented 7 months ago

This fix is now available in version 2.0.1, thanks for your contribution @nlaenger!