examples: Unhandled Runtime Error, incompatible-href-as

Unhandled Runtime Error Error: The provided as value (/) is incompatible with the href value (/_sites/[site]). Read more: https://nextjs.org/docs/messages/incompatible-href-as

https://github.com/vercel/examples/tree/main/edge-functions/hostname-rewrites I just cloned this repo and tried to run it on my local and I am facing this error:

image

How to solve it. I haven’t found any solution!

Thank in advance

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 2
  • Comments: 18 (2 by maintainers)

Most upvoted comments

Hi again, the issue is solved for me and everything is working with fallback:true and even with CSR when using the last canary version 12.0.8-canary.20. I closed the issue here https://github.com/vercel/next.js/issues/32446

@moinulmoin

To whom it may concern, please keep the discussion to the point!

LOL what makes you think that? Hahahahah @moinulmoin