docs: editing and general fixes of medusa's learning resources (#7261)

* docs: editing and general fixes of medusa's learning resources

* fix build script

* update ui dependency

* fix build

* adjust next.js steps
This commit is contained in:
Shahed Nasser authored and GitHub committed 2024-05-13 18:55:11 +03:00
1 parent 803e4aad02
commit 7cb90f8e82
79 files changed
+488 -1707

No files matched your search

@@ -25,11 +25,15 @@ npm install @medusajs/cache-inmemory
Next, add the module into the `modules` property of the exported object in `medusa-config.js`:
```js title="medusa-config.js"
const { Modules } = require("@medusajs/modules-sdk")
// ...
module.exports = {
// ...
modules: {
// ...
cacheService: {
[Modules.CACHE]: {
resolve: "@medusajs/cache-inmemory",
options: {
// optional options
@@ -27,15 +27,19 @@ npm install @medusajs/cache-redis
Next, add the module into the `modules` property of the exported object in `medusa-config.js`:
export const highlights = [
["8", "redisUrl", "The Redis connection URL."]
["12", "redisUrl", "The Redis connection URL."]
]
```js title="medusa-config.js" highlights={highlights}
const { Modules } = require("@medusajs/modules-sdk")
// ...
module.exports = {
// ...
modules: {
// ...
cacheService: {
[Modules.CACHE]: {
resolve: "@medusajs/cache-redis",
options: {
redisUrl: process.env.CACHE_REDIS_URL,
@@ -45,6 +49,14 @@ module.exports = {
}
```
### Environment Variables
Make sure to add the following environment variables:
```bash
CACHE_REDIS_URL=<YOUR_REDIS_URL>
```
### Redis Cache Module Options
<Table>
@@ -148,14 +160,6 @@ module.exports = {
</Table.Body>
</Table>
### Environment Variables
Make sure to add the following environment variables:
```bash
CACHE_REDIS_URL=<YOUR_REDIS_URL>
```
---
## Test the Module