BYOS (Bring Your Own Storage)
BYOS mode uploads assets directly to your own infrastructure. No Poliage account required.
AWS S3
Upload assets to an S3 bucket:
{
"storage": {
"type": "s3",
"bucket": "my-company-assets",
"region": "us-east-1",
"pathPrefix": "docs/v2",
"publicDomain": "https://assets.mycompany.com"
}
}Required Environment Variables
AWS_ACCESS_KEY_ID=your-access-key
AWS_SECRET_ACCESS_KEY=your-secret-keyConfiguration Options
Cloudflare R2
Upload assets to R2 storage:
{
"storage": {
"type": "r2",
"bucket": "my-assets",
"accountId": "your-cloudflare-account-id",
"publicDomain": "https://pub-r2.mycompany.com"
}
}Required Environment Variables
R2_ACCESS_KEY_ID=your-r2-access-key
R2_SECRET_ACCESS_KEY=your-r2-secret-keyLocal Filesystem
Copy assets to a local directory (great for Git-committed assets or static site deployments):
{
"storage": {
"type": "local",
"outputDir": "./public/poliage-assets",
"publicDomain": "/poliage-assets"
}
}This is perfect for:
- Committing assets to Git
- Deploying with Vercel/Netlify
- Self-hosted documentation sites
Comparison
BYOS is ideal for teams that want full control over their assets or have compliance requirements that prevent using third-party storage.