this is so useful. I'm still new to nextjs, i'm just wondering since generateStaticParams creates the params at build time, how do we generate new static pages when we add new posts via a headless cms, for example?
@umwit17 күн бұрын
You should continue breaking this ecommerce integration down, and how we can make it our own by walking us through your own ecommerce example.
@joaoarthurbandeira18 күн бұрын
How can i make it so when i add or modify a post, the dynamic sitemap updates so it reflects this change? Does it work with on demand revalidation? So when i hit the revalidation route to add a post to my website, for example, would the server-sitemap automatically updates? I am currently struggling to do this here.
@benhaig18 күн бұрын
Can you share me on your repo? If you want I can take a look. It should revalidate without issue.
@joshbleijenberg4000Ай бұрын
Where do you host your website?
@benhaig18 күн бұрын
Depends on the type of project. For Nextjs, typically Vercel as it’s super easy and quick to setup. However it does tend to cost 4-5x just using AWS (Vercel uses AWS on the backend), so use whatever is in your budget.
@bricecalice2079Ай бұрын
Thank you very much for this video sir.
@benhaig18 күн бұрын
No worries glad it helped 😁
@aymenbachiri-yh2hdАй бұрын
Thank You
@SaiPranayAdepuАй бұрын
can i get github link to the code !!
@NeoCodingАй бұрын
your info is priceless.. thx
@madkidz8863Ай бұрын
thank you sirr your video save my dumb report
@benhaigАй бұрын
Haha glad I could help 😄
@illuminaughty666Ай бұрын
Thanks for the important insights and showing the best practices to follow in Nextjs
@psyzz77Ай бұрын
👌 What about the mobile part will slow internet like pagespeed does ? Cause its pretty easy to get 100 everywhere on desktop
@benhaig18 күн бұрын
It’s really case-by-case, however, if I am having an issue on mobile with speed for example, I’ll typically just remove JS from certain components for mobile only. Some transitions using JS may be removed on mobile and I’ll make it static instead.
@raphael6507Ай бұрын
"promosm"
@enriquepalomino66442 ай бұрын
Thanks for the video mate. I wonder how nextjs allow you to mix a frontend page ("use client") with an async function. I cannot solve that part.
@okkashaally21152 ай бұрын
Make this the only go-to channel about JavaScript performance. React(next js) is a good start
@motngay1niemvui2 ай бұрын
i cant hear anything, lol
@MrWilLeighton2 ай бұрын
in my project when i go to a page which doest exist it returns a server error instead of 404.. I saw on GH issues that next only does this in development and will 404 after build but I'd love to know why yours seems to 404 correctly Error: Page "/[slug]/page" is missing param "/wrong" in "generateStaticParams()", which is required with "output: export" config. "next": "14.1.4",
@benhaig2 ай бұрын
If you can add me to your repo I’m more then happy to clone it and take a look!
@dak93182 ай бұрын
Thanks so much! Very helpful playlist. Just a tip since you're a vim user. When deleting anything inside a round bracket, do "dib" in normal mode while the cursor is inside the bracket. It will delete everything inside :).
@benhaig2 ай бұрын
Thank you for this comment! Didn’t know that and I am now just trying to remember to use it.
@keyurgupta26852 ай бұрын
i am using pages configuration and i have setup like src/pages/api/recaptchaSubmit/route.ts but while submiting the form i am getting axios error 404 can anyone help me with this problem. rest of my code is same as the video
@karelkutchan472929 күн бұрын
Currently have the same problem, but with app router. Do you have some solution? It`s possible that we both have same problem. Thx
@devmts3 ай бұрын
Thanks! greetings from Brazil
@bizil3 ай бұрын
Thank you! Works like a charm!
@lovrozagar37293 ай бұрын
Hey you are back! Can you make a tutorial for ecommerce with nextjs + shopify/bigcommerce including auth and payment. There is really no in depth tutorials on youtube for that. Thanks
@benhaig3 ай бұрын
Yeah I still got to get to that thanks for the reminder. That’s gonna be a big series as lots to cover. Appreciate the comment 😁
@lovrozagar37293 ай бұрын
@@benhaigLooking forward to it 👍
@bricecalice20793 ай бұрын
Thank you.
@netTraverser3 ай бұрын
Couldn't you just use a server action for this?
Ай бұрын
Were you able to do it?
@netTraverserАй бұрын
@ Yes sir
Ай бұрын
@@netTraverser could you share a sample code please?
@karelkutchan472929 күн бұрын
@@netTraverser could you provide the way how you did it please?
@netTraverser29 күн бұрын
@@karelkutchan4729 check response below, or above. KZbin is weird
@bieldosprazeres3 ай бұрын
Thank you for video! simple and perfect!
@mahipindwar63823 ай бұрын
why i am getting false response ?
@benhaig18 күн бұрын
Glad it helped👍
@gustavonunezortiz23163 ай бұрын
What about 3rd fetching library parties?
@luiscarbonel19913 ай бұрын
No, They implemented their own wrapper to make fetch.
@gauravmisal46103 ай бұрын
hey ben , after some time the recaptcha gets expired and I'm unable to reset it after submit how can I reset it
@romaind48533 ай бұрын
Thank you, very clear.
@myev24214 ай бұрын
Hello brother! can you please do one for a multi vendor??
@Foused874 ай бұрын
how to do this on server side?
@Foused874 ай бұрын
helpful
@bizmich_4 ай бұрын
thank you
@SimoAissaoui-ko7jk4 ай бұрын
Cool bro keep going
@user-ty6oz3gv8z4 ай бұрын
Qwikjs will solve the issue automatically
@mluu5104 ай бұрын
awesome video! thank you for explaining this
@Envir0nmentalScience4 ай бұрын
next-site map did not work for server site map. followed your instructions and the docs to the T
@19.pritamgiri734 ай бұрын
why are you hyper ventelating bro 🤣
@thund3rd3v724 ай бұрын
Thank you very much!!!
@oguzhanacar81584 ай бұрын
Hello Ben. Just a quick correction. Dont get me wrong. Everone can create shopify partner account for free. So easily build templates free.
@bhaveshchaudhari6935 ай бұрын
You don't have to make multiple calls to firebase in generateStaticParams, page and generateMetaData. You can create a util to fetch the blog and cache its result so that you don't unnecessarily make multiple calls. import {cache} from "react" should be used if fetch is not used to cache the result
@nurmuhammetallanov91805 ай бұрын
Good job
@27sosite735 ай бұрын
thank you mate and thank you for placing it in a separate playlist ty and have a great day!
@27sosite735 ай бұрын
ty mate well explained
@hecdeveloper8525 ай бұрын
why not pnpm install? 7:18
@JavisMora99995 ай бұрын
best video
@user-yq1ix4gf9i5 ай бұрын
thanks
@mogo67985 ай бұрын
Hey thanks for the great tutorial ❤ When add the google reCaptcha, i got so many warnings on console regarding "cross-site contexts". Do you know how to clear/fix them?
@programwithalex2 ай бұрын
did you end up solving it? im having the same problem
@codezeloss5 ай бұрын
Thank you! Are you planning to drop a full series or tutorials to build headless e-commerce stores using Nextjs + Shopify? I hope so... There are not so much resources about it especially in KZbin. Thanks again!
@sohrabkhan1015 ай бұрын
When will you create project on it next js with shopify?
@muradqumizakis84286 ай бұрын
This video helped sooo much.... i wish the second part was out already!!!!!!!
@user-sd8yg1qe7o6 ай бұрын
Nice video but would have been even better if it covered the server side