I think you’re running into the issue described here, which arises when your hosts/staging
and hosts/production
list the same IP. See that link for options to resolve the issue. There are some Trellis “validations” in development that will catch and warn about this, among other things.
I think it would “just work” if staging and production were on separate servers/IPs. I haven’t tried or looked into it, but it could probably also work with both on the same server. I wouldn’t recommend having both on the same server, but there are some discourse threads you could find on the topic (requires some adjustments).