Can I serve my Web Client Hosting app from the root of my domain, without /app/ in the URL?
Not directly: Catalyst CloudScale Web Client Hosting serves your web client under the /app/ path, also on a mapped custom domain. To serve it from the root, including files such as robots.txt or a sitemap, route requests through Catalyst CloudScale API Gateway:
- Plan first: when you enable API Gateway, Security Rules are disabled and all your function and web client URLs are inaccessible until you create APIs for them. API Gateway is a paid component.
- Open CloudScale → API Gateway (under Security & Identity), click Enable Now, then Proceed.
- Create APIs for all your functions. Auto-create is available only until you create your first API.
- Click Create API, select GET, enter the request URL
/{path:(.*)}, select the web client as the target, append{path}to its target URL/app/, and click Create. - Test the default application URL and your custom domain.
Alternatively, host the site on Catalyst Slate, Catalyst’s frontend hosting service.
Refer to the API Gateway Key Concepts help page and the Web Client Hosting Introduction help page for details.
Updated
Yes
No
Send your feedback to us
Skip
Submit
Ask AI about this answer