chore(docs): Generated References (automated) (#7961)

Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2024-07-05 09:55:39 +02:00
committed by GitHub
parent 8c30f0a54d
commit ca9ba9e688
128 changed files with 1221 additions and 133 deletions

View File

@@ -173,10 +173,11 @@ Create the file `src/modules/my-file/index.ts` with the following content:
```ts title="src/modules/my-file/index.ts"
import MyFileProviderService from "./service"
import { Module } from "@medusajs/utils"
export default {
export default Module("my-file", {
service: MyFileProviderService,
}
})
```
This exports the module's definition, indicating that the `MyFileProviderService` is the main service of the module.
@@ -207,12 +208,9 @@ module.exports = defineConfig({
providers: [
{
resolve: "./modules/my-file",
id: "my-file",
options: {
config: {
"my-file": {
// provider options...
},
},
// provider options...
},
},
],