Company
Date Published
Author
Nathan Rajlich, Ethan Arrowood
Word count
999
Language
English
Hacker News points
7

Summary

Nathan Rajlich and Ethan Arrowood from Remix announced an advanced integration with Vercel, which includes support for Streaming SSR, API Routes, Advanced Caching, Data Mutations, and Deploying a Remix template. This integration is designed to work seamlessly with Vercel's serverless environment, including both Node.js and Edge runtimes. The team has abstracted away runtime-specific needs, making it easily consumable. They are collaborating with the Remix team to contribute changes back upstream and make the build outputs more modular. With this advanced integration, applications can now choose their runtime on a per-route basis, allowing for the best parts of both Node.js and Web APIs in one application on one platform. Vercel supports caching loader responses using its Edge Network Cache, providing cache-control headers like stale-while-revalidate and stale-if-error. This integration also enables isomorphic support for streaming in both Node.js and Edge runtimes, with powerful Remix features like defer() and <Await>, built on top of React 18 and Suspense. The goal is to provide a truly dynamic experience at the speed of static, with framework-defined infrastructure that automatically takes advantage of the best infrastructure primitives.