64 lines
1.4 KiB
JavaScript
64 lines
1.4 KiB
JavaScript
const { defineConfig, Modules } = require("@medusajs/framework/utils")
|
|
|
|
module.exports = defineConfig({
|
|
admin: {
|
|
vite: () => {
|
|
return {
|
|
server: {
|
|
allowedHosts: [
|
|
".nett00n.org",
|
|
"reka.nett00n.org",
|
|
"http://reka.nett00n.org:9000",
|
|
],
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
projectConfig: {
|
|
databaseUrl: process.env.DATABASE_URL,
|
|
databaseDriverOptions: {
|
|
connection: {
|
|
ssl: false,
|
|
},
|
|
},
|
|
redisUrl: process.env.REDIS_URL,
|
|
http: {
|
|
jwtSecret: process.env.JWT_SECRET || "supersecret",
|
|
cookieSecret: process.env.COOKIE_SECRET || "supersecret",
|
|
},
|
|
},
|
|
modules: {
|
|
[Modules.FILE]: {
|
|
resolve: "@medusajs/file",
|
|
options: {
|
|
providers: [
|
|
{
|
|
resolve: "@medusajs/file-local",
|
|
id: "local",
|
|
options: {
|
|
upload_dir: "uploads",
|
|
backend_url: "http://localhost:9000",
|
|
},
|
|
},
|
|
],
|
|
},
|
|
},
|
|
[Modules.NOTIFICATION]: {
|
|
resolve: "@medusajs/notification",
|
|
options: {
|
|
providers: [
|
|
{
|
|
resolve: "@medusajs/notification-local",
|
|
id: "local",
|
|
options: {
|
|
name: "Local Notification Provider",
|
|
channels: ["feed"],
|
|
},
|
|
},
|
|
],
|
|
},
|
|
},
|
|
},
|
|
})
|