/ghost-storage-supabase

Supabase storage adapter for Ghost. Recommended as a completely free storage solution for blogs being hosted on platforms with ephemeral filesystems, like Heroku.

Primary LanguageJavaScriptMIT LicenseMIT

ghost-storage-supabase

Supabase storage adapter for Ghost. Recommended as a completely free storage solution for blogs being hosted on platforms with ephemeral filesystems, like Heroku.

Installation

cd /path/to/your/ghost/installation
mkdir -p content/adapters/storage/ghost-storage-supabase

After that, simply copy the contents of this repo into that newly created directory and run

yarn install

Usage

Add the following to your configuration file and modify it accordingly.

"storage": {
    "active": "ghost-storage-supabase",
    "ghost-storage-supabase": {
        "bucket": "<your public bucket name>",
        "supabaseUrl": "<your supabase url>",
        "supabaseKey": "<your supabase anon|service key>"
    }
}

💡 To locate the information above, follow this Supabase guide. Buckets are readonly by default, even the public ones needed for this integration. After you have created your public bucket follow the Policy guides in order to allow public uploading. Alternatively, you can use your service key instead.

Credit

Inspiration of this README came from https://github.com/ifvictr/ghost-storage-github

License

MIT License