Update Subdomains

In this guide, you'll learn how to update the Medusa-provided subdomains for your backend and storefront.

What are Subdomains?#

Each environment gets a backend subdomain under medusajs.app and a storefront subdomain under medusajs.site. You can update these subdomains from the environment's Domains settings.

These are different from custom domains, which let you serve your backend and storefront from your own domain names.


Update Subdomains#

Warning: Updating a subdomain may result in a short downtime until the change propagates.

To update the backend or storefront subdomain:

  1. If you're in a different organization, switch to the organization.
  2. Click Projects in the sidebar and select the project that contains the environment.
  3. In the project's dashboard, click on the name of the environment. For example, "Production".
  4. Click Domains in the sidebar to open the environment's domains settings.
  5. Under the Medusa-provided domains section:
    • To change the backend subdomain, update the value in the Backend subdomain field. The full URL will be https://<your-subdomain>.medusajs.app.
    • To change the storefront subdomain, update the value in the Storefront subdomain field. The full URL will be https://<your-subdomain>.medusajs.site.
  6. Click Save changes.
Was this guide helpful?
Ask Bloom
For assistance in your development, use Claude Code Plugins or Medusa MCP server in Cursor, VSCode, etc...FAQ
What is Medusa?
How can I create a module?
How can I create a data model?
How do I create a workflow?
How can I extend a data model in the Product Module?
Recipes
How do I build a marketplace with Medusa?
How do I build digital products with Medusa?
How do I build subscription-based purchases with Medusa?
What other recipes are available in the Medusa documentation?
Chat is cleared on refresh
Line break
⇧↵