Closed ck18sss closed 11 months ago
Getting more type errors unfortunately, when trying to deploy.
Kinde changed some things. I just used their example repo and made a few changes. kinde-nextjs-app-router-starter-kit
Things to take notice:
const user = await getUser();
import { handleAuth } from "@kinde-oss/kinde-auth-nextjs/server";
export const GET = handleAuth();
I am getting an error in kindeAuth/route.ts when I deploy to Vercel.
Failed to compile. -- 13:43:41.548 | 13:43:41.549 | src/app/api/auth/[kindeAuth]/route.ts 13:43:41.549 | Type error: Route "src/app/api/auth/[kindeAuth]/route.ts" has an invalid export: 13:43:41.549 | "Promise<(req: any, res: any) => any>" is not a valid GET return type: 13:43:41.549 | Expected "void \| Response \| PromiseIt works fine in the local environment. Here is my repository: https://github.com/ck18sss/InquireAI_v2
This is the code in kindeAuth: