Upgrading to Astro v3
Code along with me as I upgrade my website to Astro 3.0! Itโs 30% faster and more powerful than ever. Weโll explore new features like view transitions, image optimization, JSX Fast Refresh, and so much more.
Here are the highlights of what weโll cover:
- Upgrade packages: Weโll upgrade all our Astro dependencies to the latest version of 3.0. Weโll also make sure the site still builds, runs locally, and deploys successfully. This update includes a 30-75% performance boost for Astro components and a 30% build time reduction.
- Image Optimization: Astro now supports image optimization out of the box. Weโll update the site to use the new built-in
<Image>component and explore the new image optimization features. I ended up reducing the size of some of my images by over 90%! - View Transitions: Weโll experiment with the new web platform API that unlocks native browser transition effects between pages, without any JavaScript required. The goal is to morph the post thumbnails between page routes.
Overall it was a fun stream! I had some hiccups with the new View Transitions API but once we figured it out it turned out great! You can view all of the work in the pull request.
Sign-Up for New Posts
Stay in the loop and get the latest blog posts about Development sent to your inbox.
Or use the
RSS Feed