Why I STOPPED Using Next.js And Chose Astro Instead

  Рет қаралды 52,279

James Q Quick

James Q Quick

Күн бұрын

Next.js was not the best option for my personal site. I decided to choose Astro because it handles working with markdown, code highlighting, pagination, and so much more so much easier.
Full Astro Course - astrocourse.dev/
*DISCORD*
Join the Learn Build Teach Discord Server 💬 - / discord
*STAY IN TOUCH 👋*
Newsletter 🗞 - www.jamesqquick.com/newsletter
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
00:00 - Intro
01:20 - Struggled with Next.js and Working With Markdown
03:40 - Astro Content Collections, Markdown, and TypeScript
06:00 - Astro Rendering Markdown and Code Highlighting
08:00 - Astro Pagination
10:00 - API Endpoints in Astro
10:56 - Astro Course astrocourse.dev/

Пікірлер: 151
@GuiMont
@GuiMont 9 ай бұрын
I used Astro.js in a Learning System Project, because there was a lot of texts, images, videos, dynamic exercises, like, in fact I needed to turn 6 learning books into multimedia content. So I thought this framework that could help me so much to finish this job. And now I really want to do my portfolio in Astro to, specially because markdown support. Seeing your video give more motivation and inspiration. Thank you!
@JamesQQuick
@JamesQQuick 8 ай бұрын
So glad this was helpful for you!
@TomHermans
@TomHermans 7 ай бұрын
when Astro came out, I immediately saw the perfect in-between for eleventy and nextjs and jumped on it. And it only got better.
@creaky2436
@creaky2436 9 ай бұрын
I did this exact same thing with my portfolio site using markdown in next with gray matter etc. I was even able to style it with a prose class. It looks great and works great for me
@JamesQQuick
@JamesQQuick 8 ай бұрын
Very nice!!
@i4o
@i4o 9 ай бұрын
Just last weekend, I rebuilt my personal website in Astro. And that was the first time I used Astro. It was such a delight to use.
@JamesQQuick
@JamesQQuick 9 ай бұрын
Nice! Do you have a link?
@mentoriii3475
@mentoriii3475 9 ай бұрын
honestly i felt the same with Nextjs, error after error and started feeling frustrated, switched to astro and i like it a lot
@choanlpoto
@choanlpoto 8 ай бұрын
I would love to have a breakdown / tuto of your newsletter automation API system.
@codeSTACKr
@codeSTACKr 9 ай бұрын
Love the special guest.. also great video!
@JamesQQuick
@JamesQQuick 9 ай бұрын
hahaha she made her first appearance :)
@naranyala_dev
@naranyala_dev 9 ай бұрын
will be interesting to do Astro's video continuous things, especially with React and Tailwind 🚀
@JamesQQuick
@JamesQQuick 8 ай бұрын
They continue to ship amazing features!!
@ComisarioLobo
@ComisarioLobo 9 ай бұрын
would be awesome if you include i18n to your course
@ashimov1970
@ashimov1970 8 ай бұрын
What's your take on HTMX in the context of the vid subject?
@hugodsa89
@hugodsa89 5 ай бұрын
Loved the baby showing up. I was looking around myself 🤣 Congratulations James!
@tamaspal1864
@tamaspal1864 2 күн бұрын
+1
@colbyfayock
@colbyfayock 8 ай бұрын
nice rundown!
@JamesQQuick
@JamesQQuick 8 ай бұрын
Thank you!
@binrueiyang2197
@binrueiyang2197 8 ай бұрын
Thanks!
@JamesQQuick
@JamesQQuick 8 ай бұрын
THANK YOU SO MUCH!!
@hiryuimajin
@hiryuimajin 9 ай бұрын
At this point, I've gone through so much frameworks that whatever the use case is I just adapt to that framework 🤣 I'm not flexing because this is a horrible thing to do. Just that I can't quite remove the thinking of knowing that for a certain use case this framework fits for other use case this frame work works best. I just got to be better each day
@raiyansarker
@raiyansarker 9 ай бұрын
You should optimise your site images!
@advokats086
@advokats086 9 ай бұрын
Would love to see a full tutorial on how to create pagination on a blog....
@JamesQQuick
@JamesQQuick 9 ай бұрын
I've got a pagination video planned! Also, my Astro course will be released in the next month! astrocourse.dev/
@TytusDubel
@TytusDubel 7 ай бұрын
How do You manage your life with a newborn? I'm a graphic designer with two children..and I can't work at home - i had to find a studio to employ me so I could have the things done..but,my aspiration is to learn front end.. so to speak - do your partner respect your times / needs i terms of work, learning or it's like "there's a problem, give me a hand.." without any consideration of your space?
@groovebird812
@groovebird812 8 ай бұрын
I heard from astro some days ago and its a very nice tool. Could you make a video about the basics of authentication in astro? :-)
@JamesQQuick
@JamesQQuick 8 ай бұрын
I'll actually be doing that in the course! You can sign up for updates here. astrocourse.dev/
@CyberTechBits
@CyberTechBits 6 ай бұрын
Would love to see that video!@@JamesQQuick
@tim_t
@tim_t 9 ай бұрын
As soon as I learn how to use page transitions, I’d go all-in on Astro. I tried building MPA websites but the page reloads on navigation just feels so frustrating (mildly infuriating).
@JamesQQuick
@JamesQQuick 9 ай бұрын
Yeah that's something I really need to dive into as well!
@chrismarks7495
@chrismarks7495 9 ай бұрын
Is Client Side Navigation available in Astro or just Server Side Navigation?
@JamesQQuick
@JamesQQuick 9 ай бұрын
@@chrismarks7495 As of this month it is. I still need to look into it, but I'll do a video eventually!
@MrJfergs
@MrJfergs 8 ай бұрын
@@JamesQQuick That is one thing keeping me away from astro.
@f1shyv1shy35
@f1shyv1shy35 8 ай бұрын
Astro 3 and View transitions is now stable and it works great
@alisherzaitov
@alisherzaitov 9 ай бұрын
Would you use Astro with cms? I am creating a blog with Astro and choosing a cms, going with Directus for now, but since I did not have a real use experience I dunno if it will suit me. Did sanity satisfy you? I am planning to use Astro+directus+neon postgresql and maybe prisma
@JamesQQuick
@JamesQQuick 8 ай бұрын
Astro with CMS is definitely a great combo. I've thought about doing some content using Storyblok but Sanity of Directus would also be amazing!
@alisherzaitov
@alisherzaitov 8 ай бұрын
@@JamesQQuick thank you for replying. Storyblok is cool, but other mentioned can be self-hosted
@JamesQQuick
@JamesQQuick 8 ай бұрын
Fair enough! Thanks for sharing!!@@alisherzaitov
@DeadOce4n
@DeadOce4n 9 ай бұрын
I honestly still like Gatsby a lot, it may be a bit slower but it's still a great experience.
@JamesQQuick
@JamesQQuick 8 ай бұрын
Nice! Are you still usign it for personal sites?
@deatho0ne587
@deatho0ne587 9 ай бұрын
Could just do a bit of CSS so your Prev/Next buttons always show if they exist. Some reasons being - Maybe tomorrow you think 20 or 100 records work - Maybe someone views the site at super small widths
@JamesQQuick
@JamesQQuick 9 ай бұрын
I'm not sure what you mean? They don't get hidden on small screens?
@deatho0ne587
@deatho0ne587 9 ай бұрын
There was a point even in the video I could not see either prev or next. Which you can see at 9:34.
@JamesQQuick
@JamesQQuick 9 ай бұрын
@@deatho0ne587 At that timestamp, I can see next but not prev which is how it's intended to work since I was on the first page of pagination.
@deatho0ne587
@deatho0ne587 9 ай бұрын
You scolled to fast, but there is a point where you can only see the images on the screen.
@tarick8571
@tarick8571 9 ай бұрын
I agree sometimes next/react can be an overkill solution for a small site/blog. I haven't tried Astro but I recently used 11ty for a blog and a small client site. I'd love to hear your opinion Astro vs eleventy.
@JamesQQuick
@JamesQQuick 8 ай бұрын
Ah I haven't used 11ty myself, but I've heard really good things. I think Astro already has and will continue to have more full-stack framework capabilities whereas 11ty is much more specifically focused on staying ssg focused.
@anversadutt
@anversadutt 9 ай бұрын
you need to do a tutorial on how to baby sit and program at the same time :)
@JamesQQuick
@JamesQQuick 8 ай бұрын
That's a hard one! lol
@motoboy6666
@motoboy6666 9 ай бұрын
So Astro for full-stack? Would it be a valid choice comparable with Next?
@JamesQQuick
@JamesQQuick 9 ай бұрын
You CAN use it for full-stack, but I'd say Next.js is more optimal for full-stack apps. I think Astro will continue to close that gap though
@MaykBrito
@MaykBrito 6 ай бұрын
Oh my! 😍 God bless your new life, James! I got a little emotional watching they crying 8:25
@JamesQQuick
@JamesQQuick 6 ай бұрын
Thank you :)
@cristianrosescu2914
@cristianrosescu2914 8 ай бұрын
Remix JS is another great option
@MasayaShida
@MasayaShida 9 ай бұрын
even the baby is excited for Astro!
@JamesQQuick
@JamesQQuick 8 ай бұрын
She definitely is!
@David-wp9xq
@David-wp9xq 8 ай бұрын
do you have astro tutorial with firebase?
@JamesQQuick
@JamesQQuick 8 ай бұрын
I don't have one unfortunately. Anything in particular you'd like to see?
@CyberTechBits
@CyberTechBits 6 ай бұрын
I'd love to see asto integration with Firebase. Pushing to firebase and leveraging firebase authentication@@JamesQQuick
@antonkouliavtsev2501
@antonkouliavtsev2501 9 ай бұрын
Why not use app/dir with contentlayer?
@JamesQQuick
@JamesQQuick 9 ай бұрын
I'm not familiar with content layer? What is that?
@hiryuimajin
@hiryuimajin 9 ай бұрын
@@JamesQQuick it helps you with processing the mdx files. It actually makes it easier to parse the mdx files, however there may still be intricacies on it that may not be a good DX.
@inamurrehman343
@inamurrehman343 9 ай бұрын
There is an issue in the website when we enter email and join waitlist the successful message color is not visible because the color and background both has white text. By the way I love your videos. Nice Baby ❤
@JamesQQuick
@JamesQQuick 9 ай бұрын
Oh no really? Let me go look into that!
@cosmiclny
@cosmiclny 8 ай бұрын
Hi @JamesQQuick, please make the images in the overview of your blog post clickable 😉.
@JamesQQuick
@JamesQQuick 8 ай бұрын
Hey there! Which images do you mean specifically?
@sujoykrhaldar
@sujoykrhaldar 9 ай бұрын
After seeing the thumbnail .... you just broke my heart 😂
@JamesQQuick
@JamesQQuick 9 ай бұрын
haha Next.js is amazing. I just chose a different direction for my site.
@ParasocialFix
@ParasocialFix 9 ай бұрын
I use Astro to build apps :) I'm weird like that but I'm going to continue doing it anyway 😂
@JamesQQuick
@JamesQQuick 9 ай бұрын
haha yeah I'm enjoying kinda pushing the traditional boundaries with it!
@sinkie420
@sinkie420 9 ай бұрын
why would you choose next as a framework for some personal project if you dont need backend apis
@JamesQQuick
@JamesQQuick 8 ай бұрын
Next also can do static content really well. It can work for a lot of use cases
@sinkie420
@sinkie420 8 ай бұрын
@@JamesQQuick yeah but there's better frameworks
@JamesQQuick
@JamesQQuick 8 ай бұрын
What options would you choose?@@sinkie420
@sinkie420
@sinkie420 8 ай бұрын
@@JamesQQuick qwik or astro
@dazecm
@dazecm 9 ай бұрын
Shout-out to baby Quick giving us a shout-out and appearance @ 8:26 👨‍🍼
@JamesQQuick
@JamesQQuick 9 ай бұрын
She's famous already!!
@verticeva
@verticeva 5 күн бұрын
Love your baby and you video and Astro ❤
@RobertMcGovernTarasis
@RobertMcGovernTarasis 2 ай бұрын
6 months on, would it still be your choice?
@JamesQQuick
@JamesQQuick 2 ай бұрын
For many use cases, specifcally my site, yes! Still love Next.js too!
@RobertMcGovernTarasis
@RobertMcGovernTarasis 2 ай бұрын
@@JamesQQuick cheers. Helpful, trying to work out what I was going to try and learn next. Was leaning Astro (esp as I’ve experience with 11ty) as I can then use React or Co as I learn them.
@advokats086
@advokats086 7 ай бұрын
How to integrate other libraries written for react into astro components written in jsx ??? ?
@afsarzan
@afsarzan 9 ай бұрын
I was planning to learn Next.js but delayed due to work , not Astro came. If I delay Astro leaning surely something new will come , heeee
@JamesQQuick
@JamesQQuick 9 ай бұрын
haha Astro is definitely worth looking into!
@PeterKellner99
@PeterKellner99 8 ай бұрын
I've been wondering about Astro. It seems very "react-eque". Is it somehow related to React?
@JamesQQuick
@JamesQQuick 8 ай бұрын
You can actually use React within Astro, but Astro is more directly compared to Next.js as a higher level "meta" framework.
@SiliconValleyCodeCampVideos
@SiliconValleyCodeCampVideos 8 ай бұрын
Same JSX syntax and other "react-like" things?@@JamesQQuick
@digicinematic
@digicinematic 5 ай бұрын
BWAAH!! "This is my life now."
@JeffBarron1
@JeffBarron1 9 ай бұрын
why i switched from NextsJs to Framer
@JamesQQuick
@JamesQQuick 9 ай бұрын
To framer? That's just for animations right?
@JeffBarron1
@JeffBarron1 9 ай бұрын
​@@JamesQQuick as a developer their are two types of project, static brochure sites (blogs are just brochures with lots of pages) and application. sure you can build apps with with nextjs, svelt, astro, vue, etc.. that is the where they shine. but the frameworks are just so focused building fast static sites but why bother coding that!! I'd like to see nextjs et al return to their roots. concentrate on providing tools to make applications not brochures . rant over. enjoy your channel btw
@andresep
@andresep 7 ай бұрын
Content in a markdown file... Why didn't you use Hugo? 🤷‍♂️ Hugo is made for that and is very simple to use.
@JamesQQuick
@JamesQQuick 7 ай бұрын
I would argue Astro is just as simple and also more powerful. Hugo also isn't JavaScript. Totally fine, but I prefer JavaScript. At the end of the day though, whatever works for you
@badcatdesign
@badcatdesign 9 ай бұрын
When you realize all the🎁gifts you have are just more packages 📦to deal with.
@JamesQQuick
@JamesQQuick 9 ай бұрын
What do you mean?
@badcatdesign
@badcatdesign 9 ай бұрын
@@JamesQQuick Felt poetic that Node "packages" include so many dependencies on other packages for the "gift" of effectively, free coding. It's more overhead to deal with of course. So in this case, and in many, Less becomes More.
@andreilucasgoncalves1416
@andreilucasgoncalves1416 9 ай бұрын
​@@badcatdesignI agree when you are starting a project having everything pre configured is great, but when the project grows it became a a mess We are using Astro and because the project is big it started to become really slow to startup, the node-adapter is 1.2Mb and started to have random bugs that force to restart everytime But what astro is really good is the rollup configuration, every page is extremely performatic
@JamesQQuick
@JamesQQuick 9 ай бұрын
@@badcatdesign Well there's definitely tradeoffs with everything. In this case, I'm happy to take the built-in functionality with Astro that I don't have to manually manage.
@user-zr9tm8vf6p
@user-zr9tm8vf6p 8 ай бұрын
we can do everything with vanilla js
@BobbyBundlez
@BobbyBundlez 7 ай бұрын
after hours of coding yes
@eugenemaestrado3866
@eugenemaestrado3866 8 ай бұрын
how about qwik? apparently faster compared to astro.
@BobbyBundlez
@BobbyBundlez 7 ай бұрын
who cares astro is fast enough. it's not all about speed man. knocking off 2 ms ooohhh cool!
@seanrobertson7122
@seanrobertson7122 7 ай бұрын
of course he's tried it, he named himself after it
@paypalmymoneydfs
@paypalmymoneydfs 9 ай бұрын
2nd video today of this sort lol, major NextJS Ls
@JamesQQuick
@JamesQQuick 8 ай бұрын
I don't see it as an L. I'm a huge Next.js fan. This is just what I chose for this specific use case.
@tinkertoyskeptic1454
@tinkertoyskeptic1454 7 ай бұрын
I’ve been trying to publish my obsidian notes with Astro. Haha I cant even get the links to route correctly. This old brain can’t keep up with you youngins!
@evan_ry
@evan_ry 8 ай бұрын
Guys from Astro invented Nuxt Content plugin
@christerjohanzzon
@christerjohanzzon 8 ай бұрын
Aww, aren't the "junior dev" cute! Now, develop a Quick Framework in her name. ;)
@snatvb
@snatvb 9 ай бұрын
why do you compare old nextjs with astro?
@JamesQQuick
@JamesQQuick 8 ай бұрын
What do you mean by old? Pre 13?
@yanivcode9724
@yanivcode9724 8 ай бұрын
Bro... Next 13. it's just super easy.
@JamesQQuick
@JamesQQuick 8 ай бұрын
You enjoying the app router?
@armantgoldswain3951
@armantgoldswain3951 8 ай бұрын
Wait until you have two of them, have a boy (2yrs) and a girl (5months)... Congrats though, the kids are the best part of life!
@mistersir3185
@mistersir3185 9 ай бұрын
Nah I'm good, sticking to Next forever!
@JamesQQuick
@JamesQQuick 9 ай бұрын
Awesome. What are your favorite features of Next.js?
@wojciechosinski5927
@wojciechosinski5927 9 ай бұрын
"Added all the astro shit" commit. Do you still enjoy coding?
@JamesQQuick
@JamesQQuick 9 ай бұрын
Love it :)
@emmanuelvillalobos3734
@emmanuelvillalobos3734 8 ай бұрын
Well, it's the JS community mantra, right? Change to a "new" and "better" framework every two weeks...
@JamesQQuick
@JamesQQuick 8 ай бұрын
haha basically that's it. Never a dull moment!
@egretfx
@egretfx 8 ай бұрын
am a full stack dev and i think nextjs is the best thing to ever happen in web dev
@JamesQQuick
@JamesQQuick 8 ай бұрын
haha it's pretty amazing!
@garland-key
@garland-key 9 ай бұрын
Paaagination
@JamesQQuick
@JamesQQuick 8 ай бұрын
They make it so nice!
@heygema
@heygema 7 ай бұрын
Because Astro is Quicker
@MoonMoon-qt7io
@MoonMoon-qt7io 4 ай бұрын
You broke the rule : no babies 😂
@leopb21
@leopb21 8 ай бұрын
Developers should stop the religion built around React. React is NOT good. Verbose, SLOW, complex, far from web standards. Try building a simple list with 200 instances of the same component. Try filtering and sorting this list with animated transitions. Try this using React. You will see how bad React is. "Ah, you should use memo, ref, use effect..." Really? Native workarounds?
@nageldev
@nageldev 9 ай бұрын
I've been in the exact same boat - choosing a framework to move from Gatsby to. My conclusion is different, however. With Astro, you're really just getting an SSG, no different in output to Hugo or Jekyll. The islands architecture is nice, but you're really just generating a HTML site. NextJS is so much more. To go from NextJS to Astro is a downgrade. It's a great developer experience, but the outputted site is a straight up downgraded product.
@JamesQQuick
@JamesQQuick 8 ай бұрын
Next.js is definitely a great option. I will say that Astro actually has full-stack capabilities as well: - api endpoints - ssr - server components There are tradeoffs but Astro has more than people realize!
@elson_correia
@elson_correia 7 ай бұрын
This is still unnecessarily complex
@zeteya
@zeteya 12 күн бұрын
Astro makes Next.js look like child's play.
@HomeSlize
@HomeSlize 8 ай бұрын
Great, another JS framework...
@Fitzpa14
@Fitzpa14 8 ай бұрын
Lol. It’s not like it’s THAT new.
@JamesQQuick
@JamesQQuick 8 ай бұрын
but it is yet another one haha totally get the frustration there!
@ottergauze
@ottergauze 8 ай бұрын
Yadda yadda 0 days since the next JS framework yeah yeah, but I genuinely think Astro fills a niche.
@michaelvo9820
@michaelvo9820 8 ай бұрын
Don’t be afraid of new frameworks. Always something new to learn
@user-fr2fm3ri3w
@user-fr2fm3ri3w 8 ай бұрын
If you know vanilla is well enough and you aren’t a react bootcamper switching between frameworks is very very easy.
@chadjones4255
@chadjones4255 5 ай бұрын
haha... sloppy transition from the baby... I swear, it looked like you dropped the baby and continued on.
@nr7343
@nr7343 8 ай бұрын
nextjs It's garbage
@JamesQQuick
@JamesQQuick 8 ай бұрын
Hmm, what do you not like about it?
@nuttbaked
@nuttbaked 9 ай бұрын
sveltekit when :(
Astro Crash Course in 20 Minutes!
22:07
Coding in Public
Рет қаралды 51 М.
Why I Don't Use NextJS For My Side Project Anymore
6:51
Josh tried coding
Рет қаралды 56 М.
FOOTBALL WITH PLAY BUTTONS ▶️ #roadto100million
00:24
Celine Dept
Рет қаралды 158 МЛН
АВДА КЕДАВРАААААА😂
00:11
Romanov BY
Рет қаралды 9 МЛН
蜘蛛侠这操作也太坏了吧#蜘蛛侠#超人#超凡蜘蛛
00:47
超凡蜘蛛
Рет қаралды 40 МЛН
Astro Web Framework Crash Course
1:16:48
freeCodeCamp.org
Рет қаралды 76 М.
What is Astro?
9:57
Kodaps Academy
Рет қаралды 6 М.
Flutter vs React Native in 2024 : Choosing the Right Framework
5:55
I Benchmarked EVERY Framework So You Don't Have To
29:57
Theo - t3․gg
Рет қаралды 108 М.
Giving Up On Next.js | Theo Reacts
44:49
Theo - t3․gg
Рет қаралды 108 М.
Web Developer Roadmap (2024) - Everything is Changing
25:02
ByteGrad
Рет қаралды 206 М.
Astro DB Is FINALLY HERE! (and it's awesome!)
9:16
James Q Quick
Рет қаралды 8 М.
You might not need useEffect() ...
21:45
Academind
Рет қаралды 125 М.
Dynamic API Endpoints in Astro
30:59
Coding in Public
Рет қаралды 7 М.
FOOTBALL WITH PLAY BUTTONS ▶️ #roadto100million
00:24
Celine Dept
Рет қаралды 158 МЛН