Rewrite shopify checkout url

I have a headless shopify site hosted on netlify and there is a very big pain point a lot of people have experienced which is when they move away from the liquid theme, which is hosted in the shopify admin, they no longer have the nice clean checkout url. I do this all myself, but some people have invested significant amounts of money to develop a headless theme and in the end find out the checkout url is a generic myshopify url.

Shopify hosts the checkout and if you move over to netlify, when you go to the checkout you have to use the .myshopify domain.

For example, if you have a site acme.com and you build a headless site, you can no longer checkout at acme.com/checkout like you could when using a liquid theme.

I solved this by creating a subdomain checkout.acme.com and my shopify checkout is hosted there.

Is there any way whatsoever that we can rewrite the shopify checkout url

www.acme.myshopify.com/checkouts/29838...

to a clean checkout url like

www.acme.com/checkouts/29838

The shopify checkout is hosted on shopify even though the headless site is hosted on netlify. I don’t know if there is some sneaky way around this because it is very frustrating that you can’t keep a clean checkout url.

This is not a Netlify issue but a Shopify issue, specificially the way checkouts are handled (likely run on their infrastructure as it is secure, etc.) Your questions here are best asked of the Shopify Community.