Skip to content

Expose webhook during serve for use with external data #691

@mattwaler

Description

@mattwaler

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions