1.1.1 • Published 3 years ago

adapter-firebase-function v1.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

SvelteKit Firebase Function Adapter

This is just a copy / adapted version of Official Vercel Adapter to make working with firebase function & hosting.

⚠️DISCLAIMER: Do with your own risk!⚠️

Install

npm install adapter-firebase-function

Usage

// svelte.config.js
...
import firebase from 'adapter-firebase-function'
...

...
target: '#svelte',
adapter: firebase()
...

Options

optionsdefault
minifyfalse

Add firebase({ minify: true }) to reduce output file size

Build

npm run build

Firebase Config

Minimal firebase config, auto generated if not exists

{
  "hosting": {
    "public": "public",
    "rewrites": [
      {
        "source": "**",
        "function": "ssr"
      }
    ]
  },
  "functions": {
    "predeploy": [],
    "source": "functions",
    "runtime": "nodejs12"
  }
}
1.1.1

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago