From 5c44ce6640b14afffaca239e0bb1a65d393800e9 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Tue, 9 Jul 2024 18:25:05 +0300 Subject: [PATCH] docs: updates to local file module provider documentation (#8030) Updates to the local file provider module's documentation based on latest changes --- .../architectural-modules/file/local/page.mdx | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/www/apps/resources/app/architectural-modules/file/local/page.mdx b/www/apps/resources/app/architectural-modules/file/local/page.mdx index c64ae74149..460027219f 100644 --- a/www/apps/resources/app/architectural-modules/file/local/page.mdx +++ b/www/apps/resources/app/architectural-modules/file/local/page.mdx @@ -8,6 +8,12 @@ export const metadata = { The Local File Module Provider stores files uploaded to your Medusa application in the `/uploads` directory. + + +The Local File Module Provider is only for development purposes. Use the [S3 File Module Provider](../s3/page.mdx) in production instead. + + + --- ## Install the Local File Module @@ -77,29 +83,29 @@ module.exports = { - The directory to upload files to. + The directory to upload files to. Medusa exposes the content of the `static` directory publically. If you change the directory, it must be served and publically accessible. - `uploads` + `static` - `upload_dir` + `backend_url` - The URL of the Medusa application. + The URL that serves the files. - `http://localhost:9000` + `http://localhost:9000/static`