Browse Source

set default cookie secret

Shahed Nasser 1 năm trước cách đây
mục cha
commit
ac8f929fe9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      medusa-config.js

+ 1 - 1
medusa-config.js

@@ -72,7 +72,7 @@ const modules = {
 /** @type {import('@medusajs/medusa').ConfigModule["projectConfig"]} */
 const projectConfig = {
   jwt_secret: process.env.JWT_SECRET || "supersecret",
-  cookie_secret: process.env.COOKIE_SECRET,
+  cookie_secret: process.env.COOKIE_SECRET || "supersecret",
   store_cors: STORE_CORS,
   database_url: DATABASE_URL,
   admin_cors: ADMIN_CORS,