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

feat(gatsby-plugin-netlify): Allow status codes in redirects (#11255) #11484

Merged
merged 7 commits into from
Feb 5, 2019
Merged

feat(gatsby-plugin-netlify): Allow status codes in redirects (#11255) #11484

merged 7 commits into from
Feb 5, 2019

Commits on Feb 1, 2019

  1. feat(gatsby-plugin-netlify) Allow status codes in redirects (#11255)

    This addresses #11255. A request to implement support for status
    codes other that 301/302 for this plugin, as Netlify also supports
    other status codes.
    
    @sidharthachatterjee suggested I submitted a PR
    with my proposed changes, and this is that PR.
    
    It adds one option to the `createRedirect` call which is `statusCode`.
    You can use it to manually set the status code. If it's not set, the
    status code will be determined by the `isPermanent` option as before
    (`301` if `true` or `302` if not (the default) ).
    
    I've also updated the README to document this new feature.
    joostdecock committed Feb 1, 2019
    Configuration menu
    Copy the full SHA
    f8e0fb2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a564f95 View commit details
    Browse the repository at this point in the history
  3. Update packages/gatsby-plugin-netlify/README.md

    Co-Authored-By: joostdecock <joost@decock.org>
    sidharthachatterjee and joostdecock authored Feb 1, 2019
    Configuration menu
    Copy the full SHA
    58b444b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7f5d4e8 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    00e74ae View commit details
    Browse the repository at this point in the history

Commits on Feb 2, 2019

  1. Configuration menu
    Copy the full SHA
    d7f9960 View commit details
    Browse the repository at this point in the history

Commits on Feb 5, 2019

  1. Configuration menu
    Copy the full SHA
    9bb0a1b View commit details
    Browse the repository at this point in the history