Vercel announced an update of its Next.js-powered edge platform on July 21, providing users with a simplified approach to deploying applications across an optimized content delivery network (CDN).
"The Vercel edge platform plays really well with the new Next.js dynamic features," Rauch told ITPro Today. "So people can build apps that are fully real time, and they can build apps with personalization information."
Next.js 9.4 Release Is the Foundation
The dynamic generation capabilities in Vercel are powered by new features that are part of the Next.js 9.4 release. One such capability is called incremental static regeneration, which enables pages to be built and distributed worldwide statically and regenerated when the data changes and is redistributed to the edge.
"This has the effect of massively increasing performance, drastically reducing latency, and you can basically never go offline no matter how big the traffic spike is," Rauch said. "You're basically globally distributed by default."
One of the key use cases for Vercel and Next.js is as part of the JAMstack approach, which has become popular in recent years for building static websites. The drawback of many JAMstack deployments is that it's often challenging to fully enable more dynamic sites in an optimized way, according to Rauch. Next.js is now able to give developers the benefits of JAMstack, including better performance with static websites, as well as the ability to enable dynamic changes, he added.
"The beauty is when your visitors are coming to your website, they're always receiving a statically rebuilt version of that page, meaning that there is never a performance cost that you're passing on to your customers," Rauch said.
Testing on Local Hosts Is Identical to Vercel Edge
Another challenge that Vercel is now taking on is the ability to let developers see exactly how a website or application will perform on its edge network before it's ever deployed.
Typically, developers will deploy to their own system, in a model known as local host, and run code inside of a web browser to see how it will behave. The challenge is that local host isn't the same as a cloud or edge network. With the new Vercel update, it's now possible for developers to deploy to local host and get the same experience as if it were deployed to the edge cloud.
"When you run on local host, you're getting the exact same output that you get when you deploy to a global infrastructure made up of thousands of servers," Rauch said. "That kind of predictability and symmetry between local dev experience and global cloud is powerful."