crubier / strapi-provider-upload-supabase

33 stars 13 forks source link

Update to Strapi V4 #4

Open AFXcrush opened 2 years ago

AFXcrush commented 2 years ago

It's been a while since Strapi V4 was released and the ones, as me, who used MongoDB as database are switching to Postgres, so Supabase seems like a good choice, but there is almost no information on the internet on how to properly set it up to make it work with Strapi. Your package is a nice solution, but it's made for Strapi v3.

If no updates coming soon, how to set up the code properly to make it work with the new V4 structure?

myvisualdna commented 2 years ago

Supporting this one. This connector is not working with Strapi V4.

owystyle commented 2 years ago

works with v4 also, you just need to configure policies in supabase under Storage > Policies

rustkas commented 1 year ago

works with v4 also, you just need to configure policies in supabase under Storage > Policies

Please, describe how to dot it!

amanaureus commented 1 year ago

Knock knock anyone there??? Please explain how to connect supabase storage with latest strapi?? i tried but it is uploading to local only

spiff-radio commented 1 year ago

https://forum.strapi.io/t/using-supabase-for-the-postgres-database/16762/2

https://github.com/paulospiguel/strapi-provider-upload-supabase-v4/ ?

joey-ma commented 9 months ago

It seems like this repo hasn't been updated for 3 years. After fiddling around, I've been able to connect to Supabase with .env alone.

# env variables used in /config/database.js
DATABASE_CLIENT=postgres 
# find the following in your Supabase > Project Settings > Database
# > Connection info (section)
DATABASE_HOST=db.project_id.supabase... # Host
DATABASE_NAME=postgres # Database name
DATABASE_USERNAME=postgres # User
DATABASE_PASSWORD=your_password # Password
# > Connection Pooling (section)
DATABASE_URL=postgres://...:[your_password]@....com:port/username # Connection string
DATABASE_PORT= 6543 # different from Connection info's Port

Good luck! @myvisualdna @rustkas @amanaureus @spiff-radio