Skip to Content
1
5 days ago

CDS Profiles not set correctly

199 Views

Hello experts,

I am trying to set a specific profile for my CAP project.

If I follow this description (https://cap.cloud.sap/docs/node.js/cds-env#profiles), I would expect to be able to set a profile using the NODE_ENV environment variable as long as I don't use any flags.

For example, if I set NODE_ENV = 'test', I would expect the profile to be set to 'test' only.

However, if I execute the following


$env:NODE_ENV='test'
cds env

The following profiles are set:

cds%20env

Why is the profile 'development' still active?

How can I remove this profile?

Note: When I set NODE_ENV = 'production', the development profile disappears from the profiles variable:

cds%20env%20production

Thanks for your help