Storage Plugins
Supabase Storage
Store your Hot Updater bundles in Supabase Storage buckets.
Installation
npm install @hot-updater/supabase --save-devSetup
The easiest way to set up your backend is using the init command:
npx hot-updater initThis interactive command will guide you through the setup process. For details on what the init command does, see the Supabase documentation.
For manual configuration, use the settings below.
Configuration
interface SupabaseStorageConfig {
supabaseUrl: string; // Your Supabase project URL
supabaseAnonKey: string; // Your Supabase anon/public key
bucketName: string; // Storage bucket name
basePath?: string; // Optional base path within bucket
}Usage
import { supabaseStorage } from '@hot-updater/supabase';
import { defineConfig } from 'hot-updater';
export default defineConfig({
storage: supabaseStorage({
supabaseUrl: process.env.SUPABASE_URL,
supabaseAnonKey: process.env.SUPABASE_ANON_KEY,
bucketName: 'hot-updater-bundles',
basePath: 'bundles' // Optional
}),
// ... other config
});Protocol
supabase-storage://
This prefix is stored in the storageUri field in the database.