Deploy stack su Proxmox / deploy (push) Failing after 3s
Monorepo npm con apps/public (Angular SSR), apps/private (Angular SPA), apps/api (Fastify), packages/shared e packages/styles; Medusa 2.21 in medusa/; infrastruttura Docker (Postgres PostGIS+pgvector, Redis, Caddy, backup) e workflow Gitea Actions per il deploy via SSH a ogni push su master. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018jQyT6dR9czzGwqb7FkG6u
17 lines
718 B
TypeScript
17 lines
718 B
TypeScript
import { RenderMode, ServerRoute } from '@angular/ssr'
|
|
|
|
/**
|
|
* Tutte le pagine sono renderizzate sul server a ogni richiesta (RenderMode.Server), niente prerender:
|
|
* la configurazione (dominio, URL dell'API) arriva dalle variabili d'ambiente a runtime, mentre il prerender
|
|
* la congelerebbe al momento della build. Il caching si farà con gli header HTTP (prompt 33).
|
|
*/
|
|
export const serverRoutes: ServerRoute[] = [
|
|
// Redirect definitivi (301 invece del 302 di default): URL duplicati da non indicizzare
|
|
{ path: 'azienda/chi-siamo', renderMode: RenderMode.Server, status: 301 },
|
|
{ path: 'soluzioni', renderMode: RenderMode.Server, status: 301 },
|
|
{
|
|
path: '**',
|
|
renderMode: RenderMode.Server,
|
|
},
|
|
]
|