3 ms·
The explanation is terrible and long winded. Here it is dumbed down: Vercel resells servers with additional stuff ontop. When you commit code to a git reposito
by internetter 3y ago
The explanation is terrible and long winded. Here it is dumbed down:
Vercel resells servers with additional stuff ontop. When you commit code to a git repository, vercel (optionally) runs a build step (like you would on a workstation). It takes the resulting files (HTML, CSS, JS, ect), and sends them to many servers around the world. When a user requests your site, it chooses the closest one. Those servers are also capable of running small scripts when information is requested from them, to add dynamic content. Metaframeworks (some combination of a backend (like Django) and frontend (like React) framework) can generate this dynamic code.
--- End explanation, que personal thoughts) ---
I quite like this "serverless" methodology, for a variety of reasons. While it's a paradigm shift, it makes my life so much easier. For simple sites, I just write my static files, commit them, and spend... I suppose less than 30 seconds clicking buttons to set it up forever. I never need to worry about server maintenance, uptime, or security. I never need to think about updating remote files. It's also incredibly cheap for my hobby projects, as I'm not renting a server that duplicates the work of every other one on the rack.
- igouy 3y ago? cue
- edmundsauto 3y agoYep, this 100% is my use case (although I use Cloudflare's pages, and use supabase for storage layer). I don't even like writing js, prefer python... but it's so dang easy to use a SSG + js for dynamic content on supabase.