francis.miko
francis.miko
TTCTheo's Typesafe Cult
Created by francis.miko on 8/31/2023 in #questions
How does next13's /app routing api integrate Jest testing?
The api routing style I use is export async function POST(), but it is not like an endpoint in /page, which makes it difficult for me to simulate this service as usual
3 replies
TTCTheo's Typesafe Cult
Created by francis.miko on 8/13/2023 in #questions
How Next.js 13 middleware is used as error handling?
My Next is currently used as a back-end framework, and the middleware only processes related api files. Now I have implemented the function of uniformly detecting apiKey, but I also want to add an error capture function for all apis. How to achieve it?
8 replies