diff --git a/components/login-button.tsx b/components/login-button.tsx index 54207f7..2d49553 100644 --- a/components/login-button.tsx +++ b/components/login-button.tsx @@ -25,7 +25,7 @@ export function LoginButton({ variant="outline" onClick={() => { setIsLoading(true) - signIn('github') + signIn('github', { callbackUrl: `/` }) }} disabled={isLoading} className={cn(className)} diff --git a/middleware.ts b/middleware.ts index af5b703..4afe145 100644 --- a/middleware.ts +++ b/middleware.ts @@ -1,5 +1 @@ export { auth as middleware } from './auth' - -export const config = { - matcher: ['/'] -}