DEV Community

Jonathan Gamble
Jonathan Gamble

Posted on

1

Firebase Needs More Compatibility for JavaScript Environments

After writing dozens of articles for Firebase (see my Firebase Course), I realize there is a bigger reason I haven't jumped back on board with it: Firebase JS SDKs don't run on all server environments.

Lack of Deployment Options

Firebase only runs on NodeJS. This means it is incompatible with Cloudflare Workers (which Vercel Edge Functions use), Bun, Deno, or any other non-NodeJS JavaScript environments.

I don't know about you, but I don't want to run Firebase on Serverless environments with cold starts.

Workarounds

  • Firestore Lite - No Session Management or Authentication Management. Will only work for Public Fetches.
  • REST API - Complex fetching, manually convert JSON objects for manual tying
  • Firebase Admin REST - UNOFFICIAL package, still in development

Feature Request

Is this preventing you from using Firebase? Do you use Firebase on Serverless anyway?

(Please don't post about other Firebase opinions)

J

Sentry blog image

How I fixed 20 seconds of lag for every user in just 20 minutes.

Our AI agent was running 10-20 seconds slower than it should, impacting both our own developers and our early adopters. See how I used Sentry Profiling to fix it in record time.

Read more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs