Skip to content
Playing with Server Components in Vercel’s Edge Runtime episode artwork

EPISODE · Aug 22, 2022 · 51 MIN

Playing with Server Components in Vercel’s Edge Runtime

from Frontend First · host Frontend First

Ryan tells Sam about some experiments he’s been running using Server Components in Vercel’s new edge runtime. He talks about how components that suspend in the node runtime cause the static build of your Next.js app to wait until they unsuspend, while components that suspend in the edge runtime stream back fallback responses as data is being fetched. Ryan also tells Sam about a blocking JS trick he learned to alter the initial render of your clientside app based on client-specific data, like whether their theme preference is dark or light mode. Topics include: 0:00 - Intro 1:00 - Running synchronous JS before React’s initial render of build-time generated HTML 17:03 - Using getServerSideProps on the edge in Next.js for run-time generated HTML 32:15 - Behavior of Server Components that suspend in edge runtime vs. node runtime Links: Josh Comeau’s post on dark mode Next.js discussion on switchable runtime

Episode metadata supplied by the publisher feed · Published Aug 22, 2022

Embed this episode

Ready to play

Playing with Server Components in Vercel’s Edge Runtime

0:00 51:28

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

No similar podcasts found.

Frequently Asked Questions

How long is this episode of Frontend First?

This episode is 51 minutes long.

When was this Frontend First episode published?

This episode was published on August 22, 2022.

Can I download this Frontend First episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!