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

Restart server on gatsby-config change #20

Closed
ashryanbeats opened this issue Sep 14, 2020 · 1 comment
Closed

Restart server on gatsby-config change #20

ashryanbeats opened this issue Sep 14, 2020 · 1 comment

Comments

@ashryanbeats
Copy link

Can we add a watcher to restart/rebuild the server when the gatsby-config changes?

As-is currently (while running npm run dev), editing gatsby-config causes the script to reload (?) the site in place, but this rarely seems to be successful. The fix is usually to stop and restart the server manually.

@icaraps
Copy link
Contributor

icaraps commented Sep 21, 2020

This is fixed but it'll require a modification in how to retrieve the globalNav config see https://github.com/adobe/gatsby-theme-parliament/blob/main/example/gatsby-config.js#L13-L16

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