Medusa won the Golden Kitty Award for Best Ecommerce Product ✨  Learn More

Medusa Logo
  • Developers
  • Blog
  • Pricing
  • Community
  • About
  • Careers
  • Get Started
  • Developers
  • Blog
  • Pricing
  • Community
  • About
  • Careers
  • Get Started
Browse

Built by

bentrynning

Category

Storage

Version

0.0.6

Last updated

Jan 26, 2023, 19:30:21 PM2 months ago
View sourceView on NPMCopy link

medusa-file-github

Use a github repository as file storage for your medusa. This uses githubs new fine-grained tokens in combinations with github api to upload your images And is served through the superb open-source cdn jsdeliver

Requirements

  • Create a public github repo here
  • Create a Fine-grained token that only have read/write access to your file storage repo here
  • Install the plugin in your medusajs server and enjoy free assets storage with world wide CDN.

Options

{
owner: "bentrynning",
repo: "medusa",
path: "public" // this is the path to the folder where your assets live
cdn_url: // optional defults to "https://cdn.jsdelivr.net/gh",
github_token: "YOUR-FINE-GRAINED-GITHUBTOKEN", // process.env.GITHUB_TOKEN
}

Development

Watch js npm run dev Build js npm run build

Remember to update files in packages.json when new folders are added to only export the needed files when publishing package

altText of the image

Build your own plugins

Take Medusa up another level, and develop your own plugins with our API to speed up your processes.

Focus on building plugins for tools you use in your daily workflow, and publish to the Medusa Plugin Store for others to install.

Read more
altText of the image
Medusa

Product

Medusa for B2BIntegrationsGet StartedCareers
We're hiring

Developers

DocsAPI ReferencesCommunityDiscussions

Medusa

BlogPricingAboutContact Us

Newsletter

Get a summary of what we’ve shipped during the last month, behind the scenes updates, and team picks. Unsubscribe any time.

© 2023 MedusaJS, Inc.