
"Vike, the flexible framework for building advanced web applications, has introduced Photon, a next-generation infrastructure for deploying JavaScript servers across any platform. Photon represents a shift in how developers approach server deployment and integration. The Vike team has also released vike-photon, which replaces the previous vike-server package. Developers currently using vike-server are encouraged to migrate to the new infrastructure to take advantage of the improved capabilities. Photon is designed to work with any JavaScript server framework, including Hono, Express.js, Fastify, Elysia, H3, Srvx, and Hattip,"
"One of the improvements in Photon is the Cloudflare integration. When using @photonjs/cloudflare, the development environment runs inside Cloudflare's workerd runtime instead of Node.js. This is the same runtime Cloudflare uses in production, making the development environment a much more faithful representation of production behavior. Vike is among the first frameworks to support this capability, powered by Vite's Environment API, which enables Vite to run in a Node.js process while executing server code in another non-Node.js process such as workerd."
Photon is a next-generation infrastructure for deploying JavaScript servers across any platform. Vike has released vike-photon to replace vike-server and encourage migration to the new infrastructure. Photon supports Hono, Express.js, Fastify, Elysia, H3, Srvx, and Hattip and can deploy to self-hosted environments, Cloudflare, Vercel, or Netlify. The Cloudflare integration with @photonjs/cloudflare runs the development environment inside Cloudflare's workerd runtime instead of Node.js, matching production behavior. Vite's Environment API enables Vite to run in Node while executing server code in a separate non-Node runtime. Developers can access Cloudflare APIs, KV stores, and environment variables directly in development and production. Photon also improves developer experience with Hot Module Replacement to avoid full server reloads.
Read at InfoQ
Unable to calculate read time
Collection
[
|
...
]