What I want to do is point multiple urls to the same database/environment. For each of my clients I have unique branding and each client has a unique subdomain.
My current setup is that each domain is published as an environment and points to a database of its own. However, this is difficult to maintain with many clients. I want to start having multiple clients on the same database, but still provide a unique url to each client.
Yes, but I don’t want to manage a separate environment for each client. I’d like to give each client a unique URL which they can share with their clients and contains their name in the URL.
I also wonder how businesses (knowledge bases, etc.) do this without the manual setup of multiple subdomains. There’s gotta be a way, but I suspect that way has to do with managing your own deployments programmatically.
Even the Anvil team has to do a manual step when I add a custom domain to an app.
Routing is nice and may be an acceptable workaround if you don’t mind the hash in the URL.
With something like a LAMP stack / Apache You typically set up a wildcard subdomain that points somewhere in your server, that intercepts the prefix of the domain and uses it as a variable for some sort of lookup on what to serve to the client.
I have no idea how to do this with anvil as a “first layer” server.