-
Notifications
You must be signed in to change notification settings - Fork 917
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
firebase serve --only hosting does not work offline #1040
Comments
Well, it's not a bug, AFAIK... I'm gonna take this as a feature request and pass it to @mbleigh... |
@bkendall what are we checking with the Resource Manager API on each |
|
Please make it possible to run a development server without an internet connection. I was not able to get any work done on my flight today because I couldn't start my local server. |
We hear ya, @philipwalton - unfortunately, we have limited resources to address this at the moment. PRs are always welcome 😄 |
After looking around in the source a bit, I realized that this library just uses superstatic under the hood for hosting (which is released as its own, separate module), so if all you need is a local static file server with config that matches your Firebase hosting environment, you can just use Bonus: it's just connect/express-style middleware, so it easy to extend if you need to! |
asaaaaaaaaaaaaaaaaaaaaaaaaaa |
@philipwalton Could you show an example with |
Here's how I'm using this on my personal blog: https://github.com/philipwalton/blog/blob/21fde735815d7c3620ecfb0f5f1c81df9d94874f/tasks/utils/server.js#L16 |
You can run the hosting emulator offline using |
Version info
6.1.0
Platform Information
OS X
Steps to reproduce
firebase serve --only hosting
in a configured project directoryExpected behavior
Run server while offline (train, airplane, etc)
Actual behavior
$ firebase serve --only hosting
Full logs:
The text was updated successfully, but these errors were encountered: