Zeit / Zeit Now - random notes
Light
help
  • 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 regular host header to get the domain accessed by the client, which might or might not be a custom domain rather than the deployment domain.
Markdown Source Last Updated:
Sun Jan 19 2020 03:24:02 GMT+0000 (Coordinated Universal Time)
Markdown Source Created:
Mon Dec 30 2019 23:19:31 GMT+0000 (Coordinated Universal Time)