@frogbotai/storage-gcs
v0.42.0
Published
Google Cloud Storage adapter for FrogBot.
Readme
@frogbotai/storage-gcs
Google Cloud Storage adapter for FrogBot.
Installation
pnpm add @frogbotai/storage-gcsUsage
import { buildConfig } from 'frogbot';
import { gcsStorage } from '@frogbotai/storage-gcs';
export default buildConfig({
storage: [
gcsStorage({
bucket: process.env.GCS_BUCKET,
options: {
projectId: process.env.GCS_PROJECT_ID,
credentials: JSON.parse(process.env.GCS_CREDENTIALS),
},
}),
],
// ...rest of config
});The adapter stores files for the collection marked file: true, if any, and chat assets automatically. List your own upload collections in collections, for example collections: { media: true }. See Storage Adapters for every option.
