Комментарии:
is this an AI talking ? this cadence is so bizarre.
ОтветитьThank you very much for this video, it was exactly what I was looking for
Ответитьcould someone please explain to me this note from the docs?
"You should not fetch an API Route from getStaticProps or getStaticPaths. Instead, write your server-side code directly in getStaticProps or getStaticPaths (or call a helper function)."
I still do not understand why I can only call an external API from all these pre-rendering method but not internal API route from within.
your video solved my problem, thank you
Ответитьdeos the "POST" req will change on the original comments array or it will back to original state when i refresh the page
Ответитьnice
ОтветитьThis was incredible!!!
ОтветитьThat's a gerat tutorial, thank you very much. How would you call an external service by sending a POST request to the server, add an authentication header and forward it to the external service? For example you have a form that the client fills out, sends the form data to the server, the server adds the authentication with a bearer token to the header and from there it sends the request to the actual endpoint.
ОтветитьWhen I used relative API URL it doesn't work for me, only absolute URLs will work. anyone have any idea what I am missing?
ОтветитьI am so glad that i started studying next js with your course, it makes process so easy!! Thank you so much my man
ОтветитьLets say you wanted the use the submitComment rest request somewhere else in your code (i.e. not on CommentsPage), organizationally, what is the best place to put submitComment? In /api/comments.js?
Ответить@codeelolution i am getting only id in response and not text... Can you help mw with that, Do i need to install any other things?
ОтветитьThank you so much! You just safed my project! :D
Ответитьmy post request never gets a response ... it's stays on "pending" ... Any tips ?
ОтветитьNow I got how it works and you just saved me. Thanks!
ОтветитьTo view the submitted comment on the UI instead of console.
Replace console.log(data) with setComments([data,...comments])
bro which please tell me the theme name
Ответитьi am getting only id in rersponse and not text !!! can some one help
??
VERY NICE!
ОтветитьWhy do we need this API functionality?
Ответитьif we are going to use api routes from client code, whats the point of using getServerSideProps?
and is it possibile to use getServerSideProps with post request?
but the comment is not saved in the json file.
ОтветитьBest videos.🥰
ОтветитьI've learned so much from you, much love!!!
Ответить