skip to Main Content

Reactjs – nextjs 13.5 link is refreshing page

import Link from "next/link"; import React from "react"; const Navbar = () => { return ( <div> <ul className="flex m-10 gap-10"> <Link href="/"> <li>Home</li> </Link> <Link href="/signin"> <li>SignIn</li> </Link> <Link href="/signup"> <li>SignUp</li> </Link> <Link href="/profile"> <li>Profile</li> </Link> </ul> </div> );…

VIEW QUESTION

Javascript – NextAuth expression is not callable error

So I was learning authentication in Next.js using next-auth. I followed the documentation and here is my app/api/auth/[...nextauth]/route.ts code import NextAuth, { type NextAuthOptions } from "next-auth"; import GithubProvider from "next-auth/providers/github"; import CredentialsProvider from "next-auth/providers/credentials"; export const authOptions: NextAuthOptions =…

VIEW QUESTION
Back To Top
Search