Nuxt
Storage
S3

Storage with S3 compatible services

You can use any S3 compatible storage service with supastarter. All you need to do to set it up is to add the following environment variables to your .env.local file (and later your production environment):

S3_ACCESS_KEY_ID="your-access-key"
S3_SECRET_ACCESS_KEY="your-secret-key"
S3_ENDPOINT="your-endpoint"

Per default, supastarter uses a bucket called avatars to store the avatars for users and teams. Make sure to create this bucket in your S3 compatible storage service.

The last thing you need to make sure is to set the right provider in the packages/storage/providers/index.ts file:

export * from './s3';