Supabase storage provider for Strapi upload plugin
npm install strapi-provider-upload-supabase- This provider is a fork of shorwood's strapi upload provider digitalocean for Digital Ocean spaces, but applied to Supabase storage
1. Install this package
```
npm i strapi-provider-upload-supabase
2. 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: {}
}
}
3. Create .env and add to them
``
SUPABASE_API_URL="
SUPABASE_API_KEY="
SUPABASE_BUCKET="strapi-uploads"
SUPABASE_DIRECTORY=""
with values obtained from this page:
> https://app.supabase.io/project/
Parameters options, bucket and directory` are optional and you can omit it, they will take the values shown in the example above.
- Strapi website
- Strapi community on Slack
- Strapi news on Twitter
- Strapi docs about upload
- Strapi Provider DO which inspired this plugin