Тёмный

Astro Fixed Environment Variables!! 

James Q Quick
Подписаться 202 тыс.
Просмотров 2,1 тыс.
50% 1

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

Опубликовано:

 

18 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 20   
@DennisIvy
@DennisIvy Месяц назад
Saving this so I can watch later :)
@anasouardini
@anasouardini Месяц назад
Astro team is always alert to the user's problems.
@JamesQQuick
@JamesQQuick Месяц назад
They're so good at that! That's why I'm so optimistic about them!
@adammatthiesen6203
@adammatthiesen6203 Месяц назад
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 Месяц назад
hahaa good to know. Thanks for clarifying!
@CyberTechBits
@CyberTechBits Месяц назад
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 Месяц назад
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 Месяц назад
🎯 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 Месяц назад
Good video but not trying to learn another library for a just one specific task tbh
@arberstudio
@arberstudio Месяц назад
interesting
@JamesQQuick
@JamesQQuick Месяц назад
Any other thoughts? Do you find it useful?
@arberstudio
@arberstudio Месяц назад
@@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 Месяц назад
@@arberstudio Ah nice. Can't wait to see what you come up with!
@theklr
@theklr Месяц назад
Why can’t vercel be cool like this with next 😭😭😭
@JamesQQuick
@JamesQQuick Месяц назад
haha if only! It's such a good feature
@yehudz
@yehudz Месяц назад
You're thumbnails are so cringe man, much love for your video though
@JamesQQuick
@JamesQQuick Месяц назад
Thanks for the feedback. What would you change?
@yehudz
@yehudz Месяц назад
@@JamesQQuick Be more natural, videos are great but it's not a fortnite channel you know
@JamesQQuick
@JamesQQuick Месяц назад
@@yehudz I'll keep that in mind!
Далее
Astro Actions: the missing server action library
19:28
ЭТОТ ПЕНЁК ИЗ PLANTS VS ZOMBIES - ИМБА!
00:48
Викторина от МАМЫ 🆘 | WICSUR #shorts
00:58
What Makes A Great Developer
27:12
Просмотров 164 тыс.
HTMX and Astro Are An Amazing Combo!
17:50
Просмотров 9 тыс.
So I've Been Trying Other Languages...
30:59
Просмотров 67 тыс.
Only The Best Developers Understand How This Works
18:32
Astro 2.0 is Revolutionary! Again!
26:05
Просмотров 49 тыс.
All Rust string types explained
22:13
Просмотров 157 тыс.
Astro View Transitions Overview
22:28
Просмотров 3,1 тыс.
The problem with server actions
16:32
Просмотров 21 тыс.
How and Why I Rebuilt my SAAS App
13:24
Просмотров 19 тыс.
So, you want to be a programmer?
20:43
Просмотров 231 тыс.