Skip to content

feature: Add Backblaze B2 S3-Compatible Storage Integration #10

Description

@Abhay2133

Description

Implement support for file storage using Backblaze B2's S3-compatible API. This will allow the application to upload and store files dynamically.

Tasks

  • Install S3 SDK: bun add @aws-sdk/client-s3
  • Add the following template environment variables to .env.example and load them via Nuxt configuration (runtimeConfig):
    • B2_KEY_ID
    • B2_APPLICATION_KEY
    • B2_ENDPOINT
    • B2_REGION
    • B2_BUCKET_NAME
  • Create an S3 utility/helper client under server/utils/s3.ts to handle file uploads and retrieval.
  • Ensure that forcePathStyle: true is configured in the S3Client options for compatibility with Backblaze B2.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions