platforms icon indicating copy to clipboard operation
platforms copied to clipboard

feat(vercel): handle vercel previews

Open omercnet opened this issue 2 years ago • 2 comments

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 avatar Sep 27 '23 14:09 omercnet

@omercnet is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Sep 27 '23 14:09 vercel[bot]

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!

lukasburns avatar Oct 15 '23 19:10 lukasburns