redis url

This commit is contained in:
Amritanshu Agrawal 2024-10-14 10:46:35 +05:30
parent 2af58df78f
commit 247bd87a44
2 changed files with 7 additions and 6 deletions

View File

@ -1,6 +1,7 @@
const { loadEnv, defineConfig } = require('@medusajs/framework/utils')
const { loadEnv, defineConfig } = require("@medusajs/framework/utils");
const { Modules } = require("@medusajs/framework/utils");
loadEnv(process.env.NODE_ENV, process.cwd())
loadEnv(process.env.NODE_ENV, process.cwd());
module.exports = defineConfig({
projectConfig: {
@ -11,7 +12,7 @@ module.exports = defineConfig({
authCors: process.env.AUTH_CORS,
jwtSecret: process.env.JWT_SECRET || "supersecret",
cookieSecret: process.env.COOKIE_SECRET || "supersecret",
}
},
},
modules: {
[Modules.CACHE]: {
@ -20,5 +21,5 @@ module.exports = defineConfig({
redisUrl: process.env.CACHE_REDIS_URL,
},
},
}
})
},
});

View File

@ -53,4 +53,4 @@
"engines": {
"node": ">=20"
}
}
}