Next.js Discord

Discord Forum

<Link> tag dosn't redirect me.

Answered
Lionhead posted this in #help-forum
Open in Discord
LionheadOP
import Link from "next/link";

export default function Home() {
  return (
      <div className="relative h-screen w-full bg-slate-950">
          <div
              className="absolute bottom-0 left-0 right-0 top-0 bg-[linear-gradient(to_right,#4f4f4f2e_1px,transparent_1px),linear-gradient(to_bottom,#4f4f4f2e_1px,transparent_1px)] bg-[size:14px_24px] [mask-image:radial-gradient(ellipse_60%_50%_at_50%_0%,#000_70%,transparent_100%)]"></div>
          <Link href="/posts" className="bg-slate-200 p-8" prefetch={false}>
              Przejdz do postów
          </Link>
      </div>
  );
}
Answered by Lionhead
Ah, it was my background fault.
View full answer

2 Replies

LionheadOP
I have already added prefetch={false}, bcs i saw it on reddit but it doesn't help me.
LionheadOP
Ah, it was my background fault.
Answer