Introducing Livops 2.0! Promo codeCEOgives you 8,000 so‘m on your balance.What’s new

Angular hosting in 2026: how to deploy an Angular app, static or with server rendering

An Angular app is recognised from @angular/core and built to static files in dist. Angular 17 and later write them into a browser folder inside dist, and an app that renders on the server needs a Node process. Livops handles both and tells you which one your project is.

By Livops team, the people who build and run LivopsUpdated

Angular builds a static site by default. You run npm run build, and the browser files are written into dist. Livops reads your package.json, recognises Angular from @angular/core, and sets the commands for you. You can change them in the cabinet or in a livops.json file.

Static Angular app

Use these commands:

  • build: npm run build
  • output: dist

Angular names the output folder after your project, and since version 17 it puts the browser files in a browser folder inside that. For a project called shop, the files are in dist/shop/browser. If the output folder is wrong, the page is blank or shows a 404. Set the output folder to the folder that holds index.html, for example dist/shop/browser, and deploy again. The build log lists the folder it wrote.

Livops serves unknown addresses with the app’s index.html, so a page you open or reload at /about still works. That is the router’s job, and the server does not need any setting for it.

Angular with server rendering

If the project uses @angular/ssr, pages are rendered on the server for each request. A static folder cannot do that, so it runs as a Node process. Livops finds the serve:ssr script that ng add @angular/ssr wrote and starts it. The start command looks like this:

node dist/shop/server/server.mjs

The app listens on the PORT that Livops sets. Do not hard-code a port. Set the health check path to /, or to a page that always answers. If the check fails, the app is restarted.

Old Angular versions

Angular CLI versions before 12 use webpack 4, which fails with ERR_OSSL_EVP_UNSUPPORTED on newer Node versions. Livops applies the legacy OpenSSL setting for those projects, so you do not need to change anything. If the build still fails, check the log for the first error line.

Environment variables

Put secrets and settings in the Variables section of the cabinet. Variables that start with PUBLIC_ are written into the page at build time, so a change needs a new deploy. Angular reads its own build-time values from the environment files, so put values that the browser needs there, and never a secret.

Common mistakes

  • Wrong output folder. The files are in dist/<project>/browser from Angular 17 on. Use that path, not dist.
  • Running ng serve in production. The dev server is for your laptop. The build and the start command are what Livops runs.
  • A hard-coded port. Read PORT from the environment.
  • Secrets in environment.ts. Those files are compiled into the page that every visitor downloads.

If your app uses another framework, the same rule holds: static output is free, a server app is paid by memory. See free static site hosting for the free path, and Next.js hosting or Nuxt hosting for other frameworks.

Questions

Is an Angular site free to host on Livops?

A static Angular app is. It is built to files and served as they are. An app that renders on the server runs as a Node process, so it is a web app and is paid by the memory it uses.

Why is my Angular site a blank page or a 404 after deploy?

Usually the output folder is wrong. Since Angular 17 the files are in dist/<project name>/browser, not in dist. Set the output folder to that path in the project settings, then deploy again.

Which command starts an Angular app with server rendering?

The serve:ssr script that ng add @angular/ssr wrote, which runs node dist/<project name>/server/server.mjs. Livops finds that script in package.json and uses it.

Sources

  1. Angular — Build a project (angular.dev). Checked .
  2. Angular — Server-side rendering (angular.dev). Checked .
  3. Angular — Deployment (angular.dev). Checked .

Put your project online today

Connect GitHub or drop a folder. No card is asked for.

Deploy your Angular app

Got a question? — @livops_uz