It looks like Heroku deletes all our compiled files once the app idles down...
I'll look into Digital Ocean—they have a small droplet for $5/month.
Ideally it's possible to store the compiled JS on a CDN but I need to look into how to set this up.
This is the way the app works now.
Request => web server => web server renders server-side => response is a full html page => html page has javascript assets; from then on, it's a SPA. Unless a client refreshes the page, everything is client side.
The idea is that those compiled javascript assets can be uploaded to a CDN so it's much faster. This is independent from where we host our Node server (which does the server-side rendering)
It looks like Heroku deletes all our compiled files once the app idles down...
I'll look into Digital Ocean—they have a small droplet for $5/month.
Ideally it's possible to store the compiled JS on a CDN but I need to look into how to set this up.
This is the way the app works now.
Request => web server => web server renders server-side => response is a full html page => html page has javascript assets; from then on, it's a SPA. Unless a client refreshes the page, everything is client side.
The idea is that those compiled javascript assets can be uploaded to a CDN so it's much faster. This is independent from where we host our Node server (which does the server-side rendering)