docs: added customer storefront guides (#7685)

* added customer guides

* fixes to sidebar

* remove old customer registration guide

* fix build error

* generate files

* run linter
This commit is contained in:
Shahed Nasser authored and GitHub committed 2024-06-13 12:21:54 +03:00
1 parent d862d03de0
commit c1db40b564
80 files changed
+2301 -701

No files matched your search

@@ -166,6 +166,6 @@ module.exports = defineConfig({
ttl: 30,
},
},
}
},
})
```
@@ -44,7 +44,7 @@ module.exports = defineConfig({
// optional options
},
},
}
},
})
```
@@ -44,7 +44,7 @@ module.exports = defineConfig({
redisUrl: process.env.CACHE_REDIS_URL,
},
},
}
},
})
```
@@ -120,6 +120,6 @@ module.exports = defineConfig({
// any options
},
},
}
},
})
```
@@ -37,7 +37,7 @@ module.exports = defineConfig({
// ...
modules: {
[Modules.EVENT_BUS]: true,
}
},
})
```
@@ -48,7 +48,7 @@ module.exports = defineConfig({
redisUrl: process.env.EVENTS_REDIS_URL,
},
},
}
},
})
```
@@ -50,7 +50,7 @@ module.exports = defineConfig({
options: {
config: {
local: {
channels: ["email"]
channels: ["email"],
},
},
},
@@ -58,7 +58,7 @@ module.exports = defineConfig({
],
},
},
}
},
})
```
@@ -49,7 +49,7 @@ module.exports = {
options: {
config: {
local: {
channels: ["email"]
channels: ["email"],
},
},
},
@@ -30,7 +30,7 @@ import { INotificationModuleService } from "@medusajs/types"
export default async function productCreateHandler({
data,
container
container,
}: SubscriberArgs<{ id: string }>) {
const notificationModuleService: INotificationModuleService =
container.resolve(
@@ -41,7 +41,7 @@ export default async function productCreateHandler({
to: "shahednasser@gmail.com",
channel: "email",
template: "product-created",
data: "data" in data ? data.data : data
data: "data" in data ? data.data : data,
})
}
@@ -54,7 +54,7 @@ module.exports = defineConfig({
sendgrid: {
channels: ["email"],
api_key: process.env.SENDGRID_API_KEY,
from: process.env.SENDGRID_FROM
from: process.env.SENDGRID_FROM,
},
},
},
@@ -62,7 +62,7 @@ module.exports = defineConfig({
],
},
},
}
},
})
```
@@ -156,7 +156,7 @@ import { INotificationModuleService } from "@medusajs/types"
export default async function productCreateHandler({
data,
container
container,
}: SubscriberArgs<{ id: string }>) {
const notificationModuleService: INotificationModuleService =
container.resolve(
@@ -167,7 +167,7 @@ export default async function productCreateHandler({
to: "test@gmail.com",
channel: "email",
template: "product-created",
data: "data" in data ? data.data : data
data: "data" in data ? data.data : data,
})
}
@@ -39,6 +39,6 @@ module.exports = defineConfig({
// ...
modules: {
[Modules.WORKFLOW_ENGINE]: true,
}
},
})
```
@@ -46,7 +46,7 @@ module.exports = defineConfig({
},
},
},
}
},
})
```