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

Pass --watch to gatsby develop #97

Closed
kevinsimper opened this issue Dec 5, 2015 · 3 comments
Closed

Pass --watch to gatsby develop #97

kevinsimper opened this issue Dec 5, 2015 · 3 comments

Comments

@kevinsimper
Copy link

Just like you can do with jekyll serve -w you should be able to with Gatsby, so you don't have to restart gatsby by yourself when you create new routes.

@KyleAMathews
Copy link
Contributor

As discussed on Discord, this is a known limitation of Gatsby. Whenever the issue is fixed, new routes will be hot reloaded along with everything else.

@kevinsimper
Copy link
Author

I looked at it and I can't find any way to get notified whenever hot reload is applied, but if you could, you could fix this by running createRoutes again.

@kevinsimper
Copy link
Author

I think this issue was close a bit too fast, since there is no other issue about the problem. If not I can't find it.

Here is an example on how it can be done:
https://github.com/glenjamin/ultimate-hot-reloading-example/blob/master/server.js

pragmaticpat pushed a commit to pragmaticpat/gatsby that referenced this issue Apr 28, 2022
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