Skip to content

Deploying a Universal Application

A Universal app runs a Node.js server that renders Angular pages.

Build the application

Terminal window
ng build
ng run project-name:server

Start the server

Terminal window
node dist/project-name/server/main.js

Explanation

Common deployment platforms:

  • Node.js servers
  • Docker containers
  • Cloud providers (AWS, Vercel, Firebase Hosting)

SSR servers render HTML before sending it to the client.