Astro Fixed Environment Variables!!

  Рет қаралды 1,764

James Q Quick

James Q Quick

17 күн бұрын

Never struggle with environment variables again!
Astro 4.10 Variables - astro.build/blog/astro-4100/#...
*Newsletter*
Newsletter 🗞 - www.jamesqquick.com/newsletter
*DISCORD*
Join the Learn Build Teach Discord Server 💬 - / discord
Follow me on Twitter 🐦 - / jamesqquick
Check out the Podcast - compressed.fm/
Courses - jamesqquick.com/courses
*QUESTIONS ABOUT MY SETUP*
Check out my Uses page for my VS Code setup, what recording equipment I use, etc. www.jamesqquick.com/uses

Пікірлер: 20
@DennisIvy
@DennisIvy 8 күн бұрын
Saving this so I can watch later :)
@adammatthiesen6203
@adammatthiesen6203 15 күн бұрын
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 14 күн бұрын
hahaa good to know. Thanks for clarifying!
@anasouardini
@anasouardini 15 күн бұрын
Astro team is always alert to the user's problems.
@JamesQQuick
@JamesQQuick 14 күн бұрын
They're so good at that! That's why I'm so optimistic about them!
@CyberTechBits
@CyberTechBits 15 күн бұрын
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 14 күн бұрын
haha there are so many options. Astro is great though. Especially being able to leverage other UI frameworks with it. Thanks for watching!
@hxxzxtf
@hxxzxtf 12 күн бұрын
🎯 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
@guiltyconscious
@guiltyconscious 12 күн бұрын
Good video but not trying to learn another library for a just one specific task tbh
@theklr
@theklr 15 күн бұрын
Why can’t vercel be cool like this with next 😭😭😭
@JamesQQuick
@JamesQQuick 14 күн бұрын
haha if only! It's such a good feature
@arberstudio
@arberstudio 14 күн бұрын
interesting
@JamesQQuick
@JamesQQuick 14 күн бұрын
Any other thoughts? Do you find it useful?
@arberstudio
@arberstudio 14 күн бұрын
@@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 14 күн бұрын
@@arberstudio Ah nice. Can't wait to see what you come up with!
@yehudz
@yehudz 14 күн бұрын
You're thumbnails are so cringe man, much love for your video though
@JamesQQuick
@JamesQQuick 14 күн бұрын
Thanks for the feedback. What would you change?
@yehudz
@yehudz 14 күн бұрын
@@JamesQQuick Be more natural, videos are great but it's not a fortnite channel you know
@JamesQQuick
@JamesQQuick 14 күн бұрын
@@yehudz I'll keep that in mind!
Astro Actions: the missing server action library
19:28
Astro
Рет қаралды 10 М.
`const` was a mistake
31:50
Theo - t3․gg
Рет қаралды 125 М.
когда повзрослела // EVA mash
00:40
EVA mash
Рет қаралды 3,7 МЛН
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 170 #shorts
00:27
FOOLED THE GUARD🤢
00:54
INO
Рет қаралды 63 МЛН
Working with Images in Astro
15:13
Coding in Public
Рет қаралды 5 М.
TypeScript 5.5 is a BANGER
9:16
Matt Pocock
Рет қаралды 59 М.
VSCode is Not Enough Anymore in 2024
3:21
Dev Panda
Рет қаралды 5 М.
Should You Avoid Netlify, Vercel, and Cloudflare? (Quick Reaction)
6:51
Astro Explained
9:59
Awesome
Рет қаралды 26 М.
Microservices with Databases can be challenging...
20:52
Software Developer Diaries
Рет қаралды 18 М.
The One We've All Been Sleeping On (probably)
8:18
Davis Media
Рет қаралды 24 М.
Practical Svelte 5 - Shopping Cart
25:10
Huntabyte
Рет қаралды 10 М.
I wish every AI Engineer could watch this.
33:49
1littlecoder
Рет қаралды 60 М.
Vue.js Course for Beginners [2021 Tutorial]
3:39:56
freeCodeCamp.org
Рет қаралды 1 МЛН
когда повзрослела // EVA mash
00:40
EVA mash
Рет қаралды 3,7 МЛН