docs: change config snippets to use defineConfig (#7546)

This commit is contained in:
Shahed Nasser authored and GitHub committed 2024-05-30 16:47:28 +03:00
1 parent ddfd757277
commit fe96bd39b1
51 files changed
+489 -718

No files matched your search

@@ -23,15 +23,18 @@ To pass options to a module, add an `options` property to the module’s configu
For example:
```js title="medusa-config.js"
const modules = {
helloModuleService: {
resolve: "./dist/modules/hello",
options: {
capitalize: true,
},
},
module.exports = defineConfig({
// ...
}
modules: {
helloModuleService: {
resolve: "./modules/hello",
options: {
capitalize: true,
},
}
}
})
```
The `options` property’s value is an object. You can pass any properties you want.