@basjkorbee/sveltekit-adapter-firebase
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

sveltekit-firebase-adapter

This is a fork of simonnepomuk's adapter for my own use, but if it's useful for others, feel free to use it.

Changelog

  • feat: added node 18 & 20 to the nodeVersion option.
  • feat: added some extra dependencies that seemed to be missing to the generated package.json.
  • fix: cors being stringified to '{}'.
  • fix: install of dependencies in functions directory.
  • feat: add autoInstallDeps flag in options to be able to toggle off automatic install of dependencies in functions directory.
  • fix: use req.rawBody instead of req.body when creating new Request instance as firebase functions automatically parse the body using bodyParser based on the content-type. Was causing errors where if the content-type was application/json, the request body would evaluate to '[object Object]'.

Package Sidebar

Install

npm i @basjkorbee/sveltekit-adapter-firebase

Weekly Downloads

8

Version

0.0.6

License

MIT

Unpacked Size

678 kB

Total Files

9

Last publish

Collaborators

  • basjkorbee