From 20a0804f18f92d698f939306dd8910b2c7ae1615 Mon Sep 17 00:00:00 2001 From: Amritanshu Date: Thu, 17 Oct 2024 07:57:23 +0530 Subject: [PATCH] Using s3 as local is not working apart from localhost:9000 --- medusa-config.ts | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/medusa-config.ts b/medusa-config.ts index 788912e..73516e2 100644 --- a/medusa-config.ts +++ b/medusa-config.ts @@ -52,24 +52,24 @@ module.exports = defineConfig({ resolve: "@medusajs/file", options: { providers: [ - // { - // resolve: "@medusajs/medusa/file-s3", - // id: "s3", - // options: { - // file_url: process.env.S3_FILE_URL, - // access_key_id: process.env.S3_ACCESS_KEY_ID, - // secret_access_key: process.env.S3_SECRET_ACCESS_KEY, - // region: process.env.S3_REGION, - // bucket: process.env.S3_BUCKET, - // }, - // }, { - resolve: "@medusajs/file-local-next", - id: "local", + resolve: "@medusajs/medusa/file-s3", + id: "s3", options: { - backendUrl: process.env.MEDUSA_BACKEND_URL, + file_url: process.env.S3_FILE_URL, + access_key_id: process.env.S3_ACCESS_KEY_ID, + secret_access_key: process.env.S3_SECRET_ACCESS_KEY, + region: process.env.S3_REGION, + bucket: process.env.S3_BUCKET, }, }, + // { + // resolve: "@medusajs/file-local-next", + // id: "local", + // options: { + // backendUrl: process.env.MEDUSA_BACKEND_URL, + // }, + // }, ], }, },