Skip to content

Commit

Permalink
docs: update with caveats
Browse files Browse the repository at this point in the history
  • Loading branch information
3nvi committed Mar 28, 2020
1 parent eee1eb8 commit 8df60fa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
8 changes: 6 additions & 2 deletions packages/gatsby-plugin-intl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,12 @@ The plugin accepts the following **optional options**:
`URL` (which platforms like Netlify automatically populate) or to `localhost:8000` if the environment variable is not present.
- `exludedPages`: A list page paths that the plugin should ignore. Defaults to `/404.html`.
- `notFoundPage`: The URL for a custom 404 page. Defaults to `/404/`.
- `deleteOriginalPages`: A boolean denoting whether to delete the original pages or retain them at
the original paths. Defaults to `false` for production environments and `true` for development ones.

## Caveats

Due to the fact that each page path is substituted with the localized one, there will be no `/` page
in the project. Instead all `/` will be redirected to the appropriate locales. Gatsby will complain about
the absense of an actual `/`, but it's safe to ignore it.

## License

Expand Down
6 changes: 6 additions & 0 deletions packages/gatsby-starter-intl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ npm i
npm run start
```

## Caveats

Due to the fact that each page path is substituted with the localized one, there will be no `/` page
in the project. Instead all `/` will be redirected to the appropriate locales. Gatsby will complain about
the absense of an actual `/`, but it's safe to ignore it.

## License

MIT

0 comments on commit 8df60fa

Please sign in to comment.