We also have this issue -- we use self-hosted for local dev and preview deployments, which are not easily automatable without just hosting a self-hosted instance, but with a docker container we can just deploy each one ephemerally (as is de-facto standard in many self-hostable saas products -- see Hasura or Next.js for an example of models that work well for product development). There's no local config for this that can then be deployed with our normal ci/cd when we change configs though, which means we have to manually update each environment, which is extremely fragile. This is one (of many) reasons we're considering switching to another solution like betterauth and hanko.