Skip to content

Add SSR Skill#80

Open
maneesht wants to merge 8 commits intomainfrom
mtewani/add-ssr-skill
Open

Add SSR Skill#80
maneesht wants to merge 8 commits intomainfrom
mtewani/add-ssr-skill

Conversation

@maneesht
Copy link
Copy Markdown
Contributor

No description provided.

@gemini-code-assist
Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@maneesht
Copy link
Copy Markdown
Contributor Author

/gemini review

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a comprehensive set of documentation and reference guides for using Firebase in Server-Side Rendering (SSR) environments, including Next.js, Remix, and Angular. The guides focus on critical patterns like request isolation via initializeServerApp and handling non-serializable Firestore types. Review feedback highlights several necessary corrections: replacing absolute local file paths with relative ones, correcting Next.js version and configuration references, updating a deprecated Angular SSR package, and resolving conflicting logic in the Angular serialization examples regarding Auth and Firestore data.

Comment thread skills/firebase-ssr/SKILL.md Outdated
Comment thread skills/firebase-ssr/references/nextjs.md
Comment thread skills/firebase-ssr/references/angular-ssr.md Outdated
Comment thread skills/firebase-ssr/references/angular-ssr.md Outdated
maneesht and others added 3 commits April 16, 2026 10:57
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

### 4. Other Firebase Products (RTDB, Storage, Functions)

The `initializeServerApp` pattern is not limited to Firestore; you can safely initialize the client SDKs for Realtime Database, Cloud Storage, and Cloud Functions on the server. Because the app instance is authenticated via `authIdToken`, these calls will securely interact with Firebase infrastructure using the requesting user's identity.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this supposed to say "auth"? I didn't see any description of how to use initializeServerApp with Firestore above.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I don't think I follow. Do you mean that it should say:

Suggested change
The `initializeServerApp` pattern is not limited to Firestore; you can safely initialize the client SDKs for Realtime Database, Cloud Storage, and Cloud Functions on the server. Because the app instance is authenticated via `authIdToken`, these calls will securely interact with Firebase infrastructure using the requesting user's identity.
The `initializeServerApp` pattern is not limited to Auth; you can safely initialize the client SDKs for Realtime Database, Cloud Storage, and Cloud Functions on the server. Because the app instance is authenticated via `authIdToken`, these calls will securely interact with Firebase infrastructure using the requesting user's identity.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't sure, that was my best guess at what you meant, since Firestore wasn't mentioned.

Comment thread skills/firebase-ssr/SKILL.md Outdated

// Must be called for every incoming request handling routine
const app = initializeServerApp(firebaseConfig, {
authIdToken: extractedToken // Provided by framework-specific headers
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

initializeServerApp also takes an appCheckToken, does that need to be mentioned here, and how to use it? I guess it's in this official documentation page, do you expect the agent to already have found and read this page? https://firebase.google.com/docs/web/ssr-apps#:~:text=Use%20App%20Check%20in%20SSR%20environments,-App%20Check%20enforcement&text=The%20resulting%20token%20is%20then,initialization%20of%20the%20FirebaseServerApp%20instance.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants