JSPM

strapi-provider-upload-supabase

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 170
  • Score
    100M100P100Q87906F
  • License MIT

Supabase storage provider for Strapi upload plugin

Package Exports

  • strapi-provider-upload-supabase

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (strapi-provider-upload-supabase) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Strapi Upload Provider for Supabase storage

Parameters

How to use

  1. Install this package
npm i strapi-provider-upload-supabase
  1. Create config in ./extensions/upload/config/settings.js with content
module.exports = {
  provider: "supabase",
  providerOptions: {
    apiUrl: process.env.SUPABASE_API_URL,
    apiKey: process.env.SUPABASE_API_KEY,
    bucket: process.env.SUPABASE_BUCKET,
    directory: process.env.SUPABASE_DIRECTORY,
    options: {}
  }
}
  1. Create .env and add to them
SUPABASE_API_URL="<Your Supabase url>"
SUPABASE_API_KEY="<Your Supabase api key>"
SUPABASE_BUCKET="strapi-uploads"
SUPABASE_DIRECTORY=""

with values obtained from this page:

https://app.supabase.io/project//settings/api

Parameters options, bucket and directory are optional and you can omit it, they will take the values shown in the example above.

Resources