Live data from Hacker News

Next.js 9.5

nextjs.org

31–40 of 40 posts

Re: Next.js 9.5

#31

Incremental Static Site Regeneration is really compelling, I wonder what the gotchas are. For instance, I have a project where the front page gets server-side-rendered for logged out users. We can't do client-side-rendering because we care about SEO. And we can't do static-generation at build time because the content of the front page regularly changes (it summarizes activities of other users). But with incremental s…

Can’t you just stick a Cloudflare cache in front of it and call it a day?

Re: Next.js 9.5

#32
post #10

It's interesting that the React Router team, which is building the competing Remix framework (similar to Next but based on React Router) is arguing that instead of supporting static page generation, they will just urge their users to use CDNs with aggressive caching rules.

This instinctively makes more sense to me.

Still, good to have options. It will be interesting to see how Remix is received once it launches. Next is currently peerless for DX-friendly React frameworks.

Re: Next.js 9.5

#33
post #11
post #5

Earlier quoted context omitted.

I haven't really kept up to date in this area so would love to hear some experts weigh in here: Do search engines (or really just Google) still penalize sites that are pure SPAs on that fact alone? Or does it have more do do with properties generally associated with SPAs like large bundle sizes or slow time to first interaction? I'm mainly wondering if you can build a SEO-friendly SPA marketing page today using techn…

> Do search engines (or really just Google) still penalize sites that are pure SPAs on that fact alone? Google says that they don't. They use an evergreen googlebot, which is the latest (or thereabouts) release of headless Chrome browser; and it waits for the scripts to load and executes them. You can watch Martin Splitt's talk from the recent web.dev live event for the latest updates. Server-side rendering is still…

do you have a link to the talk?

Re: Next.js 9.5

#34
post #30

i love vercel and use it for all my projects, right up until i need to add auth/api, at which point I switch off of it immediately for security reasons because there are no static IPs unless you're an "enterprise" customer it's unclear why they're rolling out performance features while this critical security hole persists. no doubt i'll get flamed for it, but, it's a really bad idea to use dynamic IPs to connect to y…

Can you expand on what the static IPs give you?

For use in firewall rules

Re: Next.js 9.5

#35

i love vercel and use it for all my projects, right up until i need to add auth/api, at which point I switch off of it immediately for security reasons because there are no static IPs unless you're an "enterprise" customer it's unclear why they're rolling out performance features while this critical security hole persists. no doubt i'll get flamed for it, but, it's a really bad idea to use dynamic IPs to connect to y…

oh yeah, I remember running into that problem when I was using a database on Digital Ocean and wanted to add vercel api routes as a trusted source. I had also switched off of it because of that. However, I had a look at their blog the other day and apparently they have an Anycast IP range now, which probably solves this issue https://vercel.com/blog/new-edge-dev-infrastructure#vercel's.... I haven't tried it yet though

Re: Next.js 9.5

#36

Incremental Static Site Regeneration is really compelling, I wonder what the gotchas are. For instance, I have a project where the front page gets server-side-rendered for logged out users. We can't do client-side-rendering because we care about SEO. And we can't do static-generation at build time because the content of the front page regularly changes (it summarizes activities of other users). But with incremental s…

Maybe I'm missing something, but ultimately, isn't this just a re-invention of a site-wide cache? Back in the day, in Django/Drupal/any CMS, for anonymous users, you'd just dump each page into memcached with a path URL. Then when a new anonymous visitor comes, you load it right up from – extremely fast – memory. Maybe even faster than loading from the file system? Nginx can actually ask memcached directly, even bypas…

> isn't this just a re-invention of a site-wide cache?

> It feels like we've gone full circle.

You are not wrong, it is the same thing. Now we are waiting for another revolutionary invention when it comes to caching - partial caching. Probably it could be called RESI or NESI - something like that for sure.

Re: Next.js 9.5

#37
post #33
post #11

Earlier quoted context omitted.

> Do search engines (or really just Google) still penalize sites that are pure SPAs on that fact alone? Google says that they don't. They use an evergreen googlebot, which is the latest (or thereabouts) release of headless Chrome browser; and it waits for the scripts to load and executes them. You can watch Martin Splitt's talk from the recent web.dev live event for the latest updates. Server-side rendering is still…

do you have a link to the talk?

Yes: https://youtu.be/himvKu12YCY

Re: Next.js 9.5

#38
post #12
post #10

It's interesting that the React Router team, which is building the competing Remix framework (similar to Next but based on React Router) is arguing that instead of supporting static page generation, they will just urge their users to use CDNs with aggressive caching rules.

I'd imagine the hard part with that approach would be cache invalidation. I'm curious to see how they try and address it.

You could use webhooks on deploy to call your CDN's API to purge the cache. Otherwise, I guess just keep it time-based.

Re: Next.js 9.5

#39
post #31

Incremental Static Site Regeneration is really compelling, I wonder what the gotchas are. For instance, I have a project where the front page gets server-side-rendered for logged out users. We can't do client-side-rendering because we care about SEO. And we can't do static-generation at build time because the content of the front page regularly changes (it summarizes activities of other users). But with incremental s…

Can’t you just stick a Cloudflare cache in front of it and call it a day?

I'm still exploring this, but my sense is that with Next.JS, the cached version is still deposited on the edge cache at build time, so you don't have that first expensive query. Not sure if you can do something like that with Cloudflare alone.

Second is that with Next.JS, expiration means that it gets built and re-deposited onto the edge cache in the background, without ever needing that expensive query. Again, not sure if you can do something like that with Cloudflare alone.

Re: Next.js 9.5

#40
post #24

Great product. Them deciding to rebrand from Zeit to Vercel was one of the worst branding decisions ever made.

Curious, why do you think that? Any rebranding will have backlash. It solved the issue of ZEIT Now being one _product_ whereas Vercel is the _platform_. It also brought a new focus on Jamstack and front-end developers. I'll admit I'm biased though, as I'm a Vercel customer.

They could’ve just used ZEIT as the platform then. Vercel sounds like some generic VC created tech name. Their customer base is literally the exact opposite. Indie developers, people with Github accounts, technical engineers, engineering leaders. Not some Salesforce CRM enterprise selling to CEO’s marketing bs “Vercel” lol.
Post reply on HN