> Canonical URL: https://codingcat.dev/post/firebase-2026-03-apphosting-march-update

# App Hosting has in-console environment variables and faster builds in Firebase: Web Architecture & Implementation Guide

✏️ Blog PostMarch 13, 2026[![](/logos/firebase/firebase-symbol.png)![](/logos/firebase/firebase-symbol.png)Firebase](/topic/firebase)[![](/logos/tags/google-cloud-symbol-light.svg)![](/logos/tags/google-cloud-symbol-dark.svg)Google Cloud](/topic/google-cloud)[#WebDev](/topic/webdev)[![](/logos/tags/nextjs-symbol-light.svg)![](/logos/tags/nextjs-symbol-dark.svg)Next.js](/topic/nextjs)[#Serverless](/topic/serverless)[![](/logos/tags/angular-symbol-light.svg)![](/logos/tags/angular-symbol-dark.svg)Angular](/topic/angular)[![](/logos/tags/typescript-symbol-light.svg)![](/logos/tags/typescript-symbol-dark.svg)TypeScript](/topic/typescript)[![](/logos/tags/astro-symbol-light.svg)![](/logos/tags/astro-symbol-dark.svg)Astro](/topic/astro)

# App Hosting has in-console environment variables and faster builds in Firebase: Web Architecture & Implementation Guide

![CodingCat.dev tutorial cover image](https://cdn.sanity.io/media-libraries/mlttp0BZbCpV/images/47a63d1d4f4fc9eac2b09359a1e6b3935ae2f0fa-1200x630.svg?w=1200&q=82&fit=max&auto=format)[![Alex Patterson](https://cdn.sanity.io/media-libraries/mlttp0BZbCpV/images/a606dfaa381aab08ddbe16a33fe1d3e1fb37c927-400x400.jpg?w=96&h=96&q=82&fit=max&auto=format)Alex Patterson](/author/alex-patterson)

Deploying server-rendered Next.js, Angular, or Astro apps alongside Firebase used to require stitching together custom Cloud Functions rewrites or managing separate Cloud Run containers by hand. Following the announcement of **App Hosting has in-console environment variables and faster builds**  by Julia Reid on the [**Official Firebase Blog**](https://firebase.blog/posts/2026/03/apphosting-march-update/) (2026-03-12), here is our hands-on CodingCat.dev breakdown of what actually shipped, how it works under the hood, and how we wire it into production TypeScript, Next.js, Astro, SvelteKit, React, and Angular applications. We’re thrilled to walk you through a fresh set of updates for Firebase App Hosting! These new features, designed to speed up your deployment workflow, include an interface for managing environment variables in the Firebase console and faster deployment times.

## The Mental Model: Why App Hosting has in-console environment variables and faster builds Matters for Web Devs

As a Google Developer Expert (GDE) for Firebase and Senior Solutions Architect at CodingCat.dev, I evaluate every Firebase update through one lens: does it reduce boilerplate while keeping our runtime security and cloud bills predictable? Firebase App Hosting automates Git-driven Cloud Build pipelines, Cloud Run scaling, CDN caching, and Secret Manager integration so full-stack SSR frameworks run natively on Google Cloud infrastructure.

> AJ Pro-Tip from Alex: Set explicit maxInstances and concurrency limits in your apphosting.yaml file and cache public SSR responses at the CDN edge so traffic spikes do not trigger unnecessary Cloud Run cold starts.

## How It Works: Technical Breakdown & Implementation

### Manage environment variables in the Firebase console

Today, In this update, the Firebase team announced that you can add and edit App Hosting environment variables in the Firebase console!

You can add environment variables when creating a new App Hosting backend:

Or add them later in backend **Settings**. To manage environment variables for an existing backend, navigate to **View Backend >> Settings >> Environment ** and then add, edit, or delete environment variables.

**Pro tip: ** To speed up migrating an existing app to App Hosting, you can [**copy and paste content directly from your dotenv files**](https://firebase.google.com/docs/app-hosting/configure#dotenv-files) into the Firebase console.

Environment variables set in the console are visible to any user who has access to your project. For sensitive information like API keys, I recommend using Cloud Secret Manager for more granular access control. You can [**use the firebase apphosting:secrets:set CLI command**](https://firebase.google.com/docs/app-hosting/configure#secret-parameters) to create and add secret references in `apphosting.yaml`.

The Firebase console and `apphosting.yaml` can be used in tandem to define environment variables and secrets for your backend. Firebase App Hosting merges the configurations, with **console values always taking precedence over conflicting values in apphosting.yaml. ** Learn more about the order of precedence [**in the docs**](https://firebase.google.com/docs/app-hosting/configure#variable-hierarchy).

To view the final set of merged environment variables for a rollout, navigate to the **Rollouts ** tab and click on the rollout. In the side panel, you’ll find the complete list of environment variables used and their sources.

You’ll notice a few Firebase system environment variables: `FIREBASE_CONFIG` and `FIREBASE_WEBAPP_CONFIG`. These are populated by Firebase App Hosting at build time to [**automatically initialize the Firebase SDKs**](https://firebase.google.com/docs/app-hosting/firebase-sdks#automatically-initialize-firebase-admin-and-web-sdks). You can override the default values for these system environment variables in the Firebase console or in `apphosting.yaml`.

To learn more about App Hosting environment configuration, check out [**Configure and manage App Hosting backends**](https://firebase.google.com/docs/app-hosting/configure).

### Faster builds

Firebase App Hosting [**uses Cloud Native Buildpacks**](https://firebase.blog/posts/2025/06/app-hosting-frameworks/#the-nodejs-buildpack) to transform your application source code into production-ready container images. We recently optimized the App Hosting build process by directly invoking the buildpack binary rather than using the `pack` CLI command, eliminating an unnecessary image pull step. Our internal monitoring suggests this small change has reduced p50 build times by **~18% ** and p99 build times by **~27%**.

Improving App Hosting builds continues to be a focus area for us. Stay tuned for future optimizations!

## Show Me the Code: TypeScript & Web SDK Setup

Here is the production baseline pattern we use at CodingCat.dev when wiring App Hosting has in-console environment variables and faster builds into a modern TypeScript web application:

Copied! 🐾

```
import { initializeApp, getApps } from "firebase/app";
import { getFirestore, collection, query, where, getDocs } from "firebase/firestore";
import { getAuth } from "firebase/auth";

const firebaseConfig = {
  apiKey: process.env.NEXT_PUBLIC_FIREBASE_API_KEY,
  authDomain: process.env.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN,
  projectId: process.env.NEXT_PUBLIC_FIREBASE_PROJECT_ID,
};

export const app = getApps().length ? getApps()[0] : initializeApp(firebaseConfig);
export const db = getFirestore(app);
export const auth = getAuth(app);
```

## Production Web Architecture & Security Checklist

Whether we are deploying on [**Firebase App Hosting**](https://firebase.google.com/docs/app-hosting), Cloudflare Workers, or Vercel, shipping Next.js features to production requires defense-in-depth across three layers:

- **Enforce Firebase App Check & Attestation: ** Protect your web endpoints, Cloud Functions, Data Connect GraphQL resolvers, and Firebase AI Logic calls against unauthorized replay or billing abuse using [**Firebase App Check with reCAPTCHA Enterprise**](https://firebase.google.com/docs/app-check).
- **Validate Locally with the Firebase Emulator Suite: ** Run deterministic integration tests against local Firestore, Auth, Functions, and Data Connect PostgreSQL emulators before promoting schema or rule changes to production.
- **Keep Server & Client Boundaries Type-Safe: ** Use the modular Firebase Web SDK and generated TypeScript bindings so SSR frameworks like Next.js, Astro, SvelteKit, and Angular serialize state cleanly without hydration flickers.

## Conclusion

Accelerate your full-stack web and AI development by pairing **App Hosting has in-console environment variables and faster builds**  with strict Security Rules, Firebase App Check, and local emulator testing. Come tell us on [**X (@CodingCatDev)**](https://x.com/CodingCatDev) and [**LinkedIn (CodingCat.dev)**](https://www.linkedin.com/company/codingcatdev) how you are using Firebase in your stack, and subscribe to the [**CodingCat.dev YouTube Channel**](https://www.youtube.com/@CodingCatDev?sub_confirmation=1) so you don't miss what we build next!

## Watch Our Related Firebase Video Tutorial on YouTube

Want to see how we architect and debug Firebase web applications live? Watch our related CodingCat.dev session [**Building a web application with Next.js and Firebase - Firebase Summit 2021**](https://youtu.be/kHrIyTLVerg) below, and make sure to [**Subscribe to CodingCat.dev on YouTube**](https://www.youtube.com/@CodingCatDev?sub_confirmation=1) for weekly full-stack web and AI deep dives:

![](https://i.ytimg.com/vi/kHrIyTLVerg/maxresdefault.jpg)[@CodingCatDev62.5K / 100K Subscribers Goal](https://www.youtube.com/@codingcatdev?sub_confirmation=1)[Subscribe on YouTube→](https://www.youtube.com/@codingcatdev?sub_confirmation=1)[Watch on YouTube App ↗](https://www.youtube.com/watch?v=kHrIyTLVerg&list=UUnKZ8gEb78zXKMi1ns-IQ2g)

## Resources, Official Docs & Related CodingCat.dev Guides

- **Primary Release Source: ** [App Hosting has in-console environment variables and faster builds on the Official Firebase Blog](https://firebase.blog/posts/2026/03/apphosting-march-update/) (published 2026-03-12 by Julia Reid)
- **Official Firebase Documentation: ** [Firebase Developer Docs & Web SDK Reference](https://firebase.google.com/docs/web/setup)
- **Related on CodingCat.dev: [Firebase A/B Testing is now available for the web](/post/firebase-2026-03-ab-testing-for-web)**
- **Related on CodingCat.dev: [Introducing no-cost trials for Data Connect](/post/firebase-2026-03-fdc-ift)**
- **Related on CodingCat.dev: [Firebase SQL with Data Connect](/podcast/firebase-sql-with-data-connect)**
- **Related on CodingCat.dev: [Build a Custom No-Code App in 90 Minutes](/podcast/build-a-custom-no-code-app-in-90-minutes)**

## Frequently Asked Questions (FAQ)

### What are the key capabilities introduced in App Hosting has in-console environment variables and faster builds?

App Hosting has in-console environment variables and faster builds (announced 2026-03-12 by the Firebase team) enhances the platform for Firebase, Google Cloud, Web Dev, Next.js, Serverless workloads. We’re thrilled to walk you through a fresh set of updates for Firebase App Hosting! These new features, designed to speed up your deployment workflow, include an interface for managing environment variables in the Firebase console and faster deployment times. Developers can review the primary announcement on the [**Firebase Blog**](https://firebase.blog/posts/2026/03/apphosting-march-update/) alongside our implementation patterns and production checklist above.

### How do web developers use App Hosting has in-console environment variables and faster builds with Next.js, SvelteKit, React, or Angular?

Web developers can integrate these features using the modular Firebase JavaScript/TypeScript SDK, Firebase Data Connect web bindings, and [**Firebase App Hosting**](https://firebase.google.com/docs/app-hosting). Always pair client-side SDK initialization with Firebase App Check and strict Security Rules, and test locally with the Firebase Local Emulator Suite before deploying.

### Where can I watch video tutorials on Firebase Web and AI development?

You can watch our hands-on Firebase video walkthroughs on the [**CodingCat.dev YouTube Channel**](https://www.youtube.com/@CodingCatDev?sub_confirmation=1), including [**Building a web application with Next.js and Firebase - Firebase Summit 2021**](https://youtu.be/kHrIyTLVerg), and follow us on [**X (@CodingCatDev)**](https://x.com/CodingCatDev) for weekly full-stack tutorials.

✏️ Visual Architecture Diagram

## how this post connects together.

Follow AJ from first principles to production-ready architecture.

Let’s build it!✏️ Visual Diagram: App Hosting has in-console environment variables…✓ Good PatternVISUAL DIAGRAM[Diagram Walkthrough]Step-by-step diagram breakdown for App Hosting has in-console environment variables and faster builds in Firebase: Web Architecture & Implementation Guide: start with App Hosting has in, implement Hands-On Implementation, and ship to production.AAA Contrast Verified▶ Watch on @CodingCatDev YouTubeRelated Course & Video

## Watch the Related Video Deep Dive: The Odin Project 6: Modern React 19, State Architecture & TypeScript

Master React 19 components, strict TypeScript props, derived state vs. useEffect traps, Server Actions, and island hydration in Astro.

[View Full Page →](/course/odin-modern-react-and-typescript)![](https://cdn.sanity.io/images/hfh83o0w/production/1a3aad1e42061d9c384f723cdec562e1aa2afd24-1376x768.png?rect=6,0,1365,768&w=1920&h=1080&q=82&fit=max&auto=format)[@CodingCatDev62.5K / 100K Subscribers Goal](https://www.youtube.com/@codingcatdev?sub_confirmation=1)[Subscribe on YouTube→](https://www.youtube.com/@codingcatdev?sub_confirmation=1)[Watch on YouTube App ↗](https://www.youtube.com/watch?v=3AN-lzvfBnA&list=PLTOaBmq-zBdg)

## related deep dives.

[All Blog Posts&rarr;](/blog)[![The Odin Project 6: Modern React 19, State Architecture & TypeScript](https://cdn.sanity.io/images/hfh83o0w/production/1a3aad1e42061d9c384f723cdec562e1aa2afd24-1376x768.png?w=1376&q=82&fit=max&auto=format)](/course/odin-modern-react-and-typescript)November 4, 2026[![](/logos/tags/react-symbol-light.svg)![](/logos/tags/react-symbol-dark.svg)React](/topic/react)[![](/logos/tags/typescript-symbol-light.svg)![](/logos/tags/typescript-symbol-dark.svg)TypeScript](/topic/typescript)[![](/logos/tags/astro-symbol-light.svg)![](/logos/tags/astro-symbol-dark.svg)Astro](/topic/astro)[+1](/course/odin-modern-react-and-typescript)

### [The Odin Project 6: Modern React 19, State Architecture & TypeScript](/course/odin-modern-react-and-typescript)

Master React 19 components, strict TypeScript props, derived state vs. useEffect traps, Server Actions, and island hydration in Astro.

[![Alex Patterson](https://cdn.sanity.io/media-libraries/mlttp0BZbCpV/images/a606dfaa381aab08ddbe16a33fe1d3e1fb37c927-400x400.jpg?w=96&h=96&q=82&fit=max&auto=format)Alex Patterson](/author/alex-patterson)[![Dockerless Serverless GPUs: How I Built a Fast, Cheap AI SaaS with RunPod Flash](https://cdn.sanity.io/media-libraries/mlttp0BZbCpV/images/78383c8986667bc1eaa504786488d88f212929a8-1280x720.jpg?w=1280&q=82&fit=max&auto=format)](/post/dockerless-serverless-gpus-fast-cheap-ai-saas-with-runpod-flash)October 6, 2026[#Serverless](/topic/serverless)[![](/logos/tags/cloudflare-symbol-light.svg)![](/logos/tags/cloudflare-symbol-dark.svg)Cloudflare](/topic/cloudflare)[![](/logos/tags/python-symbol-light.svg)![](/logos/tags/python-symbol-dark.svg)Python](/topic/python)[+5](/post/dockerless-serverless-gpus-fast-cheap-ai-saas-with-runpod-flash)

### [Dockerless Serverless GPUs: How I Built a Fast, Cheap AI SaaS with RunPod Flash](/post/dockerless-serverless-gpus-fast-cheap-ai-saas-with-runpod-flash)

Hosted image APIs cost 3 to 4 cents per generation. Using RunPod Flash for dockerless serverless GPUs, FlashFun.dev drops that to a fraction of a cent, turning $1 into 500 to 3,000 images. Here is the full architecture, the benchmarks, and the code.

[![Alex Patterson](https://cdn.sanity.io/media-libraries/mlttp0BZbCpV/images/a606dfaa381aab08ddbe16a33fe1d3e1fb37c927-400x400.jpg?w=96&h=96&q=82&fit=max&auto=format)Alex Patterson](/author/alex-patterson)