-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmedusa-config.ts
40 lines (37 loc) · 1005 Bytes
/
medusa-config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import { defineConfig, loadEnv } from "@medusajs/framework/utils";
import { resolve } from "path";
const brandModule = resolve("./plugins/medusa-test-plugin/dist/modules/brand")
const customModule = resolve("node_modules/medusa-test-plugin-packed/dist/modules/custom")
loadEnv(process.env.NODE_ENV || "development", process.cwd());
module.exports = defineConfig({
projectConfig: {
databaseUrl: process.env.DATABASE_URL,
http: {
storeCors: process.env.STORE_CORS!,
adminCors: process.env.ADMIN_CORS!,
authCors: process.env.AUTH_CORS!,
jwtSecret: process.env.JWT_SECRET || "supersecret",
cookieSecret: process.env.COOKIE_SECRET || "supersecret",
},
},
plugins: [
{
resolve: "medusa-test-plugin",
options: {},
},
{
resolve: "medusa-test-plugin-packed",
options: {},
},
],
modules: [
{
resolve: brandModule,
options: {},
},
{
resolve: customModule,
options: {},
},
],
});