- Where are good examples of actual code?
- How do you get the deployed URL within the code itself? For examle, if you are going to need to generate an OAuth callback.
- According to this GH issue, the best way is to grab an incoming request header, either
x-now-deployment-url
to get the unique deployment URL, or the regularhost
header to get the domain accessed by the client, which might or might not be a custom domain rather than the deployment domain.
- According to this GH issue, the best way is to grab an incoming request header, either