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

Automatically restart the preview server when the config file changes #645

Closed
mbostock opened this issue Feb 1, 2024 · 1 comment · Fixed by #695
Closed

Automatically restart the preview server when the config file changes #645

mbostock opened this issue Feb 1, 2024 · 1 comment · Fixed by #695
Assignees
Labels
enhancement New feature or request

Comments

@mbostock
Copy link
Member

mbostock commented Feb 1, 2024

Maybe we can do something using tsx watch in the default template so that the server restarts when the config file is edited? (You’d still need to reload in your browser, but maybe #50 would help with that.)

@mbostock mbostock added the enhancement New feature or request label Feb 1, 2024
@mbostock mbostock changed the title Automatically restart the server when the config file changes Automatically restart the preview server when the config file changes Feb 1, 2024
@mbostock mbostock self-assigned this Feb 7, 2024
@mbostock mbostock mentioned this issue Feb 7, 2024
@mbostock
Copy link
Member Author

mbostock commented Mar 7, 2024

I think this is probably best addressed by making the config lazy as in #695; that way we don’t need to restart the server, but we’ll always get the latest config on request. We could also watch the config file and force a reload, perhaps.

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

Successfully merging a pull request may close this issue.

1 participant