Skip to main content

Attach a custom domain to bucket

POST 

/v1/providers/:provider_id/orgs/:org_id/buckets/:bucket_name/domain

Sets a custom domain for a bucket. If the domain is already set, it will be replaced.

note

The custom domain must have a CNAME record that points to the bucket URL.

Example:

If your bucket is my-bucket and you want to use images.example.com, create a CNAME record pointing images.example.com to my-bucket.t3.storage.dev.

After setting the custom domain, objects will be accessible via:

  • https://images.example.com/object.jpg
  • https://my-bucket.t3.storage.dev/object.jpg (original URL still works)

Request

Responses

OK