SEO with Next.js 13 - Dynamic Sitemaps, OG Images and Metadata API

Sdílet
Vložit
  • čas přidán 28. 07. 2024
  • In this video you will learn everything you need to know about SEO with Next.js 13. All the new features such as dynamic sitemaps, Opengraph image generation and metadata API covered in the video.
    - timestamps -
    00:00 - Intro
    00:26 - Overview
    01:18 - Static Metadata
    04:37 - Dynamic Metadata
    09:41 - Templates
    12:19 - Canonical URL and Alternates
    16:38 - Other features of Metadata API
    19:55 - Robots.txt
    24:48 - Sitemap
    31:29 - Static OG Image
    32:48 - Dynamic OG Image
    37:05 - Lighthouse Score
    Source Code: github.com/batuhanbilginn/nex...
    #nextjs #typescript #seo #development #developer #sitemapxml #sitemap
  • Věda a technologie

Komentáře • 87

  • @manjeshkumarsharma
    @manjeshkumarsharma Před 7 měsíci +8

    The most important video for any developer working as a Next JS dev in any company

  • @heroiulacio2345
    @heroiulacio2345 Před rokem +7

    Thank you for speaking so slowly, I speak very little English and I understand you perfectly with the help of the subtitles, greetings from Venezuela

    • @makrdev
      @makrdev  Před rokem

      I’m glad you find it helpful!

  • @lottexy
    @lottexy Před 10 měsíci +1

    THANK YOU, YOU ARE AWESOME. I deployed my website and wasn't getting indexed by Google. I tried reading nextJS document on SEO but damn, it's so confusing... so many examples, I just want to deploy my site and make it searchable lol such a simple thing and they have so much explanation. They should feature your video, you explained it all so well and in simple terms. Thanks again!

  • @mohammadmalek5042
    @mohammadmalek5042 Před 11 měsíci

    Thank you for speaking fluently ❤
    This video is very helpful

  • @yauul
    @yauul Před rokem +4

    Thank you for the video! I have been struggling with the dynamic opengraph part for a while now. This video definitely solve that part for me. You got a subscriber friend. Keep it going!

    • @makrdev
      @makrdev  Před rokem

      I’m glad it solved your problem 🤞 Thanks!

  • @loydcose2780
    @loydcose2780 Před 11 měsíci +2

    You're trully great man! keep it up and thank you so much!

  • @doguarunbayraktar
    @doguarunbayraktar Před 3 měsíci +1

    Ya cok tesekkurler boyle guzel bilgilendirmen icin. Amerikadan selamlar, sevgiler.

  • @SanchitArora-my6re
    @SanchitArora-my6re Před 3 měsíci +1

    The best and most helpful video related to meta tags😍❣

  • @baljka17
    @baljka17 Před 6 měsíci

    What a gem bro, you are a life saver. Keep up your good work!

  • @kamrant8915
    @kamrant8915 Před 2 měsíci

    Really useful tutorial. Thanks a lot

  • @borisbarzotto5785
    @borisbarzotto5785 Před rokem

    nice work makrdev! Greetings from Venezuela!!

  • @javadrip
    @javadrip Před rokem +9

    One of the few videos that ACTUALLY tackles the important yet often overlooked stuff! Thank you! And I've subscribed!

  • @paulmothapo
    @paulmothapo Před 8 měsíci

    Thank you for knowledge brother.

  • @sahilverma_dev
    @sahilverma_dev Před 11 měsíci

    DAMN bro such a great and informative video you saved my time. keep it up

  •  Před 10 měsíci +1

    Exactly what I was looking for. Thank you. Instant follow 👍

  • @mdshohidulislam5836
    @mdshohidulislam5836 Před 11 měsíci

    That was really good thanks, *Subscribed*

  • @nicksmith5306
    @nicksmith5306 Před rokem +1

    Great video thank you as I was struggling with SEO in Next13 👍 *Subscribed*

    • @makrdev
      @makrdev  Před 11 měsíci

      Glad it was helpful!

  • @nikolayt.5054
    @nikolayt.5054 Před 6 měsíci

    Wow! Went through this video in January 2024! Your presentation is excellent! Thank you!

    • @makrdev
      @makrdev  Před 6 měsíci

      Glad it was helpful!

  • @dogfrogfog
    @dogfrogfog Před 11 měsíci

    Love the video. Really deep and visual

    • @makrdev
      @makrdev  Před 11 měsíci

      Thank you so much!

  • @Fuk5-
    @Fuk5- Před rokem +1

    great video, thanks mate

  • @exploit.6848
    @exploit.6848 Před rokem

    Amazingg video very helpful

  • @ibrahimacanada
    @ibrahimacanada Před 6 měsíci

    Very helpfull thanks ! i recommend !!

  • @samyeksonawane
    @samyeksonawane Před 10 měsíci +1

    Loved your Content. Subscribed :)
    It would be great if you create a tutorial on creating this nextjs blog!

  • @codewithguillaume
    @codewithguillaume Před 10 měsíci +1

    Hello my friend. This is an amazing video, please continue to teach online :) Of course I subscribed :)

    • @makrdev
      @makrdev  Před 10 měsíci

      Hey there! Thank you 🙏 I’m working on a project at the moment I’ll be posting new videos soon ✌️ I subscribed your channel as well!

  • @Nextjs13-kq5cm
    @Nextjs13-kq5cm Před rokem +1

    Dope! :)

  • @wassup102
    @wassup102 Před 8 měsíci

    thank u

  • @eavoutdom190
    @eavoutdom190 Před 10 měsíci

    It will be great if you make a e-commerce course with this practice!

  • @cagataysafak8619
    @cagataysafak8619 Před 7 měsíci +1

    Thanks for clean explanation. In the dynamic sitemap generation, we generate a new ```lastModified``` parameter each time, isn't this problematic? I mean, I think we should write the actual last modified timestamp for each URL.

  • @burger23II
    @burger23II Před 6 měsíci

    Thank you for this amazing tutorial. My question is how do we set up fallback og images when we use this method

  • @phieuantrinh2273
    @phieuantrinh2273 Před 10 měsíci

    hello my friend from Viet Nam. Your video help me a lots for my project. But i'm just a newbie and i have a question.
    For example, if i add a new post, will the sitemap automatically update or i must rebuild the project
    Thank you very much 😍

  • @basith237
    @basith237 Před rokem +1

    nice

  • @SamHartmannCom
    @SamHartmannCom Před 7 měsíci

    30:50 Thanks a lot for showing how to generate sitemaps dynamically. It's so badly documented in Next.js

  • @user-ej3ok5en5f
    @user-ej3ok5en5f Před rokem

    Amazing video☺☺. Can you upload next 13 crash course video?

    • @makrdev
      @makrdev  Před rokem

      I’ll be doing for Supabase first but I’ll definitely create for Next.js 13 too. Do you have anything specific in your mind that you want to learn?

  • @SamHartmannCom
    @SamHartmannCom Před 7 měsíci

    Is it possible to generate a sitemap index and sub-sitemaps?

  • @bora6277
    @bora6277 Před 11 měsíci

    How can i use priority and changefreq in dynamic sitemap?

  • @user-zf8bp7sj8z
    @user-zf8bp7sj8z Před rokem

    hello sir,
    what about the new post after building the nextjs app.
    If I add new blog post after building the nextjs app with static genaration.
    Can you please give me this ans.

  • @EliandroViana-ty3hl
    @EliandroViana-ty3hl Před rokem +1

    Thank you for your awesome video! whats you think about Drizzle ORM? Can u create a tutorial with supabase + Drizzle integration?

    • @makrdev
      @makrdev  Před rokem

      Thank you! Yeah, I’ll create a video about Drizzle soon 🤞

  • @Sam-wp2zh
    @Sam-wp2zh Před 11 měsíci +1

    Nice job, Sitemap: How do you deal with sitemap limitations: 50Mb and less than 50,000 URLs? We have over 300,000 pages.

    • @makrdev
      @makrdev  Před 10 měsíci

      You can create different sitemaps.

  • @AndriyNosov
    @AndriyNosov Před rokem +2

    Hi, thanks for your tutorial. Can you explain how can I generateMetadata on my [slug] page, if it's a client page? In this page I use useEffect and useState...

    • @makrdev
      @makrdev  Před rokem

      I think you can return legacy Head component with related metadata however I do not recommend making the whole page client component. You should divide interactive parts into separate client components and put it in a server component.

  • @QuarterBite
    @QuarterBite Před 9 měsíci

    I still don't understand about sitemap. So I have to rebuild every time I want to update sitemap, even though I use a dynamic sitemap?

  • @gabrielherrera7914
    @gabrielherrera7914 Před 9 měsíci

    What's the name of that tool where you can see the web perfomance and SEO score?

  • @franciskintungi
    @franciskintungi Před rokem

    Great work my guy. I have noticed some change on the opengraph-image.tsx file from the documentation. Can you please leave a comment here to reflect the changes. Thanks!

    • @makrdev
      @makrdev  Před rokem +1

      Thanks 🙏 I’ll check it out 🤞

  • @macpakkapon9237
    @macpakkapon9237 Před rokem

    Hi, Thanks for the tutorial video this is very helpful. I'm still struggle with implementing opengraph-image.tsx file with searchParams. since it's a server component I'm struggle to find ways to directly access searchParams. Any suggestion?

    • @makrdev
      @makrdev  Před rokem

      Can you join our discord? I can help you over there 👍

  • @alperengultekin9857
    @alperengultekin9857 Před 10 měsíci

    Hi Batuhan I reach you from Turkiye. Firstly "Nasılsın?", is there any way to keep our site map up to date, when I add a new product or category. I need to redeploy my project to update sitemap. Like revalidate = 0 ;

  • @srirams60
    @srirams60 Před 10 měsíci

    Hey bro Make a video about Atomic Structure in Next Js

  • @user-eu3ur2ft6o
    @user-eu3ur2ft6o Před 8 měsíci

    it's seem dynamic sitemap was generated at build time, if we create new post/category sitemap will not update then next build right?

    • @makrdev
      @makrdev  Před 8 měsíci

      When you create dynamic sitemap it will fetch the latest data every time you refresh the sitemap. So, when you add new page it will be displayed in the list.

  • @aldofematWorkout
    @aldofematWorkout Před 8 měsíci

    HI Sir, Can I use the same sitemap with the páges directory?

    • @makrdev
      @makrdev  Před 8 měsíci

      Yeah as far as I remember they were same. Even if they are not, the idea is same.

  • @anowarulhassan5117
    @anowarulhassan5117 Před 10 měsíci

    31:11 after build, the sitemap getting freeze and not populating new data at sitemap. It is getting freeze with the data till the yarn build. Please raise this issue with nextjs. It is not a good practice that I have to access my server and need to run yarn build after every new post.... Please🙏🙏🙏🙏🙏🙏🙏🙏

  • @user-ev5ll9tu6u
    @user-ev5ll9tu6u Před 8 měsíci

    section about sitemap makes no sense, to geerate sitemap i need your blogs?

  • @RajeshSingh-nu1iz
    @RajeshSingh-nu1iz Před rokem

    How can we use google fonts in og image creation with tailwindcss, pls share the info

    • @makrdev
      @makrdev  Před rokem +1

      You just need to import the font you need. Check the docs and you will find an example.

  • @akarshanmishra2351
    @akarshanmishra2351 Před rokem

    hey man how do I go about making a dynamic sitemap that updates everytime new content from sanity cms is added ?

    • @makrdev
      @makrdev  Před rokem

      Just create a server-side sitemap. It will fetch new posts on every visit you or Google make.

  • @logannguyen9512
    @logannguyen9512 Před rokem

    What is that application to check your website at 0:50?

    • @makrdev
      @makrdev  Před rokem

      Pagespeed Insgights from Google

  • @amaechinaikechukwu8266

    How can i change image in metadata please

    • @makrdev
      @makrdev  Před rokem

      You need to create OG image. You can see the details in the related part.

  • @KiloSierra1
    @KiloSierra1 Před 5 měsíci

    Only useful if you're using the app folder

  • @topnatop
    @topnatop Před 5 měsíci

    ngo

  • @farhad__adhir4570
    @farhad__adhir4570 Před rokem +1

    You are just too Awesome,,Sir..
    I learned a lot from this Video..I appreciate your hard work..Thank you so much again..
    Take love from Bangladesh..🤍🤍..

    • @makrdev
      @makrdev  Před rokem

      Thank you Farhad! I’m glad you liked ❤️