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

Expose webhook during serve for use with external data #691

Closed
mattwaler opened this issue Sep 10, 2019 · 2 comments
Closed

Expose webhook during serve for use with external data #691

mattwaler opened this issue Sep 10, 2019 · 2 comments

Comments

@mattwaler
Copy link

Is your feature request related to a problem? Please describe.

There is no easy way to trigger an update / rebuild during the serve command when external data changes.

This would be extremely useful in two ways:

  • Once external webhooks are configured, would trigger a rebuild/reload locally when content changes (better DX overall)
  • Would allow developers to create a "staging" site on another server that is constantly rebuilding with the newest content for preview before triggering a production build

Describe the solution you'd like

It would be awesome if the --serve command exposed a webhook that would trigger a rebuild, similar to when actual files change. Something like {url}/__rebuild

Describe alternatives you've considered

Any alternative would be awesome if it accomplished the same goal, allowing an external webhook to trigger a rebuild.

@mattwaler mattwaler changed the title Include webhook during eleventy --serve for use with headless CMS / preview server Expose webhook during eleventy --serve for use with external data Sep 10, 2019
@mattwaler mattwaler changed the title Expose webhook during eleventy --serve for use with external data Expose webhook during serve for use with external data Sep 10, 2019
@antgel
Copy link

antgel commented Oct 26, 2023

@mattwaler This was a while ago, but why did you close it? I've been looking for something like this for Strapi / 11ty local development and haven't found anything (maybe I've been looking in the wrong places).

@antgel
Copy link

antgel commented Oct 30, 2023

I think #3085 and 11ty/eleventy-dev-server#70 should help with this, if anyone is reading and interested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants