adapter-firebase-function

1.1.1 • Public • Published

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

options default
minify false

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"
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i adapter-firebase-function

Weekly Downloads

7

Version

1.1.1

License

MIT

Unpacked Size

5.75 kB

Total Files

7

Last publish

Collaborators

  • suciptoid