Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

functions only app #107

Closed
zpydee opened this issue Mar 1, 2023 · 5 comments
Closed

functions only app #107

zpydee opened this issue Mar 1, 2023 · 5 comments

Comments

@zpydee
Copy link

zpydee commented Mar 1, 2023

it would be great to have a flag for a functions only app, which would remove bootstrapping for firestore, storage, hosting etc.

Thoughts?

@simondotm
Copy link
Owner

@zpydee great idea and I'm actually in the middle of writing that exact feature! I've moved over to bundles for my own functions and its a much better experience.

@zpydee
Copy link
Author

zpydee commented Mar 2, 2023

Ps, thanks for this lib. Really great. To date, I've been following a method described here, but it's failed me with firebase's famous CORS warning when using callable functions. Just sharing for your interest in case it adds any value...

@simondotm
Copy link
Owner

I gave up on callables and just went with request functions and express APIs. Callables seemed convenient on the client side at first, but I ended up boilerplating an API of sorts in the callable function anyway, and its fairly trivial to pass the JWT in the auth headers than can verified function side with firebase auth lib.
I think CORs issues exist on every web project at some point tbh! 😆

@zpydee
Copy link
Author

zpydee commented Mar 9, 2023

"I think CORs issues exist on every web project at some point tbh" - true that :-)

@simondotm
Copy link
Owner

Will be possible in #116

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants