Skip to content

crubier/strapi-provider-upload-supabase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Links

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages