docs: latest fixes (#7951)
This commit is contained in:
1 parent
964927b597
commit
525363630e
2 files changed
+3
-13
No files matched your search
@@ -52,7 +52,7 @@ For example, create the file `src/modules/hello/index.ts` with the following con
|
||||
import HelloModuleService from "./service"
|
||||
import { Module } from "@medusajs/utils"
|
||||
|
||||
export default Module("hello", {
|
||||
export default Module("helloModuleService", {
|
||||
service: HelloModuleService,
|
||||
})
|
||||
```
|
||||
@@ -79,7 +79,7 @@ module.exports = defineConfig({
|
||||
})
|
||||
```
|
||||
|
||||
Its key (`helloModuleService`) is the name of the module’s main service. It will be registered in the Medusa container with that name.
|
||||
Its key (`helloModuleService`) is the name of the module’s main service. It will be registered in the Medusa container with that name. It should also be the same name passed as the first parameter to the `Module` function in the module's definition.
|
||||
|
||||
Its value is an object having the `resolve` property, whose value is either a path to module's directory relative to `src`(it shouldn't include `src` in the path), or an `npm` package’s name.
|
||||
|
||||
|
||||
Reference in new issue
Block a user