Validated ENV vars in Astro

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

КОМЕНТАРІ • 7

  • @Nextrix
    @Nextrix 7 днів тому +1

    Another great video! Here is a video idea I would suggest covering, specifically related to the Content Collections REFERENCES in 5.0, outside what was covered in your last video. It might help others who are using Content Collections in Astro 5.0 for simple relational data structures, than just blogs or simple page content. I had major issues with this functionality as it seems to rely heavily on the getEntry() or getEntries() functions to pull referenced content, specifically in a component reference implementation. You cannot use Content Collections to pull Referenced data in one big type safe object (unless I missed something), so I had to revert back to a previous method which fulfilled this objective and defined my own type definitions for it. The good thing about Astro is it's robust enough to allow this sort of custom integrations to work within it.

  • @beto5720
    @beto5720 7 днів тому +2

    Nice, cant wait for 5.0, feels like decades since they released the beta

  • @OlivierMaghe
    @OlivierMaghe 6 днів тому

    Thanks for the video. Is this a good way to secure some routes? By asking (or getting via URL) a Password and comparing it with a secret_password stored in the .env?

  • @gherardivictor
    @gherardivictor 6 днів тому

    Nice video.
    Chris, I contacted you by email about the price of the learn astro course.

  • @WildBillAwesome
    @WildBillAwesome 7 днів тому

    Genuine question: is it a meme to call them "environmental" instead of "environment" variables and I'm just the last one to find out about the joke? 😅I seem to see people call them that a lot for some reason
    Either way, your videos are super helpful and your teaching style is perfect. Thanks a TON for all the Astro content you put out

  • @eldarcfrov8707
    @eldarcfrov8707 6 днів тому +1

    Astro consistently introduces breaking changes, I wish it was more stable. Really hard to keep up. Not talking about this specific update, rather in general.

    • @CodinginPublic
      @CodinginPublic  6 днів тому

      Huh, what’s breaking specifically for you? I haven’t had that experience, but you may have more advanced uses than me.