Skip to content

Restart Netlify CMS proxy server on astro.config reload #38

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

Merged
merged 1 commit into from
Oct 31, 2022

Conversation

delucis
Copy link
Owner

@delucis delucis commented Oct 31, 2022

When astro.config is saved, Astro automatically reloads, which caused a second instance of netlify-cms-proxy-server to try to start and crash. This fix ensures we kill and restart the proxy server instead each time this happens.

When astro.config is saved, Astro automatically reloads, which caused a second instance of netlify-cms-proxy-server to try to start and crash. This fix ensures we kill and restart the proxy server instead each time this happens.
@changeset-bot
Copy link

changeset-bot bot commented Oct 31, 2022

🦋 Changeset detected

Latest commit: 87abb40

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
astro-netlify-cms Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@delucis delucis merged commit 9b2802c into latest Oct 31, 2022
@github-actions github-actions bot mentioned this pull request Oct 31, 2022
@delucis delucis deleted the kill-proxy-on-refresh branch October 31, 2022 08:18
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

Successfully merging this pull request may close these issues.

1 participant