Skip to content

Misleading Angular SSR warning #10362

@swseverance

Description

@swseverance

[REQUIRED] Environment info

firebase-tools: 15.14.0
angular cli: 21.2.7

Platform: macOS

[REQUIRED] Test case

  1. Generate a new Angular workspace that does not use SSR:
ng new angular-workspace-nossr --style css --ssr false --ai-config none
cd angular-workspace-nossr
  1. Init hosting
firebase init hosting
  1. Select a project

  2. Observe the following warning:

Detected a Angular codebase with SSR features. We can't guarantee that this site will work on Firebase Hosting, which is
optimized for static sites. Another product, Firebase App Hosting, was designed for SSR web apps. Would you like to use App
Hosting instead? Learn more here: https://firebase.google.com/docs/app-hosting/product-comparison#hostings

[REQUIRED] Steps to reproduce

Follow the test case

[REQUIRED] Expected behavior

There should be no warning. The Angular workspace is not using SSR features. For reference, if you want to create an Angular workspace that does use SSR you can run the following command:

ng new angular-workspace-ssr --style css --ssr true --ai-config none

[REQUIRED] Actual behavior

There is a warning

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions