Repository navigation
Description
Problem and use case
Analog's current alpha already pins Nitro 3.0.260903-beta, but parts of its integration still force older bundling/runner behavior, guess generated SSR entry paths, and alter Nitro chunk configuration. Applications using Angular SSR, page loaders/actions, custom output directories, and Cloudflare development need equivalent request and deployment behavior across supported Vite versions.
Proposed change
Use Nitro's shared SSR service graph and default Rolldown builder; retain explicit options and Vite 6–8 progressive compatibility. Preserve trusted rendering rules, response metadata/streaming/cancellation, request-local credentials, GET/HEAD behavior, static prerender isolation, and portable runtime dependencies. Add reusable Node and Cloudflare conformance targets and a Linux/Windows CI matrix.
Two reproduced dependency bugs currently require temporary, version-specific pnpm patches for qualification:
- Miniflare drops Request method, headers and body — unjs/env-runner#46
- Zone.js causes repeated Node requests to return 500 — h3js/srvx#302
Both upstream reports contain standalone reproductions, expected/actual results, use cases, and suggested AI implementation prompts. Patches should be removed when fixed releases pass the same regressions. Workspace patches are not automatically included in published Analog packages.
Example acceptance scenario
An Angular application renders /about repeatedly under Zone.js; two concurrent authenticated page loads preserve distinct cookies; a Cloudflare development POST preserves method, authorization, and a streamed body. Node and Cloudflare production fixtures preserve status, multiple Set-Cookie headers, assets and HEAD behavior. Static builds produce rendered HTML without an unnecessary final server bundle.
Suggested AI implementation prompt
Review Analog's native Nitro Vite integration and standalone fallback against Nitro 3.0.260903-beta. Replace obsolete integration workarounds with supported upstream APIs while preserving Vite 6–8 compatibility and explicit user settings. Add temporary pnpm patches for unjs/env-runner#46 and h3js/srvx#302 with independent regression tests and removal criteria. Qualify real Angular development, Node production, static prerendering, Cloudflare local development/production, and strict packed consumers. Report failed or unrun checks explicitly; do not claim speed improvements without comparable measurements.
Activity