Skip to content

Feature: qualify Nitro v3 service integration and deployment behavior #2534

Closed as not planned

Description

@benpsnyder

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:

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions