---
schema_version: "1"
id: c7a77d63ff19764556b6f5e0581bde24e70d9097ce9406f0851d02389dc54de2
title: Configure a Custom Domain and CDN
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/commerce/264-0-0/comm_configure_cdn_and_custom_domains.md
canonical_url: https://help.salesforce.com/s/articleView?id=commerce.comm_configure_cdn_and_custom_domains.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 028c032f5c03dd958847fd458d0dcc65a97d4558d04ce76618822379eaa27de9
description: For B2B stores created with the LWR template, if you prefer a branded URL or a URL without my.site.com, connect your store to a domain. Connecting the store to a domain automatically enables the Salesforce content delivery network (CDN) partner. You can use a single custom domain for multiple Commerce stores. A Salesforce admin typically configures the custom domain.
products:
  - Commerce
  - B2B Commerce
release: "264"
---
# Configure a Custom Domain and CDN

For B2B stores created with the LWR template, if you prefer a branded URL or a URL without my.site.com, connect your store to a domain. Connecting the store to a domain automatically enables the Salesforce content delivery network (CDN) partner. You can use a single custom domain for multiple Commerce stores. A Salesforce admin typically configures the custom domain.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=commerce.comm_editions.htm&amp;language=en_US" target="_blank">View supported editions</a>.</td></tr></tbody></table>

[Which Salesforce Commerce Product Do I Have?](https://help.salesforce.com/s/articleView?id=commerce.comm_what_product.htm&language=en_US)

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-commerce-comm-264-0-0-production-enus/d863e308-482a-4dfa-8d20-2a94737d394a/images/icon_note.png)

Note To connect your own CDN (BYO CDN) to your Commerce store, contact Salesforce Customer Support. We’ll evaluate your request and enable BYO CDN. When you use your own CDN, you’re responsible for managing the CDN for performance and security.

To serve your custom domain with the Salesforce CDN, your domain name must be a subdomain of a top-level domain. For example, if your top-level domain is example.com, your subdomain is something like store.example.com. Your top-level domain is registered and hosted externally from Salesforce. You can’t use the same domain name across multiple organizations. If you delete a domain name from one organization and plan on reusing it in another, wait at least 48 hours between deleting the domain name and adding it back in. Avoid making changes to your domain options before the previous changes have been fully processed. Processing typically takes 2-3 days.

If you choose to use the system-managed .my.site.com URL provided by Salesforce, you can upload files up to 128MB in size per file. If you create a custom domain, you can upload files up to 500MB in size per file.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-commerce-comm-264-0-0-production-enus/d863e308-482a-4dfa-8d20-2a94737d394a/images/icon_note.png)

Note A CDN isn’t required for sandbox stores, stores created in Developer Edition, or B2B stores created with an Aura template. Although a custom domain and corresponding CDN are optional for a B2B store created with an Aura template, we recommend them if broad access and high security are required.

1. Review the [considerations](https://help.salesforce.com/s/articleView?id=platform.community_builder_cdn_considerations.htm&type=5&language=en_US) for the Salesforce CDN partner.
2. Complete the [prerequistes](https://help.salesforce.com/s/articleView?id=platform.domain_mgmt_prereqs.htm&type=5&language=en_US) for a custom domain and the [prerequistes for the Salesforce CDN](https://help.salesforce.com/s/articleView?id=platform.community_builder_cdn_prerequisites.htm&type=5&language=en_US).
3. [Set up](https://help.salesforce.com/s/articleView?id=platform.community_builder_cdn.htm&type=5&language=en_US) a custom domain that uses the Salesforce CDN partner.
    
    During setup, select the **Serve the domain with the Salesforce Content Delivery Network (CDN)** option, and select the **Use the Cloudflare® CDN to serve this domain** checkbox.

#### See Also

- [Use a Custom URL for Your Store](https://help.salesforce.com/s/articleView?id=commerce.comm_custom_url.htm&release=264.0.0&type=5 "The default URL for a Commerce store includes a temporary path you specified when creating the store. The default URL is suitable for testing pre-production stores during development. However, before you launch a B2B store created with an LWR template into live production, we recommend that you configure a custom URL for the store. Associate the custom URL with a custom domain served by the Salesforce CDN, with Cloudflare as the CDN partner. For B2B stores created with an Aura template, a custom URL is optional. However, we recommend using a custom domain and corresponding CDN if broad access and high security are required.")
- [Activate Your Store](https://help.salesforce.com/s/articleView?id=commerce.comm_activate_store.htm&release=264.0.0&type=5 "Activating your B2B store makes it available to customers and accessible to external services and online search engines. Activating the store also publishes it.")
- [Connect a B2B Store to Your Domain](https://help.salesforce.com/s/articleView?id=commerce.comm_storedomainconnect.htm&release=264.0.0&type=5 "Redirect shoppers to your Commerce store when they enter your domain URL. When you connect your store to a domain, your store has access to the Salesforce content delivery network (CDN), with Cloudflare as the CDN partner. If you don’t yet have a domain, you can choose one from the sample registrars or any other trusted registrar.")