Joshua's Cheatsheets - 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:
Mon Jan 06 2020 20:35:34 GMT+0000 (Coordinated Universal Time)
Markdown Source Created:
Mon Jan 06 2020 20:35:34 GMT+0000 (Coordinated Universal Time)
© 2020 Joshua Tzucker, Built with Gatsby