From ec9405daf4afcdc001b6c4af0c89ca95ae52e3ee Mon Sep 17 00:00:00 2001 From: Steffen Waldmann Date: Tue, 4 Aug 2026 11:30:26 +0200 Subject: [PATCH 1/2] draft: allow microservices with `npm-ci` --- guides/deploy/microservices.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/guides/deploy/microservices.md b/guides/deploy/microservices.md index 301a1a0eca..a54433565b 100644 --- a/guides/deploy/microservices.md +++ b/guides/deploy/microservices.md @@ -284,7 +284,7 @@ npm i @cap-js/hana --workspace reviews ### Applications -Replace the MTA module for `samples-srv` with versions for each CAP service and adjust `name`, `path`, and `provides[0].name` to match the module name. Also change the `npm-ci` builder to the `npm` builder. +Replace the MTA module for `samples-srv` with versions for each CAP service and adjust `name`, `path`, and `provides[0].name` to match the module name. ::: code-group ```yaml [mta.yaml] @@ -296,7 +296,7 @@ modules: instances: 1 buildpack: nodejs_buildpack build-parameters: - builder: npm # [!code focus] + builder: npm-ci # [!code focus] provides: # [!code focus] - name: bookstore-api # [!code focus] properties: @@ -314,7 +314,7 @@ modules: instances: 1 buildpack: nodejs_buildpack build-parameters: - builder: npm # [!code focus] + builder: npm-ci # [!code focus] provides: # [!code focus] - name: orders-api # [!code focus] properties: @@ -332,7 +332,7 @@ modules: instances: 1 buildpack: nodejs_buildpack build-parameters: - builder: npm # [!code focus] + builder: npm-ci # [!code focus] provides: # [!code focus] - name: reviews-api # [!code focus] properties: From db89fec1445092ab66fd21bda301a1ac72a52889 Mon Sep 17 00:00:00 2001 From: Steffen Waldmann Date: Fri, 14 Aug 2026 20:16:42 +0200 Subject: [PATCH 2/2] Update microservices.md --- guides/deploy/microservices.md | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/guides/deploy/microservices.md b/guides/deploy/microservices.md index a54433565b..7991dba428 100644 --- a/guides/deploy/microservices.md +++ b/guides/deploy/microservices.md @@ -296,7 +296,7 @@ modules: instances: 1 buildpack: nodejs_buildpack build-parameters: - builder: npm-ci # [!code focus] + builder: npm-ci provides: # [!code focus] - name: bookstore-api # [!code focus] properties: @@ -314,7 +314,7 @@ modules: instances: 1 buildpack: nodejs_buildpack build-parameters: - builder: npm-ci # [!code focus] + builder: npm-ci provides: # [!code focus] - name: orders-api # [!code focus] properties: @@ -332,7 +332,7 @@ modules: instances: 1 buildpack: nodejs_buildpack build-parameters: - builder: npm-ci # [!code focus] + builder: npm-ci provides: # [!code focus] - name: reviews-api # [!code focus] properties: @@ -356,23 +356,18 @@ build-parameters: commands: - npm ci - npx cds build ./shared-db --for hana --production - - npx cds build ./orders --for nodejs --production --ws-pack # [!code ++] + - npx cds build ./orders --for nodejs --production # [!code ++] - npx cds build ./reviews --for nodejs --production # [!code ++] - - npx cds build ./bookstore --for nodejs --production --ws-pack # [!code ++] + - npx cds build ./bookstore --for nodejs --production # [!code ++] ``` ::: -::: info --ws-pack -Note that we use the *--ws-pack* option for some modules. It's important for node modules referencing other repository-local node modules. -::: - - ### Authentication Add [security configuration](../security/authentication) using the command: -```shell -cds add xsuaa --for production +```sh +cds add xsuaa ``` Add the admin role