Skip to content

Commit 78c0d2b

Browse files
PDT42renejeglinsky
andauthored
Added learn-more link to destination configuration guide (#2303)
After receiving feedback on the docs in a SNOW issue, this change adds a reference to `node.js/cds-env` to the section on using application defined destinations. The matter is internally tracked in cds node item 2575. --------- Co-authored-by: Rene Jeglinsky <rene.jeglinsky@sap.com>
1 parent f977df3 commit 78c0d2b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

guides/services/consuming-services.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,11 +1064,11 @@ This is an example of a destination using basic authentication:
10641064
}
10651065
```
10661066

1067-
[Supported destination properties.](#destination-properties){.learn-more}
1067+
[Learn more about providing project configuration values.](./../../node.js/cds-env#project-specific-configurations){.learn-more}
10681068

1069-
::: warning
1070-
You shouldn't put any sensitive information here.
1071-
:::
1069+
[See all the supported destination properties.](#destination-properties){.learn-more}
1070+
1071+
::: warning Warning: You should not put any sensitive information here!
10721072

10731073
Instead, set the properties in the bootstrap code of your CAP application:
10741074

@@ -1081,6 +1081,7 @@ if (cds.env.requires?.credentials?.authentication === "BasicAuthentication") {
10811081
cds.env.requires.credentials.password = credentials.password;
10821082
}
10831083
```
1084+
:::
10841085

10851086
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`.
10861087

0 commit comments

Comments
 (0)