docs: revise medusa container chapter (#10192)
This commit is contained in:
@@ -1,19 +1,25 @@
|
||||
import { Table } from "docs-ui"
|
||||
|
||||
export const metadata = {
|
||||
title: `Medusa and Module Container Dependencies`,
|
||||
title: `Medusa and Module Container Resources`,
|
||||
}
|
||||
|
||||
# {metadata.title}
|
||||
|
||||
This documentation page includes the list of dependencies registered in the container of the Medusa application and a module.
|
||||
This documentation page includes the list of resources registered in the container of the Medusa application and modules.
|
||||
|
||||
## Medusa Container Dependencies
|
||||
## Medusa Container Resources
|
||||
|
||||
The following list of dependencies are resources that can be resolved by all resources (such as API route or workflow) except of a module's.
|
||||
The following table has a list of all resources that you can resolve in your customizations outside a module (such as API routes or workflows).
|
||||
|
||||
<Note>
|
||||
|
||||
Learn more about the Medusa Container in [this documentation](!docs!/learn/basics/medusa-container).
|
||||
|
||||
</Note>
|
||||
|
||||
<Note title="Tip">
|
||||
|
||||
Use the `ContainerRegistrationKeys` enum imported from `@medusajs/framework/utils` where specified.
|
||||
|
||||
</Note>
|
||||
@@ -135,9 +141,15 @@ Use the `ContainerRegistrationKeys` enum imported from `@medusajs/framework/util
|
||||
|
||||
---
|
||||
|
||||
## Module Container Dependencies
|
||||
## Module Container Resources
|
||||
|
||||
The following resources are resources that can be resolved by a module's services and loaders.
|
||||
The following table has a list of all resources that you can resolve in a module's services or loaders.
|
||||
|
||||
<Note>
|
||||
|
||||
Learn more about the Module Container in [this documentation](!docs!/learn/advanced-development/modules/container).
|
||||
|
||||
</Note>
|
||||
|
||||
<Note>
|
||||
|
||||
|
||||
@@ -121,7 +121,7 @@ export const generatedEditDates = {
|
||||
"app/deployment/page.mdx": "2024-07-25T09:55:22+03:00",
|
||||
"app/integrations/page.mdx": "2024-11-19T10:09:54.075Z",
|
||||
"app/medusa-cli/page.mdx": "2024-08-28T11:25:32.382Z",
|
||||
"app/medusa-container-resources/page.mdx": "2024-09-30T08:43:53.173Z",
|
||||
"app/medusa-container-resources/page.mdx": "2024-11-21T08:59:01.120Z",
|
||||
"app/medusa-workflows-reference/page.mdx": "2024-09-30T08:43:53.174Z",
|
||||
"app/nextjs-starter/page.mdx": "2024-07-01T10:21:19+03:00",
|
||||
"app/recipes/b2b/page.mdx": "2024-10-03T13:07:44.153Z",
|
||||
|
||||
Reference in New Issue
Block a user