Socket
Socket
Sign inDemoInstall

firebase-on-cloudflare

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    firebase-on-cloudflare

Is a [Cloudflare Worker](https://www.cloudflare.com/products/cloudflare-workers/) that reimplements Firebase's hosting logic.


Version published
Maintainers
1
Install size
19.9 kB
Created

Readme

Source

firebase-on-cloudflare

Is a Cloudflare Worker that reimplements Firebase's hosting logic.

Installation

$ yarn add firebase-on-cloudflare

Usage

import firecloud from 'firebase-on-cloudflare';
import { hosting as hostingConfig } from './firebase.json';

// Init once (globally) for better perfs
const fcloud = new firecloud('gitbook-staging', hostingConfig);

// Proxy (and cache) requests to Google Cloud Functions & Firebase Hosting
addEventListener("fetch", (event) => fcloud.serve(event));

Why ?

We (GitBook) built firebase-on-cloudflare to fix connection issues we had between Cloudflare and Fastly/Firebase Hosting.

Ideas

  • Allow routing to cloud-functions closest to users (rather than everything going to us-central1)

FAQs

Last updated on 09 Apr 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc