docs: remove imports from src in medusa-config.js (#8132)

Importing from `src` in `medusa-config.js` works in development, but would cause an error when running `build`/in production.

This removes from the docs all snippets that imports from the `src` directory. However, we should figure out a better way to handle re-using the module's name.
This commit is contained in:
Shahed Nasser authored and GitHub committed 2024-07-15 16:00:54 +00:00
1 parent a74c900ab1
commit b38c0488be
3 files changed
+3 -10

No files matched your search

@@ -74,7 +74,7 @@ In `medusa-config.js`, add a `modules` property and pass to it your custom modul
module.exports = defineConfig({
// ...
modules: {
"helloModuleService": {
helloModuleService: {
resolve: "./modules/hello",
},
},