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

Поделиться
HTML-код
  • Опубликовано: 9 янв 2025

Комментарии • 72

  • @in3135
    @in3135 2 года назад +20

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

  • @joostschuur
    @joostschuur 2 года назад +3

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

  • @gabrielmoraes4516
    @gabrielmoraes4516 Год назад +1

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

  • @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 🥰

  • @A-Miracle000
    @A-Miracle000 2 года назад +3

    wow the way you explain is just fantastic
    keep it up

  • @hackneythugg
    @hackneythugg 3 месяца назад +1

    4:30 LOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOL - Only a develper would understand!

  • @BigPerm73
    @BigPerm73 Год назад +3

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

    • @caleyCodeLab
      @caleyCodeLab  Год назад

      Thank you! Working on one right now 🍻

  • @testrandom1852
    @testrandom1852 2 года назад +2

    Love the way you teach.

  • @Fullflexno
    @Fullflexno 2 года назад +2

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

  • @nickwong1652
    @nickwong1652 2 года назад +2

    It's cool bro~ very useful

  • @tochukwungene
    @tochukwungene Год назад +1

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

  • @RizaHariati
    @RizaHariati 2 года назад +2

    Thank for the tutorial man... 😁😁

  • @adityashrivastava8352
    @adityashrivastava8352 2 года назад +2

    Thanx bro. It helped a lot.

  • @shawnlee5956
    @shawnlee5956 2 года назад +1

    thx for sharing ~ you look very enjoying coding ~

  • @billardmelissa4608
    @billardmelissa4608 11 месяцев назад +1

    Thanks to you for that , very helpful 😉

  • @kristiyanivanov7414
    @kristiyanivanov7414 2 года назад +2

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

  • @burakozcan4472
    @burakozcan4472 2 года назад

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

  • @pbhalshankar5
    @pbhalshankar5 Год назад +1

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

  • @ayodejiatanda6197
    @ayodejiatanda6197 Год назад +1

    thank you! they need to fix their documentation 😂

  • @TonicCantaloupe
    @TonicCantaloupe 9 месяцев назад

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

  • @adarshrathi8265
    @adarshrathi8265 2 года назад +2

    excellent excellent
    love from india
    har har mahadev

  • @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

  • @JunoYu-z3w
    @JunoYu-z3w 11 месяцев назад +1

    R u walton raiders?

  • @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

  • @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

  • @wixet17
    @wixet17 Месяц назад

    POG, thank u!!!

  • @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

  • @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

  • @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

  • @ngocthienvu7903
    @ngocthienvu7903 11 месяцев назад +1

    i love it, it's so funny

  • @TK-kw2pg
    @TK-kw2pg 2 года назад

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

  • @patitorodri
    @patitorodri Год назад +1

    thanks mate, you are funny

  • @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

  • @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

  • @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 !

  • @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

  • @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 ?