sap-tutorials / Tutorials

Tutorials on sap.com
https://developers.sap.com/tutorial-navigator.html
Creative Commons Attribution 4.0 International
694 stars 767 forks source link

Add SAP HANA Support to Your Project #23208

Open je-hal opened 9 months ago

je-hal commented 9 months ago

Tutorials: https://developers.sap.com/tutorials/btp-app-hana-app-setup.html

The tutorial says to run the following command:

cds add hana --for production

Then two lines below the tutorial says: image

That's a different command (omitting --for production). Why am I that persnickety? Because I checked file package.json and the result does not match exactly what is shown in the tutorial. This is what I get for cds:

  "cds": {
    "requires": {
      "[production]": {
        "db": "hana"
      }
    }
  }

So do I need to use another command or is the tutorial outdated and the inserted lines in package.json should be different?

smahati commented 9 months ago

Hi @je-hal,

Thanks for the issue. I'll take a look if we have some out of date stuff there. What you have looks right.

Best regards, Maha