Static by default
How to publish an Angular site
Angular builds to a static bundle. The one thing to get right is which folder inside dist to upload.
Choosing a host rather than a command? Angular Hosting covers what it costs and what does not work here.
- Build command
- ng build
- Folder to upload
- dist/<project-name>/browser
Free plan, free SSL, no credit card.
-
Build the project
Run ng build in the project folder. This is the step Droply does not do for you: we publish finished pages, we never run your build.
-
Find the output folder
The build writes a finished site to dist/<project-name>/browser. That folder, not the project folder, is what gets uploaded.
-
Drag it in
Drop the folder (or a ZIP of it) into Droply. It is live on an HTTPS droply.id subdomain in seconds, and re-uploading publishes a new version at the same URL.
Worth knowing about Angular
Upload the
browserfolder insidedist/<project-name>, notdistitself. Angular 17 and later nest the browser build one level deeper than older versions did.If you have enabled SSR or prerendering with
@angular/ssr, the build also emits a server bundle. Only the browser folder is publishable here.
Did an AI tool build this project?
Hosting an AI-generated website covers the question that comes before the build command: whether what you are holding is a single file or a project, and which of the two every tool actually hands back.