Skip to content

Commit

Permalink
feat: add cds.env.profiles (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
stockbal authored Oct 2, 2024
1 parent e4a25c0 commit 5088c75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions apis/env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const env: {
folders: string[],
[key: string]: any,
},
profiles: string[],
requires: env.Requires,
folders: {
app: string,
Expand Down
3 changes: 3 additions & 0 deletions test/typescript/apis/project/cds-env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ env.requires['cds.xt.ExtensibilityService'] = { model: '@sap/cds-mtxs/srv/extens
env.requires['cds.xt.ModelProviderService'] = { model: '@sap/cds-mtxs/srv/model-provider', _in_sidecar: true, root: '../..' }
env.requires['cds.xt.DeploymentService'] = { model: '@sap/cds-mtxs/srv/deployment-service' }

env.profiles.includes("development")
env.profiles.length > 2

env.requires.multitenancy = { kind: 'shared', jobs: { clusterSize:1, workerSize:1, t0:'', foo:'' }}
env.requires.messaging = { kind: '', format: '', foo: '' }

Expand Down

0 comments on commit 5088c75

Please sign in to comment.