Skip to content

Commit ff91b2b

Browse files
committed
feat: add local file provider configuration and update package dependencies
Signed-off-by: Mohammad Abu-Khader <mohammad.abukhader@hotmail.com>
1 parent d2d975f commit ff91b2b

3 files changed

Lines changed: 22 additions & 1 deletion

File tree

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,7 @@ build
2626
.medusa/public/
2727
.medusa
2828

29-
ecosystem.config.js
29+
ecosystem.config.js
30+
31+
.env.production
32+
deploy-fixes.sh

medusa-config.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,23 @@ module.exports = defineConfig({
5656
{
5757
resolve: "./src/modules/banner",
5858
},
59+
{
60+
resolve: "@medusajs/medusa/file",
61+
options: {
62+
providers: [
63+
{
64+
resolve: "@medusajs/file-local",
65+
id: "local",
66+
options: {
67+
// Upload directory for product images
68+
upload_dir: "uploads",
69+
// Backend URL is used to generate full URLs for images
70+
backend_url: process.env.MEDUSA_BACKEND_URL || "http://localhost:9000",
71+
},
72+
},
73+
],
74+
},
75+
},
5976
{
6077
resolve: "@medusajs/medusa/auth",
6178
options: {

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"@medusajs/cache-redis": "^2.13.1",
3232
"@medusajs/cli": "^2.12.2",
3333
"@medusajs/event-bus-redis": "^2.13.1",
34+
"@medusajs/file-local": "^2.13.1",
3435
"@medusajs/framework": "^2.12.2",
3536
"@medusajs/medusa": "^2.12.2",
3637
"@medusajs/payment-stripe": "^2.12.2",

0 commit comments

Comments
 (0)