2min chapter

Frontend First cover image

Saying goodbye to static generation

Frontend First

CHAPTER

Using Next.js to Generate Multiple Versions of a Page

You can generate multiple versions of a page in Next.js. And then you use middleware at request time to check if the user has a subscription if they're logged in or not. This can work nice, but it's kind of two reasons we didn't go down this road. The first being that it's a little confusing to us as developers,. Like if we have one URL that maps to multiple pages, just a little hard to wrap your head around.

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode