Are there plans to support better

Are there plans to support better subdomaining for Sandbox? Example I wanna host a sandbox on <pr>.preview.example.com and then the api on <pr>.preview-api.example.com?
9 Replies
Dario
Dario•3w ago
mh.... not that I am aware of 🤔 What you're workflow/usecase? 🙂
Martijn
MartijnOP•3w ago
We'd love to spin up previews of our API and Webapp when a PR is created however to properly control CORS and rules and such we'd wanna host it on a preview domain so i'd wanna deploy it on <pr>.preview.example.com so the urls are predictable :)
Dario
Dario•3w ago
but you're want two different sub-domains, one for the API and one for the webApp? 🤔
Martijn
MartijnOP•3w ago
Yes, I mean one would also work but we host our stuff on different domains :) But I don't think there's currently a way to create a preview URL on your own zone
Dario
Dario•3w ago
oh right.... yeah that's currently not possible... I think there was some discussion about that... and I'd be shocked if we won't support that sooner or later 😕
Martijn
MartijnOP•3w ago
It would be awesome if you could just connect a zone and could select an URL to show a sandbox to e.g. sandbox.exposeUrl('example.zone.com') This would made sandboxes awesome to review PRs as you can spin up some sandboxes and comment it on GH and make it work
Dario
Dario•3w ago
can I also know what you're using sandboxes for? 🙂
Martijn
MartijnOP•3w ago
At the moment, nothing but I wanna make a sandbox app which would build our apps when a PR is created so we can preview the changes
Dario
Dario•3w ago
oh I see 🤔

Did you find this page helpful?