Why Angular and Upsun Go Hand in Hand
Angular’s build-first, static-output architecture aligns naturally with Upsun’s automated deployment platform. Modern Angular Builds + Reproducible Upsun Environments: Angular 21’s optimized Vite-powered builds run in clean, isolated containers on Upsun. You get predictable output, consistent Node versions, and fully repeatable deployments. Angular SPA Output + Upsun Zero-Config Static Hosting: Upsun automatically serves Angular’s generateddist/ output (automatic HTTPS, global caching, compression, instant rollbacks).
Angular Preview Workflows + Upsun On-Demand Environments: Every Git branch deployed on Upsun becomes its own environment with its own URL, perfect for:
- Staging UI updates
- Reviewing component changes
- Demos and feedback rounds
- Validating design improvements
- Add the language of your choice for your backend
- Use managed databases
- Auto-connect services internally
- Inject env variables per environment
- Upsun also handles all service wiring.
Prerequisites
Before you begin, make sure the following requirements are met:- You already have an Upsun account.
If you don’t have an Upsun account, create one here: https://console.upsun.com/ - You have an Angular project ready.
If you don’t have an Angular project, you can follow the official Angular setup guide to create a new project. - Your Angular application builds successfully on your local machine.
You can verify this by checking that a dist/<app-name> directory is created after running:
- The Upsun CLI is installed locally.
If you haven’t installed it yet, you can install it following these instructions.
Let’s get started!
1. Create project
First, you need to create a project with the Upsun CLI (you can also do this through the Upsun Console).- Add project title
- Choose project region
- Define default branch
2. Initialize your project
From the root of your Angular project, run:- Detects your project stack
- Creates the
.upsunfolder - Generates a starter
config.yaml - Connects your project to Upsun (if not already connected)
3. Configure Angular in .upsun/config.yaml
Open the generated file and update it for an Angular static deployment:4. Push Your Code
Once your config is ready add the files to Git and add a commit message:- Builds your Angular app
- Provisions the environment
- Deploys the output
- Provides a live URL
Feature Environments
One of my favorite features of Upsun is environments, as it states in our documentation “You can think of other environments as copies of your live site where you can run tests without worrying about damaging anything in production.” Let’s see how it works. We start by creating a new branch:- UI reviews
- QA
- Demos
- Experimentation
Final thoughts
Angular 21 modernizes the framework with faster builds, better accessibility tools and a fully zoneless future. Upsun complements this perfectly by removing infrastructure complexity and automating deployment end-to-end. Together, they give you:- Predictable builds
- Automated environments
- Global static hosting
- Effortless previews
- Zero maintenance infrastructure