Setu-TS
    Preparing search index...

    Function StoragePlugin

    • Creates the StoragePlugin.

      Registers an IStorage under CAPABILITIES.STORAGE. The default provider is 'memory' (zero dependency, every runtime).

      Parameters

      Returns IPlugin

      The plugin instance

      import { StoragePlugin } from '@setu-ts/storage-plugin';

      // In-memory (default)
      app.register(StoragePlugin());

      // AWS S3
      app.register(StoragePlugin({
      provider: 's3',
      options: { bucket: 'my-bucket', region: 'us-east-1' },
      }));