werz0xff
werz0xff
TTCTheo's Typesafe Cult
Created by werz0xff on 9/20/2023 in #questions
Vercel responding with 405 for a api route
logs:
Prisma has detected that this project was built on Vercel, which caches dependencies. This leads to an outdated Prisma Client because Prisma's auto-generation isn't triggered. To fix this, make sure to run the `prisma generate` command during the build process.
Prisma has detected that this project was built on Vercel, which caches dependencies. This leads to an outdated Prisma Client because Prisma's auto-generation isn't triggered. To fix this, make sure to run the `prisma generate` command during the build process.
23 replies
TTCTheo's Typesafe Cult
Created by werz0xff on 9/20/2023 in #questions
Vercel responding with 405 for a api route
it is a pretty tricky issue tbh, basically the API routes that uses the prisma client get blockedon vercel if you don't generate the schema types, using "prisma generate"
23 replies
TTCTheo's Typesafe Cult
Created by werz0xff on 9/20/2023 in #questions
Vercel responding with 405 for a api route
ty anyway
23 replies
TTCTheo's Typesafe Cult
Created by werz0xff on 9/20/2023 in #questions
Vercel responding with 405 for a api route
fixed it
23 replies
TTCTheo's Typesafe Cult
Created by werz0xff on 9/20/2023 in #questions
Vercel responding with 405 for a api route
i've forget that vercel provide logs
23 replies
TTCTheo's Typesafe Cult
Created by werz0xff on 9/20/2023 in #questions
Vercel responding with 405 for a api route
will do
23 replies
TTCTheo's Typesafe Cult
Created by werz0xff on 9/20/2023 in #questions
Vercel responding with 405 for a api route
No description
23 replies
TTCTheo's Typesafe Cult
Created by werz0xff on 9/20/2023 in #questions
Vercel responding with 405 for a api route
the issue take place using vercel
23 replies
TTCTheo's Typesafe Cult
Created by werz0xff on 9/20/2023 in #questions
Vercel responding with 405 for a api route
also it does work fine locally
23 replies
TTCTheo's Typesafe Cult
Created by werz0xff on 9/20/2023 in #questions
Vercel responding with 405 for a api route
same issue still
23 replies
TTCTheo's Typesafe Cult
Created by werz0xff on 9/20/2023 in #questions
Vercel responding with 405 for a api route
i even downgraded to the 12 version
23 replies
TTCTheo's Typesafe Cult
Created by werz0xff on 9/20/2023 in #questions
Vercel responding with 405 for a api route
im not using the src folder as well
23 replies
TTCTheo's Typesafe Cult
Created by werz0xff on 9/20/2023 in #questions
Vercel responding with 405 for a api route
No description
23 replies
TTCTheo's Typesafe Cult
Created by werz0xff on 9/20/2023 in #questions
Vercel responding with 405 for a api route
i have tried a simple different route and its the same issue
23 replies
TTCTheo's Typesafe Cult
Created by werz0xff on 9/20/2023 in #questions
Vercel responding with 405 for a api route
nope im on pages
23 replies
TTCTheo's Typesafe Cult
Created by werz0xff on 9/11/2023 in #questions
Nextjs middleware being ignored
i think its a prefetch thing, because if I do a full refresh on the dashboard route it works fine
6 replies
TTCTheo's Typesafe Cult
Created by werz0xff on 9/11/2023 in #questions
Nextjs middleware being ignored
it is custom function
function redirect(url: string, req: NextRequest) {
return NextResponse.redirect(new URL(url, req.url));
}
function redirect(url: string, req: NextRequest) {
return NextResponse.redirect(new URL(url, req.url));
}
6 replies