From d060d14fc9ba46b22d0fd0258fb11765a08cea9c Mon Sep 17 00:00:00 2001 From: Steffen Waldmann Date: Tue, 10 Sep 2024 10:51:37 +0200 Subject: [PATCH 1/2] Increase graphic size in Getting Started --- about/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/about/index.md b/about/index.md index a82939053..f50ca9710 100644 --- a/about/index.md +++ b/about/index.md @@ -310,7 +310,7 @@ All behavioral aspects in CAP are based on ubiquitous notions of [Services](#ser Services in CAP are **stateless** and with a **minimal footprint**, which allows you to modularize solutions into single-purposed (nano) services or functions-as-a-service.
- +
Hexagonal Architecture à la CAP
From a0ccfa92e114afed79dffe565ed9a6cb5c4fcbe2 Mon Sep 17 00:00:00 2001 From: mika-espoo <164320398+mika-espoo@users.noreply.github.com> Date: Tue, 10 Sep 2024 15:22:15 +0300 Subject: [PATCH 2/2] Fix config expression in `cds-server.md` (#1233) Instructions are missing `env` property from the chain and thus have no effect. This patch fixes the documentation from this part. --- node.js/cds-server.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/node.js/cds-server.md b/node.js/cds-server.md index 56176902d..12185bbf6 100644 --- a/node.js/cds-server.md +++ b/node.js/cds-server.md @@ -237,7 +237,7 @@ The behavior of the built-in `server.js` can be customized through the options d ### CORS Middleware -The built-in CORS middleware can be enabled explicitly with `cds.server.cors = true`. By default, this is `false` if in production. +The built-in CORS middleware can be enabled explicitly with `cds.env.server.cors = true`. By default, this is `false` if in production. [Learn more about best practices regarding **Cross-Origin Resource Sharing (CORS)**.](../node.js/best-practices.md#cross-origin-resource-sharing-cors) {.learn-more} @@ -245,7 +245,7 @@ The built-in CORS middleware can be enabled explicitly with `cds.server.cors = t ### Toggle Generic Index Page -The default generic _index.html_ page is not served if `NODE_ENV` is set to `production`. Set `cds.server.index = true` to restore the generic index page in production. +The default generic _index.html_ page is not served if `NODE_ENV` is set to `production`. Set `cds.env.server.index = true` to restore the generic index page in production. [See the **Generic *index.html*** page in action.](../get-started/in-a-nutshell.md#generic-index-html) {.learn-more} @@ -281,4 +281,4 @@ This is useful when the expected request body sizes might vary for services with ## See Also... -The [`cds-plugin` package technique](cds-plugins) provides more options to customize server startup. \ No newline at end of file +The [`cds-plugin` package technique](cds-plugins) provides more options to customize server startup.