firebase-app-hosting-basics

Deploy and manage Next.js and Angular apps on Firebase App Hosting.

Updated Aug 5, 2024
One-click install
npx skills add https://github.com/nikhilkakarla/nikhilkakarla.github.io --skill firebase-app-hosting-basics-nikhilkakarla
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: firebase-app-hosting-basics
Source: https://github.com/nikhilkakarla/nikhilkakarla.github.io/tree/main/.agents/skills/firebase-app-hosting-basics
Command: npx skills add https://github.com/nikhilkakarla/nikhilkakarla.github.io --skill firebase-app-hosting-basics-nikhilkakarla

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires firebase-tools, and includes references (resource) components.

What problem does it solve? Deploying full-stack web apps with server-side rendering requires configuring backends, secrets, and CI/CD pipelines, which is error-prone when done manually. This Skill guides the deployment and management of Next.js and Angular apps on Firebase App Hosting using the Firebase CLI. ## Core Features & Use Cases - Deploy from Source: Configure firebase.json and apphosting.yaml, then deploy directly with the Firebase CLI. - Secrets Management: Create and grant access to secrets in Cloud Secret Manager for sensitive environment variables. - Local Emulation: Test your app locally with the Firebase Emulator Suite before deploying, including environment variable injection. - Use Case: You have a Next.js app with SSR and API keys. Use this Skill to configure apphosting.yaml, set secrets via apphosting:secrets:set, and deploy with a single CLI command. ## Quick Start Ask the agent to deploy your Next.js app to Firebase App Hosting and it will configure firebase.json, apphosting.yaml, and run the deploy command.

Frequently Asked Questions about firebase-app-hosting-basics

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy a Next.js app to Firebase App Hosting?▼

Configure an apphosting block in firebase.json with your backendId and rootDir, create an apphosting.yaml file, then run npx firebase-tools@latest deploy. Your Firebase project must be on the Blaze pricing plan.

Firebase Hosting vs App Hosting: which should I use?▼

Use Firebase Hosting for static sites and simple SPAs without SSR. Use App Hosting for full-stack frameworks like Next.js or Angular that need server-side rendering, ISR, or git push to deploy workflows.

How do I set secrets for Firebase App Hosting?▼

Run npx firebase-tools@latest apphosting:secrets:set <secret-name> to create a secret in Cloud Secret Manager, then reference it in apphosting.yaml under the env section using the secret key.

Can I test Firebase App Hosting locally before deploying?▼

Yes, run npx firebase-tools@latest emulators:start --only apphosting to build and serve your app locally on localhost:5004. Use apphosting.emulator.yaml to override secrets and config values for local testing.

Does Firebase App Hosting require a paid plan?▼

Yes, App Hosting requires your Firebase project to be on the Blaze pay-as-you-go plan. You can upgrade through the Firebase console billing page before deploying.