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

Add endpoint to refresh external data #3054

Closed

Commits on Dec 4, 2017

  1. Add ability to refresh data on the development server

    The external source data can be refreshed by making a POST request to
    the `__refresh` endpoint. If the env var GATSBY_REFRESH_TOKEN is present
    there needs to be a matching `Authorization` header. This post request
    is wrapped for convenience with the command `gatsby refresh` which uses
    localhost:8000 by default, but allows for a host and port to be
    specified in the same way as `gatsby develop`.
    Justin Schulz committed Dec 4, 2017
    Configuration menu
    Copy the full SHA
    64c6d2a View commit details
    Browse the repository at this point in the history