firebase-framework-tools icon indicating copy to clipboard operation
firebase-framework-tools copied to clipboard

SvelteKit

Open jthegedus opened this issue 3 years ago • 3 comments

I am the author of the Svelte adapter for Firebase.

I am glad to see work on this type of integration with Firebase deploy.

I was investigating how to integrate the "custom" framework into the adapter, but not sure if it is wasted effort if there is to be an official support for SvelteKit.

Can you shed light on intentions around official support for SvelteKit if any?

jthegedus avatar Jun 16 '22 15:06 jthegedus

Integrating custom isn't too bad, at least for basic SPA. Sorry for the lack of documentation—still doing some work here. Basically package.json needs to fulfill the following contract:

  1. an exhaustive build step
  2. a directories.serve field which points to the compiled CDN assets
  3. optionally, to be treated as SSR, the package should be able to be packed and your main entry should export either: a. app which is a function that returns an express.js app b. handle a express-style render handle

That said, we'd be open to officially support SvelteKit, we welcome any help. Perhaps we could collaborate on it?

jamesdaniels avatar Jun 16 '22 16:06 jamesdaniels

Thanks for the information. I will take a crack at the custom integration and then perhaps look into PRing some stuff here for a proof of concept of an "official" integration

jthegedus avatar Jun 17 '22 07:06 jthegedus

Feel free to ping my email with any questions [email protected] & I'd be happy to give you an overview of adding a framework and where we're planning on taking our built-in integrations in the coming quarters.

jamesdaniels avatar Jun 17 '22 17:06 jamesdaniels

Closing, see #32

jthegedus avatar Sep 14 '22 11:09 jthegedus