Next.js Discord

Discord Forum

cost valuation and CDN

Unanswered
Orinoco Crocodile posted this in #help-forum
Open in Discord
Orinoco CrocodileOP
Hello everyone
In my company we have a simple CSR project for a CMS like website
I wanna improve the quality of the site by improving core web vital factors, I believe next.js could be a great option using SSR for dynamic contents and SSG for static contents, after doing some research I couldn't find answers for these two questions:
1. How can I put static content on the CDN and set up a pipeline for incremental updates?
2. How can I compute the costs based on current requests/seconds for new website with SSR and convince my manager that next.js is a good option based on cost/value ratio

1 Reply

put static content on the CDN
That's handled by hosting platforms like Vercel/Netlify, they will ship your static assets to CDN. You don't need any extra configurations for that
Next.js highly relies on your hosting platform, you may not unlock the full power of Next.js (e.g. edge runtime) with a custom server.

set up a pipeline for incremental updates?
What is your pipeline? Assume you update the content via webhooks, you can easily revalidate a page with revalidatePath in a route handler (if you use App Router)
Of course, read the docs for further details. They have a detailed guide on that

How can I compute the costs based on current requests/seconds for new website with SSR and convince my manager that next.js is a good option based on cost/value ratio
That really depends on your scale and hosting platform, normally for a blog, it’s almost zero cost since hosting static assets is cheap nowadays. The migration would cause about 1 week for a medium scale application, but overall your DX would be slightly better than before.

However, it might not bring more value to your app aside from better load speed & SEO, it is worth considering though