Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tools/apis/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This guide is about programmatic CDS design-time APIs.
The design-time APIs are provided with package `@sap/cds-dk` which needs to be installed locally in your project:

```sh
npm add @sap/cds-dk
npm add @sap/cds-dk --save-dev
```

That given, you can use the APIs in your project like this:
Expand All @@ -21,6 +21,10 @@ const cds = require('@sap/cds-dk')
cds.import(...)
```

> [!important] Don't load cds-dk code at runtime
> Note that `@sap/cds-dk` is a design-time dependency that runs locally or in continuous integration (CI) pipelines.
> Avoid loading the previously shown code at application runtime in deployed applications.

<script setup>
import { data as pages } from './index.data.ts'
</script>
Expand Down
Loading