Vai al contenuto principale
ProdottiStrumenti desktopTASTECADVisualizzazione disegniTASTEFILESGestione fileTASTEFTPTrasferimento fileTASTESSHSpazio di lavoro remotoTASTEZIPCompressione ed estrazioneTASTEWINMGestione fileStrumenti per sviluppatoriTASTECODEAmbiente di sviluppo integrato per RustTASTESTUDIOAmbiente integrato di sviluppo e testTASTEETLIntegrazione dati (ETL)ServerTASTEREMOTEServer di desktop remotoTASTEGEOServer geospazialeTASTEMAILSpazio di lavoro emailInvestimentiTASTESTOCKApp desktop di trading automatico azionarioIniziaDownloadDocumentazioneAcquistaTutti i prodotti
Marketplace
Notizie
TecnologiaNotizieNotizie di sviluppo di oggiDocumentazioneLinguaggi di programmazioneRustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDartFramework frontend webNext.jsReactVue.js · NuxtSvelteKitAngularFramework serverSpring BootDjangoFastAPIASP.NET CoreNestJS · ExpressFramework per app e desktopTauriFlutterReact NativeElectronAlgoritmiBasi degli algoritmiAlgoritmi fondamentaliAlgoritmi avanzatiAlgoritmi pratici
CommunityProgettiLog di sviluppoPromptProblemi degli strumenti di IAVetrinaGuida alla community
CollaboraTrasferimento tecnicoRealizzazione del sito webRealizzazione di app desktopPipeline di rilascio e pagamentoPartner commercialeContatti
ServiziDesktop remotoPacchetti di installazione su misura
TASTEDEV
Prodotti

Strumenti desktop

TASTECADApri con leggerezza anche i disegni più complessiTASTEFILESSolo i file che servono, alla massima velocitàTASTEFTPLa via più ordinata per i tuoi fileTASTESSHUn legame più solido tra te e i tuoi serverTASTEZIPComprimi più veloce, estrai più sicuroTASTEWINMUn file manager a due pannelli pensato per la tastiera

Strumenti per sviluppatori

TASTECODEModifica, compila, esegui il debug e testa app Rust in un'unica finestraTASTESTUDIODalla modifica ai test remoti e alle correzioni IA approvateTASTEETLSposta i dati guardando i valori

Server

TASTEREMOTEUn desktop remoto che gira sul tuo serverTASTEGEOUn server geospaziale compatibile con GeoServer, ricostruito in RustTASTEMAILRiprendi il controllo della tua posta

Investimenti

TASTESTOCKTrading automatico azionario secondo le regole che decidi tu: quando e che cosa

Inizia

DownloadUltime versioni di ogni prodottoDocsCome usare ogni prodottoAcquistaAbbonamenti e licenze perpetueTutti i prodottiTutti i prodotti a colpo d’occhio
Tutti i prodotti
MarketplaceNotizie
Tecnologia

Notizie

Notizie di sviluppo di oggiAnnunci ufficiali su linguaggi, framework, GitHub e IADocumentazioneGuide a linguaggi, framework e algoritmi

Linguaggi di programmazione

RustTypeScriptJavaScriptPythonGoC#JavaCC++KotlinDart

Framework

Framework frontend webNext.jsReactVue.js · NuxtSvelteKitAngular
Framework serverSpring BootDjangoFastAPIASP.NET CoreNestJS · Express
Framework per app e desktopTauriFlutterReact NativeElectron

Algoritmi

Basi degli algoritmiAnalisi della complessità · Ordinamento · Ricerca · Strutture dati di base · Alberi e heapAlgoritmi fondamentaliVisita dei grafi · Cammini minimi e alberi ricoprenti · Programmazione dinamica · Algoritmi greedy · Divide et impera · BacktrackingAlgoritmi avanzatiAlgoritmi sulle stringhe · Matematica e teoria dei numeri · Manipolazione dei bit · Alberi di segmenti · Union-FindAlgoritmi praticiStrategia per colloqui di programmazione · Cache LRU · Rate limiting · Hashing consistente
Tutta la documentazione di sviluppo
Community
ProgettiScopri sviluppatori e lavoriLog di sviluppoDecisioni e lezioni appresePromptIstruzioni riutilizzabiliProblemi degli strumenti di IAProblemi e alternative di Claude, Codex, GeminiVetrinaRisultati completatiGuida alla communityCome sviluppiamo in modo aperto
Collabora
Trasferimento tecnicoApp native in Rust ed eguiRealizzazione del sito web10 lingue, account, documentazione e downloadRealizzazione di app desktopRust ed egui, senza WebViewPipeline di rilascio e pagamentoFirma, MSI, deb, rpm, AppImage, hashPartner commercialeConsigliaci e ricevi il 30%ContattiSviluppo, partnership e investimenti
Servizi
Desktop remotoRaggiungi il tuo computer dal browserPacchetti di installazione su misuraSolo il necessario, impostazioni precaricate
Acquista
IT
한국어EnglishDeutschEspañolFrançaisItalianoPortuguês (Brasil)日本語简体中文繁體中文
Accedi
Accedi
TASTEDEV

Dai piccoli strumenti a uno sviluppo migliore.

support@tastedev.netSostieni TASTEDEV
ProdottiGamma di prodottiAcquistaDocsDownloadMarketplaceAssistenza
CommunityProgettiLog di sviluppoPromptProblemi degli strumenti di IAVetrina
NormeChi siamoInformativa sulla privacyTermini di servizioCondizioni di abbonamentoRimborsiLinee guida della community
AccountAccediRegistrati
Visitatori
Oggi
Ieri
Visualizzazioni totali
Società
GXSOFT
Rappresentante
CHOI YOUNG GU
Numero di registrazione
853-44-00368
Indirizzo
9F V24, 351 Gyeongin-ro, Michuhol-gu, Incheon, Republic of Korea
Telefono
+82-10-4404-1523
E-mail
whitecalvin@tastedev.net
Responsabile privacy
CHOI YOUNG GU

© 2026 TASTEDEVLe informazioni sui prodotti si basano su fonti di sviluppo verificate.Rilasciato · in miglioramento

Documentazione di Angular
Angular
Getting Started with AngularProject StructureCore ConceptsData and StateTestingDeployment
Discussioni

Guida a Angular · 6/6

Deployment

Per ora questo capitolo è disponibile solo in inglese.

An Angular app is compiled ahead of time into static JavaScript, CSS and HTML. You can host that output on any static file server or CDN, or add server-side rendering for faster first loads and better SEO. This chapter covers production builds, static hosting, SSR and prerendering.

Production builds

ng build uses the production configuration by default. It compiles templates ahead of time, removes unused code, minifies the output and adds content hashes to file names for long-term caching:

ng build
ng build --configuration development
ng build --base-href /my-app/

The output goes to dist/my-app/browser/. Use --base-href when the app is served from a sub-path instead of the domain root.

Bundle budgets

angular.json can set size budgets so a build warns or fails when bundles grow too large. New projects come with sensible defaults that you can tighten:

"budgets": [
  { "type": "initial", "maximumWarning": "500kB", "maximumError": "1MB" },
  { "type": "anyComponentStyle", "maximumWarning": "4kB", "maximumError": "8kB" }
]

Lazy-loaded routes with loadComponent and @defer blocks are the most effective ways to keep the initial bundle small.

Static hosting

Copy the contents of dist/my-app/browser/ to your web server or hosting service. Because the router handles URLs in the browser, the server must return index.html for any path that is not a real file; otherwise reloading a deep link such as /heroes/42 returns 404. With nginx:

server {
  listen 80;
  root /usr/share/nginx/html;

  location / {
    try_files $uri $uri/ /index.html;
  }
}

A multi-stage Docker image builds the app with Node.js and serves it with nginx:

FROM node:lts-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npx ng build

FROM nginx:alpine
COPY --from=build /app/dist/my-app/browser /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf

ng deploy can publish directly once a deployment package is added, for example ng add @angular/fire for Firebase Hosting or the community angular-cli-ghpages package for GitHub Pages.

Server-side rendering and prerendering

Enable SSR when creating a project with ng new my-app --ssr, or add it later:

ng add @angular/ssr

This adds a Node.js server entry (server.ts, built on Express), server configuration files and client hydration, so the browser reuses the server-rendered DOM instead of rebuilding it. In you choose how each route is rendered:

Domande su questo capitolo?
Capitolo precedenteTesting
app.routes.server.ts
import { RenderMode, ServerRoute } from '@angular/ssr';

export const serverRoutes: ServerRoute[] = [
  { path: '', renderMode: RenderMode.Prerender },
  { path: 'heroes/:id', renderMode: RenderMode.Server },
  { path: '**', renderMode: RenderMode.Client },
];
Render modeWhen HTML is produced
PrerenderAt build time, as static HTML files (SSG)
ServerOn every request, by the Node.js server
ClientIn the browser, like a regular single-page app

Prerendering a route with parameters also requires a getPrerenderParams function that returns the values to build. After ng build, start the server bundle:

ng build
node dist/my-app/server/server.mjs

The ng add @angular/ssr schematic also adds an npm script for this, named like serve:ssr:my-app. Code that runs on the server has no window or document, so guard browser-only work with afterNextRender() or by checking the platform. If every route is prerendered, setting the build's outputMode to static produces files that can go on any static host.

Before you ship

  • Run ng build and the unit tests in CI so broken builds never reach production.
  • Serve files with compression and long cache lifetimes for hashed files, but keep index.html uncached.
  • Keep API URLs in environment files and secrets on the server, never in the bundle.
  • Update regularly with ng update, which migrates code automatically between major versions.

Summary

  • ng build produces an optimized, hashed build in dist/<project>/browser/.
  • Static hosting needs a fallback to index.html for client-side routes.
  • ng add @angular/ssr adds server rendering, hydration and per-route render modes.
  • ng deploy publishes through providers that offer a deployment package.

Official documentation

  • Building Angular apps
  • Deployment
  • Server-side and hybrid rendering
  • Hydration
  • Angular documentation

0 commenti

Commenti principaliPrima i più recenti

Accedi · Accedi per lasciare un commento.