From 72927f13f8edc9ead79585985c33a3dcdb40705b Mon Sep 17 00:00:00 2001 From: I548646 Date: Mon, 29 Dec 2025 15:53:28 +0100 Subject: [PATCH 1/2] fix: add learn-more reference to cds.env docs in destination config section --- guides/services/using-services.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/guides/services/using-services.md b/guides/services/using-services.md index 8e8e03897..293ddff64 100644 --- a/guides/services/using-services.md +++ b/guides/services/using-services.md @@ -1065,11 +1065,9 @@ This is an example of a destination using basic authentication: } ``` -[Supported destination properties.](#destination-properties){.learn-more} +[Learn more about providing project configuration values.](./../../node.js/cds-env#project-specific-configurations){.learn-more} [See all the supported destination properties.](#destination-properties){.learn-more} -::: warning -You shouldn't put any sensitive information here. -::: +::: warning Warning: You should not put any sensitive information here! Instead, set the properties in the bootstrap code of your CAP application: @@ -1082,6 +1080,7 @@ if (cds.env.requires?.credentials?.authentication === "BasicAuthentication") { cds.env.requires.credentials.password = credentials.password; } ``` +::: You might also want to set some values in the application deployment. This can be done using env variables. For this example, the env variable for the URL would be `cds_requires_REVIEWS_credentials_destination_url`. From 3af4f1a2ce94c0601fe3c8df2eb4f4b8ac4eebdc Mon Sep 17 00:00:00 2001 From: Rene Jeglinsky Date: Wed, 7 Jan 2026 15:13:38 +0100 Subject: [PATCH 2/2] apply suggestion --- guides/services/consuming-services.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/guides/services/consuming-services.md b/guides/services/consuming-services.md index cf464e545..5d1da4c7e 100644 --- a/guides/services/consuming-services.md +++ b/guides/services/consuming-services.md @@ -1064,7 +1064,9 @@ This is an example of a destination using basic authentication: } ``` -[Learn more about providing project configuration values.](./../../node.js/cds-env#project-specific-configurations){.learn-more} [See all the supported destination properties.](#destination-properties){.learn-more} +[Learn more about providing project configuration values.](./../../node.js/cds-env#project-specific-configurations){.learn-more} + +[See all the supported destination properties.](#destination-properties){.learn-more} ::: warning Warning: You should not put any sensitive information here!