### 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.
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
bun add @aws-sdk/client-s3.env.exampleand load them via Nuxt configuration (runtimeConfig):B2_KEY_IDB2_APPLICATION_KEYB2_ENDPOINTB2_REGIONB2_BUCKET_NAMEserver/utils/s3.tsto handle file uploads and retrieval.forcePathStyle: trueis configured in theS3Clientoptions for compatibility with Backblaze B2.