0.0.7 • Published 9 months ago

medusa-file-github v0.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

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

npm run dev

Build

npm run build

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

0.0.7

9 months ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago