Skip to content

Commit 7ea5661

Browse files
authored
Readme: Add section explaining when the plugin is not needed (#54)
People who google for "netlify redirect gatsby" will likely end up here and think the whole plugin with all it's dependencies is needed, which is not the case.
1 parent a66b3ba commit 7ea5661

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ Automatically generates a `_headers` file and a `_redirects` file at the root of
55

66
By default, the plugin will add some basic security headers. You can easily add or replace headers through the plugin config.
77

8+
**When not to use the plugin:** In case you just want to use a `_redirects` or `_headers` file for Netlify with Gatsby, you don't need this plugin. Instead, move those files in `/static/_redirects`, `/static/_headers` and Gatsby will copy them to your root folder during build where Netlify will pick them up.
9+
810
## Install
911

1012
`npm install gatsby-plugin-netlify`

0 commit comments

Comments
 (0)