Skip to content

Commit

Permalink
Update medusa-config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
chillpilllike authored Jul 21, 2024
1 parent 15172c2 commit ac1cf42
Showing 1 changed file with 27 additions and 6 deletions.
33 changes: 27 additions & 6 deletions medusa-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,19 @@ const plugins = [
},
},
},
{
resolve: `medusa-file-minio`,
{
resolve: `medusa-file-s3`,
options: {
endpoint: process.env.MINIO_ENDPOINT,
bucket: process.env.MINIO_BUCKET,
access_key_id: process.env.MINIO_ACCESS_KEY,
secret_access_key: process.env.MINIO_SECRET_KEY,
s3_url: process.env.S3_URL,
bucket: process.env.S3_BUCKET,
region: process.env.S3_REGION,
access_key_id: process.env.S3_ACCESS_KEY_ID,
secret_access_key: process.env.S3_SECRET_ACCESS_KEY,
cache_control: process.env.S3_CACHE_CONTROL,
// optional
download_file_duration:
process.env.S3_DOWNLOAD_FILE_DURATION,
prefix: process.env.S3_PREFIX,
},
},
{
Expand Down Expand Up @@ -90,6 +96,21 @@ const plugins = [
},
},
},
{
resolve: `medusa-plugin-sendgrid`,
options: {
api_key: process.env.SENDGRID_API_KEY,
from: process.env.SENDGRID_FROM,
order_placed_template:
process.env.SENDGRID_ORDER_PLACED_ID,
localization: {
"de-DE": { // locale key
order_placed_template:
process.env.SENDGRID_ORDER_PLACED_ID_LOCALIZED,
},
},
},
},
];

const modules = {
Expand Down

0 comments on commit ac1cf42

Please sign in to comment.