Using s3 as local is not working apart from localhost:9000
This commit is contained in:
parent
9b889ca99f
commit
20a0804f18
@ -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,
|
||||
// },
|
||||
// },
|
||||
],
|
||||
},
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user