Posts

Showing posts with the label Web App

What Happens Behind the Scenes When You Deploy a Web App

 So, you've written some code, tested your app, and now you're ready to hit "Deploy." But have you ever wondered what actually happens under the hood when you deploy a web application? It’s not just magic — it’s a complex process involving servers, build tools, networking, and security. Whether you're using a cloud platform like AWS or a one-click deploy service like Vercel or Netlify, there’s a lot happening in the background. Let’s break it all down, step-by-step. 1. Build Process Begins Once you hit deploy, the first thing that happens is your source code gets built . This typically involves: Compiling code (TypeScript → JavaScript, SCSS → CSS) Bundling files (Webpack, Rollup) Minifying assets (to reduce file size) Transpiling code for browser compatibility (e.g., Babel) Running tests or linters if configured The result? A folder of production-ready files — HTML, JS, CSS, and other assets — that your server can actually run. 2. Fi...