1.1.1 • Published 5 years ago
adapter-firebase-function v1.1.1
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-functionUsage
// 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 buildFirebase Config
Minimal firebase config, auto generated if not exists
{
"hosting": {
"public": "public",
"rewrites": [
{
"source": "**",
"function": "ssr"
}
]
},
"functions": {
"predeploy": [],
"source": "functions",
"runtime": "nodejs12"
}
}