惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
V2EX
aimingoo的专栏
aimingoo的专栏
S
SegmentFault 最新的问题
博客园_首页
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
IT之家
IT之家
博客园 - 【当耐特】
月光博客
月光博客
C
Check Point Blog
T
The Blog of Author Tim Ferriss
罗磊的独立博客
博客园 - Franky
MongoDB | Blog
MongoDB | Blog
H
Help Net Security
Microsoft Security Blog
Microsoft Security Blog
B
Blog
阮一峰的网络日志
阮一峰的网络日志
腾讯CDC
美团技术团队
N
Netflix TechBlog - Medium
Stack Overflow Blog
Stack Overflow Blog
Y
Y Combinator Blog
L
LangChain Blog
The Cloudflare Blog

The Astro Blog

Astro 6.4 Astro 6.3 Starlight 0.39 Astro 6.2 What's new in Astro - April 2026 What's new in Astro - March 2026 Astro 6.1 CloudCannon Joins Astro as an Official CMS Partner Astro 6.0 What's new in Astro - February 2026 What's new in Astro - January 2026 Astro 5.17 Supporting the future of Astro The Astro Technology Company joins Cloudflare Astro 6 Beta What's new in Astro - December 2025 What's new in Astro - November 2025 Astro 5.16 Stainless Sponsors Astro, Launches Astro-Powered Docs Platform What's new in Astro - October 2025 Astro 5.15 Spirit of Astro: meet the winning designs What's new in Astro - September 2025 Astro 5.14 Cloudflare Donates $150,000 to Support Astro's Open Source Mission Webflow Donates $150,000 to Support Astro's Open Source Mission Mux: Our Official Video Partner Unleashing creativity: How CodeTV built a video streaming platform with Astro and Mux | Astro What's new in Astro - August 2025 Astro 5.13
Vercel: Our Official Hosting Partner
Thuy Doan, Fred Schott · 2023-08-28 · via The Astro Blog

We are thrilled to announce Vercel as Astro’s new official hosting partner!

Astro is a JavaScript web framework for building content-focused websites. Astro’s next-gen frontend architecture automatically reduces unused JavaScript on the page while maximizing Core Web Vitals and other performance metrics.

Thousands of Astro developers are already taking advantage of Vercel’s frontend cloud platform and generous free tier for hosting. This new partnership will guarantee more collaboration, more features, and an even better experience for Astro developers on Vercel.

Vercel will also be sponsoring $5,000 each month towards the ongoing open source maintenance and development of Astro. The new sponsorship funding will be invested directly back into our open source community and maintenance, benefiting everyone.

Here’s what Lee Robinson of Vercel had to say about the news:

Vercel believes in supporting open-source and all web frameworks. We’ve loved backing Astro for the past two years and are excited to take our partnership even further after seeing the continued growth of Astro on Vercel.

Lee Robinson, VP of Developer Experience

Lee and Fred K. Schott (Astro co-creator & project steward) had a chance to sit down for a conversation about the future of Astro, Vercel, and what this new partnership means for the web.

Play

Unlocking Astro on Vercel

Vercel has always been a great choice for Astro developers. Last year, Vercel launched automatic framework detection with zero-configuration setup for new Astro projects. This simple change saved Astro users countless hours and improved default performance with an optimized site configuration for everyone.

We’re excited to announce a new suite of features for Astro users who deploy to Vercel, available today. These features were made possible thanks to our ongoing collaboration with and sponsorship by Vercel.

Edge Middleware

Astro middleware now runs on the edge with Vercel’s Edge Middleware. Edge middleware runs as close to your users as possible, which means faster response times for your users. Edge middleware also lets you customize every request and response that runs through your server, potentially reducing the traffic sent to your origin servers.

Astro users can now:

  • Support multi-region URL schemes, redirecting users to their localized URL.
  • Verifying the user token and blocking unauthenticated traffic to the server.
  • Load data from an edge-distributed global database.
  • Define caching strategies in code, instead of config.
  • Minify response HTML as it streams back from the server.

Edge middleware can be enabled by adding {edgeMiddleware: true} to the Vercel adapter in your Astro configuration file. In a future version, this option may become the default behavior. Check out the Vercel documentation to learn more about how Edge Middleware works on Vercel.

Serverless Code Splitting

Astro server applications now runs faster on Vercel thanks to serverless code splitting on each route.

Previously, Astro would build your entire server application into a single JavaScript file. This simplified our deployments, but at the expense of poor serverless performance. By bundling your entire application in a single JavaScript file, response time (specifically, cold start time) would get weighed down by unused code as your codebase grew.

Splitting your application into smaller functions improves response time by removing unused code that isn’t needed for each route. Deploying individual routes also allows hosts like Vercel to better distribute your workload across multiple, smaller functions.

You can enable this feature today by specifying { functionPerRoute: true } in your Astro configuration file. In a few days, this option will become the default along with the upcoming release of Astro 3.0.

Image Optimization on Vercel

Astro sites can now connect to Vercel’s built-in image optimization service to power on-demand image optimization in Astro 3.0 (also available in Astro 2.x behind an experimental flag).

Image optimization is available on all platforms through Astro’s built-in <Image /> component and lower-level image APIs. Astro developers can use images on their website without the fear of accidentally forgetting to optimize an image. Cumulative Layout Shift is also prevented automatically with smart height & width attribute annotation on the img tag.

Static sites will already optimize your images ahead-of-time, as a part of your build. But Astro server applications normally need to also ship Astro’s built-in image optimization library Sharp to production for on-demand image optimization. By leveraging Vercel’s built-in image optimization service instead, developers can simplify deployment complexity, improve image performance, and reduce compute costs.

You can enable this feature today by specifying { imageService: true } in your Astro configuration file. In a future version, this option may become the default behavior.

Improving Astro for Everyone

We’ve built all three of these features in collaboration with Vercel by leveraging their Build Output API. Our goal is to bring them to more hosting platforms in the future. Everything mentioned in this post has been designed in a platform-agnostic way so that anyone can take these same features and enable them on their own hosting platform.

If you are interested in enabling these features for your hosting platform, you can reach out on Discord.

Astro ❤️ Vercel

Astro is honored to have Vercel joining as our new official hosting partner. We are grateful to Lee Robinson and the entire Vercel team for their support and evangelism of Astro. It’s because of support from companies like Vercel that we are able to receive ongoing maintenance and keep developing Astro as an open, financially-sustainable open source project.

You can learn more about how we use our sponsorship funds from our FUNDING.md document on GitHub. If you or your company use Astro in production, consider supporting Astro’s development by sponsoring us on Open Collective or GitHub Sponsors.