-
Notifications
You must be signed in to change notification settings - Fork 2.2k
docs: the App Check guide does not cover server-side rendering #3774
Copy link
Copy link
Open
Labels
comp: app-checkApp Check (src/app-check).App Check (src/app-check).comp: docsDocumentation.Documentation.comp: ssrServer-side rendering, hydration, @angular/ssr interop.Server-side rendering, hydration, @angular/ssr interop.type: choreMaintenance with no user-facing behavior change.Maintenance with no user-facing behavior change.version: current (v17+)Targets the current modular API (v17+).Targets the current modular API (v17+).
Description
Activity
Metadata
Metadata
Assignees
Labels
comp: app-checkApp Check (src/app-check).App Check (src/app-check).comp: docsDocumentation.Documentation.comp: ssrServer-side rendering, hydration, @angular/ssr interop.Server-side rendering, hydration, @angular/ssr interop.type: choreMaintenance with no user-facing behavior change.Maintenance with no user-facing behavior change.version: current (v17+)Targets the current modular API (v17+).Targets the current modular API (v17+).
docs/app-check.mdhas no guidance for server-rendered apps.What I found
ReferenceError: document is not defined(Using with Angular 17 SSR -> document is not defined on initializeAppCheck #3488, AppCheck Build Error During Prerender for Angular SSR #3128). The reCAPTCHA providers need a browser.mainsince fix(app-check)!: skip App Check during server rendering by default #3773, not yet in a published release, AngularFire no longer creates an App Check instance during server rendering. The guide does not say:inject(AppCheck)is thennullon the server,APP_CHECK_ON_SERVER,Scope
Documentation only. #3256 asks for App Check documentation more broadly.