Skip to content

Commit

Permalink
Merge branch 'event-broker-cap' of https://github.com/cap-js/docs int…
Browse files Browse the repository at this point in the history
…o event-broker-cap
  • Loading branch information
David-Kunz committed Sep 12, 2024
2 parents 4978cf7 + 5980ac4 commit ed919e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion about/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<figure>
<img src="../assets/agnostic-services.drawio.svg" width="333px">
<img src="../assets/agnostic-services.drawio.svg" width="400px">
<figcaption style="text-align: center"><a href="#hexagonal-architecture">Hexagonal Architecture à la CAP</a></figcaption>
</figure>

Expand Down
6 changes: 3 additions & 3 deletions node.js/cds-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,15 +237,15 @@ 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}



### 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}

Expand Down Expand Up @@ -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.
The [`cds-plugin` package technique](cds-plugins) provides more options to customize server startup.

0 comments on commit ed919e2

Please sign in to comment.