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>/browserfrom Angular 17 on. Use that path, notdist. - Running
ng servein production. The dev server is for your laptop. The build and the start command are what Livops runs. - A hard-coded port. Read
PORTfrom 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
- Angular — Build a project (angular.dev). Checked .
- Angular — Server-side rendering (angular.dev). Checked .
- Angular — Deployment (angular.dev). Checked .
Put your project online today
Connect GitHub or drop a folder. No card is asked for.
Deploy your Angular appRelated
- Error: error:0308010C:digital envelope routines::unsupported (ERR_OSSL_EVP_UNSUPPORTED): how to fix itError: error:0308010C:digital envelope routines::unsupported with code ERR_OSSL_EVP_UNSUPPORTED means an old build tool, usually webpack 4 inside an old Create React App, Vue CLI or Next.js, asked Node.js 17 or later for the md4 hash, which OpenSSL 3 no longer allows by default. Upgrade the build tool (webpack 5.61 or later, react-scripts 5); NODE_OPTIONS=--openssl-legacy-provider is only a stopgap.
- SvelteKit hosting in 2026: adapter-node, adapter-static or adapter-autoIn SvelteKit the adapter decides the hosting: adapter-static makes files any static host serves, adapter-node makes a Node server, and adapter-auto picks a serverless platform's own adapter. On Livops an adapter-static build is a free site, and an adapter-node build runs as a web app for 39 credits a month (39,000 so'm); adapter-auto is swapped for adapter-node in the build. Here is which to choose, and how Vercel, Netlify, Cloudflare and Render compare.
- Nuxt hosting in 2026: server-rendered or static, and where to run eachA Nuxt app is either a Node server that nuxt build makes, or a folder of pages that nuxt generate prerenders, and the host you need follows from which. On Livops the static build is a free site, and the server build runs as a web app for 39 credits a month (39,000 so'm); you choose when you import the repository. Here is how Vercel, Netlify, Cloudflare and Render compare.
- Next.js hosting without Vercel: the options comparedNext.js runs on any host that runs Node: next build, then next start, and every feature works, Server Actions and image optimization included. On Livops a repository with next in package.json runs as a server from a push for 39 credits a month (39,000 so'm), and a static export is free. Here is how Vercel, Render, Railway, Fly.io and a VPS compare.
- Free static site hosting in 2026: the free tiers comparedA static site — plain HTML, or a Vite, React or Astro build, or a Lovable export — is free on all five. The differences are the limits: Netlify pauses every site when 300 monthly credits run out, Vercel Hobby is for non-commercial use only, GitHub Pages is not for running a business, and Cloudflare Pages does not count static traffic. On Livops up to 30 sites are free, on your own domain, with no card asked for.
- npm failed with return code 1 (npm ERR! code 1): how to fix the buildnpm failed with return code 1, or npm install exited with 1, is npm ERR! code 1 in newer npm: it only says that a script npm ran exited with code 1. The real error is printed above it: usually a compile or type error, a lockfile out of sync with package.json, or a dependency whose install script failed. Find the first error line above code 1, fix that, and the build passes.
- JavaScript heap out of memory during next build: how to fix itNode's JavaScript heap reached its limit while Next.js was building, and V8 stopped the process. Raise the heap limit with NODE_OPTIONS=--max-old-space-size, staying below the memory the build really has, and cut what the build holds in memory: source maps, type checking during the build, and heavy dependencies.