chore(docs): Generated References (automated) (#7961)
Co-authored-by: kodiakhq <kodiakhq@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
8c30f0a54d
commit
ca9ba9e688
@@ -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...
|
||||
},
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user