Skip to content

Commit e33b3d0

Browse files
Update Cloud docs with more details regarding Cloud vs self hosted (#2818) (#2826)
Co-authored-by: meganelacheny <[email protected]>
1 parent ed0e708 commit e33b3d0

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

docusaurus/docs/cloud/getting-started/cloud-fundamentals.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,7 @@ Before going any further into this Strapi Cloud documentation, we recommend you
1919
- **Types of Strapi Cloud users** <br/> There can be 2 types of users on a Strapi Cloud project: owners and maintainers. The owner is the one who has created the project and has therefore access to all features and options for the project. Maintainers are users who have been invited to contribute to an already created project by its owner. Maintainers, as documented in the [Collaboration](/cloud/projects/collaboration) page, cannot view and access all features and options from the Strapi Cloud dashboard.
2020

2121
- **Support** <br/> The level of support provided by the Strapi Support team depends on the Strapi Cloud plan you subscribed for. The Free plan does not include access to support. The Essential and Pro plans include Basic support while the Scale plan includes Standard support. Please refer to the [dedicated support article](https://support.strapi.io/support/solutions/articles/67000680833-what-is-supported-by-the-strapi-team#Not-Supported) for all details regarding support levels.
22+
23+
- **API access in Strapi Cloud vs self-hosted** <br/> The REST and GraphQL APIs behave the same on Strapi Cloud and on self-hosted servers. The only differences are the URLs:
24+
- Base API domain: On Strapi Cloud, your API uses the domain of the environment (e.g. `https://<project>.strapiapp.com/api/...`), or your custom domain if you set one (see [Domains documentation](/cloud/projects/settings#domains)). A self-hosted project would use whatever domain you expose.
25+
- Media Library URLs: Media fields in REST and GraphQL responses from Strapi Cloud always use the project media domain (e.g. `<project>.media.strapiapp.com`), even when you access the API through a custom domain. Self-hosted projects return URLs from the configured upload provider, so the domain can match your own site or CDN. When you move a project from self-hosted to Strapi Cloud, make sure your frontend reads the absolute URLs returned by the API or accepts the Strapi Cloud media domain.

docusaurus/docs/cloud/projects/settings.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,10 @@ All existing domains for your Strapi Cloud project are listed in the <Icon name=
457457

458458
Default domain names are made of 2 randomly generated words followed by a hash. They can be replaced by any custom domain of your choice.
459459

460+
:::note
461+
Custom domains are not available on the Free plan. Downgrading to the Free plan will result in the application domain's being restored to the default one.
462+
:::
463+
460464
1. Click the **Connect new domain** button.
461465
2. In the window that opens, fill in the following fields:
462466

@@ -473,14 +477,12 @@ Default domain names are made of 2 randomly generated words followed by a hash.
473477
To finish setting up your custom domain, in the settings of your domain registar or hosting platform, please add the Target value (e.g., `proud-unicorn-123456af.strapiapp.com`) as a CNAME alias to the DNS records of your domain.
474478
:::
475479

476-
:::caution Custom domains and assets
480+
:::info Custom domains and assets
477481
When using custom domains, these domains do not apply to the URLs of uploaded assets. Uploaded assets keep the Strapi Cloud project-based URL.
478482

479483
This means that, if your custom domain is hosted at `https://my-custom-domain.com` and your Strapi Cloud project name is `my-strapi-cloud-instance`, API calls will still return URLs such as `https://my-strapi-cloud-instance.media.strapiapp.com/example.png`.
480-
:::
481484

482-
:::note
483-
Custom domains are not available on the Free plan. Downgrading to the Free plan will result in the application domain's being restored to the default one.
485+
Media library queries over REST or GraphQL always return the project media domain on Strapi Cloud. If you move from a self-hosted project, where media URLs can match your own domain or CDN, plan to keep using the absolute URLs from the API or adjust your frontend to allow the Strapi Cloud media domain (see [Cloud Fundamentals](/cloud/cloud-fundamentals) for more details).
484486
:::
485487

486488
### Variables

docusaurus/static/llms-full.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1279,10 +1279,12 @@ Default domain names are made of 2 randomly generated words followed by a hash.
12791279
To finish setting up your custom domain, in the settings of your domain registar or hosting platform, please add the Target value (e.g., `proud-unicorn-123456af.strapiapp.com`) as a CNAME alias to the DNS records of your domain.
12801280
:::
12811281

1282-
:::caution Custom domains and assets
1282+
:::info Custom domains and assets
12831283
When using custom domains, these domains do not apply to the URLs of uploaded assets. Uploaded assets keep the Strapi Cloud project-based URL.
12841284

12851285
This means that, if your custom domain is hosted at `https://my-custom-domain.com` and your Strapi Cloud project name is `my-strapi-cloud-instance`, API calls will still return URLs such as `https://my-strapi-cloud-instance.media.strapiapp.com/example.png`.
1286+
1287+
Media library queries over REST or GraphQL always return the project media domain on Strapi Cloud. If you move from a self-hosted project, where media URLs can match your own domain or CDN, plan to keep using the absolute URLs from the API or adjust your frontend to allow the Strapi Cloud media domain (see [API access in Strapi Cloud](/cloud/cloud-fundamentals#api-access-in-strapi-cloud-vs-self-hosted) for more details).
12861288
:::
12871289

12881290
:::note

0 commit comments

Comments
 (0)