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

Поділитися
Вставка
  • Опубліковано 2 гру 2024

КОМЕНТАРІ • 71

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

    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.

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

    4:30 LOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOL - Only a develper would understand!

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

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

    Love the way you teach.

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

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

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

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

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

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

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

    Thanks to you for that , very helpful 😉

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

    It's cool bro~ very useful

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

    Thank for the tutorial man... 😁😁

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

    Thanx bro. It helped a lot.

  • @BigPerm73
    @BigPerm73 Рік тому +3

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

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

      Thank you! Working on one right now 🍻

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

    thx for sharing ~ you look very enjoying coding ~

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

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

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

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

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

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

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

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

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

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

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

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

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

  • @ngocthienvu7903
    @ngocthienvu7903 10 місяців тому +1

    i love it, it's so funny

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

    thank you! they need to fix their documentation 😂

  • @anjurawat9274
    @anjurawat9274 Рік тому +2

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

    • @caleyCodeLab
      @caleyCodeLab  Рік тому +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 Рік тому +1

      @@caleyCodeLab got it. Thanks

  • @JunoYu-z3w
    @JunoYu-z3w 10 місяців тому +1

    R u walton raiders?

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

    thanks mate, you are funny

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

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

  • @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 Рік тому

      @@imkir4n how you fixed that?

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

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

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

    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 Рік тому +1

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

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

      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

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

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

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

    • @caleyCodeLab
      @caleyCodeLab  Рік тому +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 ?