Safe Link
A component that wraps next/link
A component that wraps next/link and handles external links in the document.
Usage
Same as using <a>
.
Dynamic hrefs
Dynamic hrefs are no longer supported in Next.js App Router. Safe Link can
handle dynamic hrefs by enabling dynamicHrefs
.
Contentlayer
You can pass it as a component in <MDX>
.
Last updated on