Using a preview subdomain with middleware.
Unanswered
Field Sparrow posted this in #help-forum
Field SparrowOP
Hello! I am trying to use middleware to manage my subdomains. I have a problem where I want to use for example
dev.example.org as my base instead of example.org. How would I make it such that test.example.org would also work as test.dev.example.org? My middleware is basically just a copy of platforms, but neutered. (Setting the env var NEXT_PUBLIC_ROOT_DOMAIN to the dev. domain doesnt fix it, it still just works on the base domain.1 Reply
Alligator mississippiensis
Same experiencing the same issue