Astro Fixed Environment Variables!!

  Рет қаралды 2,882

James Q Quick

James Q Quick

Күн бұрын

Пікірлер: 21
@hxxzxtf
@hxxzxtf 7 ай бұрын
🎯 Key points for quick navigation: 00:00 *🚀 Astro has fixed environment variables, making it easier to work with them.* 00:49 *🔒 Environment variables can now be accessed at import.meta.EnV, but this has limitations such as no validation of properties or types.* 01:32 *💡 T3 dnv is a library that allows defining Zod schema for environment variables in Next.js, but Astro now has a built-in solution.* 02:16 *📁 The experimental Astro EnV module allows defining and accessing environment variables, with different use cases for client-side and server-side access.* 03:27 *🔑 The get secret function can be used to programmatically figure out what an environment variable is, but it's not necessary for most use cases.* 05:02 *🎉 The new EnV module in Astro makes working with environment variables more efficient and easier to manage.* Made with HARPA AI
@DennisIvy
@DennisIvy 7 ай бұрын
Saving this so I can watch later :)
@adammatthiesen6203
@adammatthiesen6203 7 ай бұрын
Hey James! at 4:50 The reason the public/private prefix is no longer needed, is due to the switch to utilizing Vite's loadEnv() function with a empty prefix to allow grabbing ANY of the variables. Florian actually based it off how i was doing it between my different integrations because i had been using loadEnv directly and haven't had issues. I may have been on a call with Florian debugging astro:env inside of my StudioCMS playground.... 😅
@JamesQQuick
@JamesQQuick 7 ай бұрын
hahaa good to know. Thanks for clarifying!
@CyberTechBits
@CyberTechBits 7 ай бұрын
Thank James! I've been trying to decide what framework (literally for years) to build with as I want to take my vanilla js app from enterprise to SaaS. Decision finally made! Astro! Next question is do I move to Svelte for the client side PWA or stick with vanilla...hmmm. Thanks again! Great channel!
@JamesQQuick
@JamesQQuick 7 ай бұрын
haha there are so many options. Astro is great though. Especially being able to leverage other UI frameworks with it. Thanks for watching!
@anasouardini
@anasouardini 7 ай бұрын
Astro team is always alert to the user's problems.
@JamesQQuick
@JamesQQuick 7 ай бұрын
They're so good at that! That's why I'm so optimistic about them!
@guiltyconscious
@guiltyconscious 7 ай бұрын
Good video but not trying to learn another library for a just one specific task tbh
@aiamfree
@aiamfree 7 ай бұрын
interesting
@JamesQQuick
@JamesQQuick 7 ай бұрын
Any other thoughts? Do you find it useful?
@aiamfree
@aiamfree 7 ай бұрын
@@JamesQQuick Insightful more so than useful as I am building a framework of my own. So yea, it’s quite insightful as I’ve been wondering about this exact type of problem and how I could handle it should I also have a server side architecture. It was great timing in my research!
@JamesQQuick
@JamesQQuick 7 ай бұрын
@@aiamfree Ah nice. Can't wait to see what you come up with!
@theklr
@theklr 7 ай бұрын
Why can’t vercel be cool like this with next 😭😭😭
@JamesQQuick
@JamesQQuick 7 ай бұрын
haha if only! It's such a good feature
@yehudz
@yehudz 7 ай бұрын
You're thumbnails are so cringe man, much love for your video though
@JamesQQuick
@JamesQQuick 7 ай бұрын
Thanks for the feedback. What would you change?
@yehudz
@yehudz 7 ай бұрын
@@JamesQQuick Be more natural, videos are great but it's not a fortnite channel you know
@JamesQQuick
@JamesQQuick 7 ай бұрын
@@yehudz I'll keep that in mind!
Astro Actions: the missing server action library
19:28
Astro
Рет қаралды 14 М.
Content Collections API Deep Dive
53:06
Coding in Public
Рет қаралды 17 М.
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
MUCH BETTER Performance with Astro Server Islands
19:48
James Q Quick
Рет қаралды 4,7 М.
Using Environment Variables with Astro
9:53
Jamie Barton
Рет қаралды 1,6 М.
UI Library Creator by Shuffle
2:30
Dawid Andrzejewski
Рет қаралды 1,3 М.
Supastarter - The Ultimate Starter Kit
1:09:11
James Q Quick
Рет қаралды 1 М.
HTMX and Astro Are An Amazing Combo!
17:50
James Q Quick
Рет қаралды 14 М.
Validated ENV vars in Astro
8:09
Coding in Public
Рет қаралды 1,5 М.
Astro Together 2024 Keynote
1:11:20
Astro
Рет қаралды 3,2 М.
What are Environment Variables, and how do I use them? (get,set)
4:49
Elian van Cutsem - All Things Astro - DevWorld 2024
20:33
JSWORLD Conference
Рет қаралды 1,5 М.
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН