Next.js 13 API Route Handlers FULL CRUD

Next.js 13 API Route Handlers FULL CRUD

Native Notify

1 год назад

26,789 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

John Harris
John Harris - 14.09.2023 05:57

do you have any links or references to testing route handlers with jest?

Ответить
herman syam
herman syam - 06.09.2023 18:36

How to create prompt?

Ответить
herman syam
herman syam - 06.09.2023 18:35

Thanks a lot

Ответить
Makise Takashi
Makise Takashi - 01.09.2023 19:40

next js 13 really bad, cant get req.body, it force to use req.json

Ответить
Sandesh Katwal
Sandesh Katwal - 26.08.2023 15:58

It was nice of to introduce to us your awesome tool but we would love it if we could use it straightaway without login and stuff because I, personally, was fed up searching for the solution. Anyway, your tutorial helped!

Ответить
Влад
Влад - 28.07.2023 16:32

Ty, bro. I was satysfied by u'r solution

Ответить
Emil Soreng
Emil Soreng - 14.07.2023 10:24

Thank you so much 😁

Ответить
Brian Dacallos
Brian Dacallos - 10.07.2023 17:55

bro it works thank you, now i can continue

Ответить
FranK47
FranK47 - 07.07.2023 04:40

You are singe handedly responsible for saying my career and I can't thank you enough

Ответить
FranK47
FranK47 - 06.07.2023 17:08

Hahahahah oh my god i relate to the first 15 seconds of your videos so much

Ответить
Light
Light - 05.07.2023 20:40

is this still up relevant? or did things change ?

Ответить
Ibrahim EL MHADRI
Ibrahim EL MHADRI - 04.07.2023 23:27

I write this before watching the video.
I just spent 2 days trying to figure this out... I really hope this will help me make things work !

Ответить
Brian
Brian - 04.07.2023 01:21

thanks for the video, was struggling to get my post method to work and this resolved it!

Ответить
Mike
Mike - 03.07.2023 03:24

Thanks, too useful!

Ответить
Oliver Wolfson
Oliver Wolfson - 02.07.2023 06:58

Useful.

Ответить
Dyktator Wood
Dyktator Wood - 24.06.2023 14:52

Where is error handling and sending statuses other than 200?

Ответить
Yorch
Yorch - 13.06.2023 18:13

Thanks a lot for this video <3

Ответить
flawless_noob
flawless_noob - 09.06.2023 15:28

I've tried signing up to nextchat but Global Prompt Library is not showing... How can I fix it?

Ответить
Tom Newton
Tom Newton - 31.05.2023 23:25

Hi thanks for the video. If this still isn't working for those reading, you can handle the OPTIONS request directly in your api route.ts file. Basically just include the same code shown in the video by defining a new options function:

export async function OPTIONS(request: Request) {
const response = new NextResponse(null);

response.headers.set("Access-Control-Allow-Origin", "*");
response.headers.set(
"Access-Control-Allow-Methods",
"GET, POST, PUT, DELETE, OPTIONS"
);
response.headers.set(
"Access-Control-Allow-Headers",
"Content-Type, Authorization"
);
response.headers.set("Access-Control-Max-Age", "86400");

return response;
}

For some reason, putting it in the middleware didn't work for me. Will come back and change this when Next.js fix the issue.

Thanks,
Tom

Ответить
Nikhil Mohite
Nikhil Mohite - 30.05.2023 16:39

nextjs documentation in this regard is very less:(

Ответить
Joydeep Bhowmik
Joydeep Bhowmik - 18.05.2023 16:36

Bro ca you please tell me where to get the lastest documents. in their official website all documentation are old

Ответить
Victor Kimura
Victor Kimura - 16.05.2023 23:05

It's now $20 per month after trial. :(

Ответить
Thor
Thor - 14.05.2023 11:42

damn

Ответить
Raphael Carvalho
Raphael Carvalho - 06.05.2023 17:58

thank you very much!!! you saveme a lot of time!

Ответить
Juve Tus
Juve Tus - 06.05.2023 16:17

When trying to deploy in Vercel I’m getting error and can’t deploy when using route handler in a page

Ответить
Asim AlQasmi
Asim AlQasmi - 02.05.2023 17:14

Really awesome content. Thanks

Ответить
Mask Man
Mask Man - 02.05.2023 14:38

Amazing and awesome tutorial 😘👍😎🦾😍🤩

Ответить