Using @vercel/related-projects from the browser
Thanks for the package, it really helps linking projects in preview environments. For us, the main use-case is linking to different projects hosted on other subdomains and accessing the API. However, Since the environment variables are not exposed to the browser, the package only works in server environments.
Suggestion
Make relatedProjects and withRelatedProject also work in browser environments. This probably requires exposing the necessary environment variables to the browser. I can't tell if this is already done, or whether this comes with security implications.
Thanks for the consideration! I'd be open to creating a PR against vercel/vercel if it is possible to contribute.