|
@@ -28,7 +28,8 @@ const ADMIN_CORS =
|
|
// CORS to avoid issues when consuming Medusa from a client
|
|
// CORS to avoid issues when consuming Medusa from a client
|
|
const STORE_CORS = process.env.STORE_CORS || "http://localhost:8000";
|
|
const STORE_CORS = process.env.STORE_CORS || "http://localhost:8000";
|
|
|
|
|
|
-const DATABASE_URL="postgres://postgres@localhost:5432/medusa"
|
|
|
|
|
|
+const DATABASE_URL =
|
|
|
|
+ process.env.DATABASE_URL || "postgres://localhost/medusa-store";
|
|
|
|
|
|
const REDIS_URL = process.env.REDIS_URL || "redis://localhost:6379";
|
|
const REDIS_URL = process.env.REDIS_URL || "redis://localhost:6379";
|
|
|
|
|
|
@@ -42,13 +43,13 @@ const plugins = [
|
|
},
|
|
},
|
|
},
|
|
},
|
|
// To enable the admin plugin, uncomment the following lines and run `yarn add @medusajs/admin`
|
|
// To enable the admin plugin, uncomment the following lines and run `yarn add @medusajs/admin`
|
|
- {
|
|
|
|
- resolve: "@medusajs/admin",
|
|
|
|
- /** @type {import('@medusajs/admin').PluginOptions} */
|
|
|
|
- options: {
|
|
|
|
- autoRebuild: true,
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
|
|
+ // {
|
|
|
|
+ // resolve: "@medusajs/admin",
|
|
|
|
+ // /** @type {import('@medusajs/admin').PluginOptions} */
|
|
|
|
+ // options: {
|
|
|
|
+ // autoRebuild: true,
|
|
|
|
+ // },
|
|
|
|
+ // },
|
|
];
|
|
];
|
|
|
|
|
|
const modules = {
|
|
const modules = {
|