Astro Server Island Example: YouTube Videos

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

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

  • @jitxhere
    @jitxhere Месяц назад +5

    Amazing video Chris. Easy to understand and follow as usual.
    Time to modify my code to include server islands.

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

      Awesome! I know I went a little faster this time, so I was hoping that was okay. Glad it was right for you.

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

      @CodinginPublic I could totally follow up. For me it was perfect.

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

      @@CodinginPublic I think the faster pace works great for these kinds of "feature showcase" videos.

  • @cryptot3ch
    @cryptot3ch Месяц назад +2

    Awesome bro! Love your videos!

  • @NeverCodeAlone
    @NeverCodeAlone 27 дней назад

    Perfect video.

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

    Is it also possible to implement client-side scripts in server islands? For example to make a modal window to show the player of a video.

    • @CodinginPublic
      @CodinginPublic  Месяц назад +1

      No, great point. You cannot include scripts. I’m guessing this is a security thing? Not sure.

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

    do you need to install the node SSR package to work on your local? I am testing with v5 and seems like working fine on my local.

  • @web-journey
    @web-journey Месяц назад +1

    Amazing! So, the server island in Astro helps us provide a fallback while the actual data is being fetched, avoiding page freezes and making the page load faster, similar to Suspense in Next.js?

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

      Yeah! Same general outcome, different method.

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

    Hi! Thank you for the video. I wonder if server islands can find use case in search functionality.

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

      Are you asking if that data will be indexed by search engines? Yes and no. My understanding is that search engines crawl sites in two ways, one quickly and without JS and once less frequently but running client side JS. You’re safest to include all necessary content for SEO on build and NOT in server islands.

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

      @@CodinginPublic Rather, I am referring to an in-site search engine implementation that uses a server island to render the results. I don't know if that makes sense :)

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

    The problem is how to manage data changes like a product change in the db. Even if you have a server island in that page Astro cannot generate just that page you will have to rebuild the whole site. In the end isn’t it better to server render everything and use cache for performance?

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

      Yeah, completely depends on the page. For instance, my homepage for coding in public BASICALLY has no changing parts. I might occasionally add a project, but it’s all static. For some pages, definitely a better approach to go all SSR. I’d like them to give thought to caching the server islands but maybe that’s out there and I don’t know about it. Glad Astro is starting to get more robust rendering options, but none of them is always right. Thoughts?

    • @signalkuppe
      @signalkuppe Месяц назад +1

      @ I think we should avoid server whenever possible so I tend to use ssg. Unfortunately Astro is missing a crucial feature to me: the ability to select which pages to build. Regenerating all the website just because a product price has changed is crazy. Hope we get this feature soon

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

    Thanks! Nice tutorial. I wanted to do this on my blog in astro and I had no idea till now. Thanks for sharing. Maybe you can make a tutorial with migrating from astro 4 to astro 5.

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

      Awesome. Yes! Planning on a tut. There’s not THAT much to migrate, depending on your needs. I’ll consider it!

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

    Hi Chris, would you mind sharing the name of this black VS Code theme used in this video?

    • @CodinginPublic
      @CodinginPublic  Месяц назад +1

      I think it’s called “Vercel” or something like that?

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

      @@CodinginPublic Thank you. Found it.
      For future reference, it's VSCode Vercel Theme by Gabriel Moreno.

    • @CodinginPublic
      @CodinginPublic  25 дней назад

      Thanks!

  • @RobertMcGovernTarasis
    @RobertMcGovernTarasis Месяц назад +3

    Wish I could afford your course. But as an unemployed (slowly recovering) drunkard it’s outside of my reach for now.

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

    In order for this to be useful they need to provide a way to deploy he FE to a CDN and the backend to a separate provider

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

      Not sure I’m following? You can cache the static build on a CDN. Why would you need a separate provider for the island? I must not be understanding?

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

    Don't you plan to extend it with an option to filter videos from given words through AI by coincidence? 😅 Would be amazing 🎉