How I added a sitemap to Next.js website (next-sitemap)

Поділитися
Вставка
  • Опубліковано 23 січ 2025

КОМЕНТАРІ • 72

  • @in3135
    @in3135 2 роки тому +20

    Good video ! I like how you struggle, it is cool to see that we are not alone :)

  • @gabrielmoraes4516
    @gabrielmoraes4516 2 роки тому +1

    Awesome video! I can so relate to 4:24 LOL!

  • @joostschuur
    @joostschuur 2 роки тому +3

    I took a shot everytime you said sitemap and now I'm too drunk to code. Best time ever.

  • @A-Miracle000
    @A-Miracle000 2 роки тому +3

    wow the way you explain is just fantastic
    keep it up

  • @abdulrahmanelheyb
    @abdulrahmanelheyb 2 роки тому +3

    Wow, I tried search how can solve this problem but I not found, after when find your video I solved thank you so much 🥰

  • @testrandom1852
    @testrandom1852 2 роки тому +2

    Love the way you teach.

  • @hackneythugg
    @hackneythugg 3 місяці тому +1

    4:30 LOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOL - Only a develper would understand!

  • @Fullflexno
    @Fullflexno 2 роки тому +2

    Supercool video buddy! Love your snarky and humourus comments, keep posting pleas!=)

  • @BigPerm73
    @BigPerm73 2 роки тому +3

    😆Please keep making tutorials. I enjoyed this and you helped a ton.

    • @caleyCodeLab
      @caleyCodeLab  2 роки тому

      Thank you! Working on one right now 🍻

  • @RizaHariati
    @RizaHariati 2 роки тому +2

    Thank for the tutorial man... 😁😁

  • @nickwong1652
    @nickwong1652 2 роки тому +2

    It's cool bro~ very useful

  • @billardmelissa4608
    @billardmelissa4608 11 місяців тому +1

    Thanks to you for that , very helpful 😉

  • @tochukwungene
    @tochukwungene Рік тому +1

    I totally agree at 4:36. Never! It's frustrating!

  • @kristiyanivanov7414
    @kristiyanivanov7414 2 роки тому +2

    nice, you put some emotion into it and that's good to see - people these days seem robotic :)

  • @adityashrivastava8352
    @adityashrivastava8352 2 роки тому +2

    Thanx bro. It helped a lot.

  • @shawnlee5956
    @shawnlee5956 2 роки тому +1

    thx for sharing ~ you look very enjoying coding ~

  • @TonicCantaloupe
    @TonicCantaloupe 10 місяців тому

    Whats the process now in 2024, with the latest version of NextJS? Has anything changed?

  • @taranpreetsingh6135
    @taranpreetsingh6135 2 роки тому +1

    npm install next-sitemap --save-dev gives me an error found incompatible module. Please help

    • @caleyCodeLab
      @caleyCodeLab  2 роки тому

      What version of node are you running?

    • @taranpreetsingh6135
      @taranpreetsingh6135 2 роки тому

      @@caleyCodeLab I got v14.18.1

    • @caleyCodeLab
      @caleyCodeLab  2 роки тому

      If you throw up a repo I'll take a look when I get a chance 🏋️

    • @taranpreetsingh6135
      @taranpreetsingh6135 2 роки тому

      @@caleyCodeLab Please tell how to update node version. I have tried the command but it wasn't updating

  • @pbhalshankar5
    @pbhalshankar5 Рік тому +1

    i really love your reaction on error ....Its never straight forward...never like that......😂😅

  • @wixet17
    @wixet17 Місяць тому

    POG, thank u!!!

  • @ngocthienvu7903
    @ngocthienvu7903 Рік тому +1

    i love it, it's so funny

  • @arewabookspublishers
    @arewabookspublishers 2 роки тому +1

    Thank you for the Video, But i'm getting that error even when run build. please what should I should do? my node version is 16.14.0 while the npm 8.3.1

    • @caleyCodeLab
      @caleyCodeLab  2 роки тому

      If you're on windows you need to rename the config file. The issue is documented on their npm page.
      Your node version should be fine. But you should consider using NVM so you're flexible

  • @TK-kw2pg
    @TK-kw2pg 2 роки тому

    Why is it that mine dont generate a robots.txt and xml

  • @anjurawat9274
    @anjurawat9274 2 роки тому +2

    I have one doubt why did you install in dev dependency?

    • @caleyCodeLab
      @caleyCodeLab  2 роки тому +1

      It's a dev dependency because I only need the package at build time. You only want to add a package to none dev dependencies if it's required to execute once built

    • @anjurawat9274
      @anjurawat9274 2 роки тому +1

      @@caleyCodeLab got it. Thanks

  • @imkir4n
    @imkir4n 2 роки тому +1

    getting 404 when i go to route sitemap!!! why

    • @caleyCodeLab
      @caleyCodeLab  2 роки тому

      Difficult to say unless you sling a repo

    • @imkir4n
      @imkir4n 2 роки тому +1

      @@caleyCodeLab i managed to fix that, thank you

    • @caleyCodeLab
      @caleyCodeLab  2 роки тому +1

      Good man!

    • @ardibandilli6437
      @ardibandilli6437 2 роки тому

      @@imkir4n how you fixed that?

    • @imkir4n
      @imkir4n 2 роки тому +1

      @@ardibandilli6437 you need to place that sitemap.xml file inside public folder

  • @mariusnjikenjike3119
    @mariusnjikenjike3119 2 роки тому

    Hey man, I'm having an error after running . SyntaxError: Unexpected token 'export'
    could you please suggest any idea on how to solve it??
    Thank you for the video.

    • @caleyCodeLab
      @caleyCodeLab  2 роки тому

      Have you successfully exported and are able to run it as a static site? Sounds like config but very difficult to say

  • @burakozcan4472
    @burakozcan4472 2 роки тому

    for those who have problems
    yarn next export and cd out run
    npx http-server

  • @patitorodri
    @patitorodri Рік тому +1

    thanks mate, you are funny

  • @ayodejiatanda6197
    @ayodejiatanda6197 Рік тому +1

    thank you! they need to fix their documentation 😂

  • @adarshrathi8265
    @adarshrathi8265 2 роки тому +2

    excellent excellent
    love from india
    har har mahadev

  • @alanhettinger4051
    @alanhettinger4051 2 роки тому

    Why did you create a "sitemap" script rather than using the "postbuild" script as suggested in the docs?

    • @caleyCodeLab
      @caleyCodeLab  2 роки тому

      Because sitemap is just one post build operation. Postbuild is too generic

  • @JunoYu-z3w
    @JunoYu-z3w Рік тому +1

    R u walton raiders?

  • @MrWalrusxD
    @MrWalrusxD 2 роки тому +1

    Really nice video! I'm new to React/Next, can someone explain me what the /out is? Is that something like a live server? Can't find it on the web :)

    • @caleyCodeLab
      @caleyCodeLab  2 роки тому +1

      /out is a folder next generates when you statically export a website

  • @martineboulanger
    @martineboulanger 8 місяців тому

    Explanations are good, but please if you explain something and you want to use you webcam too, face the webcam when you speak. It is just weird to look at your side profile

  • @Its_nirbhay_gupta_
    @Its_nirbhay_gupta_ Рік тому +1

    How are you so cool dude😅

    • @caleyCodeLab
      @caleyCodeLab  Рік тому

      I'm going to assume this is some dry sarcasm

  • @biglmnztv
    @biglmnztv 2 роки тому +3

    just subbed man, do you collaborate on projects for fun? seeking a mentor 🍋

    • @caleyCodeLab
      @caleyCodeLab  2 роки тому +1

      Hey thanks 🤲 at the moment no due to my actual job being really busy. I like the idea of it in the future though !

  • @jennysquesttowellness
    @jennysquesttowellness 2 роки тому +1

    mate why are all our pages in sitemap-0.xml and not on sitemap.xml? isn't this confusing?

    • @caleyCodeLab
      @caleyCodeLab  2 роки тому

      Just a bit of config with the sitemap package. You can change it, but I've had my sites successfully crawled with it as default

    • @jennysquesttowellness
      @jennysquesttowellness 2 роки тому +2

      @@caleyCodeLab thanks so google will understand that your pages are listed in sitemap-0.xml and not on sitemap.xml, correct?

    • @gilmar770
      @gilmar770 2 роки тому

      @@jennysquesttowellness Man, i have this doubt too...

    • @caleyCodeLab
      @caleyCodeLab  2 роки тому +2

      The tool you can use to check whether your sitemap has been indexed properly is called 'google search console'. There's a tab called sitemap where it gives you all the information they have collected from you

    • @NikitaPant-tl8gw
      @NikitaPant-tl8gw Рік тому

      any solution, how to change this ?