platforms
platforms copied to clipboard
feat(vercel): handle vercel previews
get the hostname from searchParams so it works with vercel previews
a more robust solution would be to handle all the places where the site url is generated and fix that too
fixes https://github.com/vercel/platforms/issues/294
@omercnet is attempting to deploy a commit to the Vercel Labs Team on Vercel.
A member of the Team first needs to authorize it.
Hi, thanks for this insight,
In DEV or PREVIEW mode when I press for examplle a <Link href='/route'>
the host does not stay, so the middleware adds de "app" host instead.
How would you go about maintaining the host name when routing through the app?
Thanks!