Skip to content
Open
Show file tree
Hide file tree
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
10 changes: 7 additions & 3 deletions docs/source/configuration/how-to.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,15 @@ a pipe would be:

Both use the same method, using a function as the default export. This function takes a
`config` and should return the `config` once you've ended your modifications. For
add-ons, it must be provided in the main `index.js` module of the add-on. For project's
it must be provided in the `src/config.js` module of the project.
add-ons, it must be provided in the main {file}`index.js` module of the add-on.

See the {doc}`../conceptual-guides/add-ons` and {doc}`../development/add-ons/index` sections for extended information on how to work with add-ons.
```{versiondeprecated} Volto 18

As of Volto 18, the project configuration approach using {file}`src/config.js` is deprecated and will be removed in Volto 19.
New projects created with Cookieplone now use a {file}`config/` folder approach.
```

See the {doc}`../conceptual-guides/add-ons` and {doc}`../development/add-ons/index` sections for extended information on how to work with add-ons.

## Extending configuration in a project

Expand Down
1 change: 1 addition & 0 deletions packages/volto/news/7756.documentation
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Update configuration documentation to reflect that {file}`src/config.js` is deprecated in Volto 18+ in favor of the {file}`config/` folder structure. @gummybearansh