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

Move redirects in www/gatsby-node to another file. #20635

Closed
tesseralis opened this issue Jan 16, 2020 · 0 comments · Fixed by #20656
Closed

Move redirects in www/gatsby-node to another file. #20635

tesseralis opened this issue Jan 16, 2020 · 0 comments · Fixed by #20656
Labels
good first issue Issue that doesn't require previous experience with Gatsby help wanted Issue with a clear description that the community can help with.

Comments

@tesseralis
Copy link
Contributor

tesseralis commented Jan 16, 2020

There's a ton of redirects in gatsby-node that take up a lot of space. We should be able to move them to a data file much like we did for startersRedirects.

The only difference is that I'd prefer to use YAML instead of JSON, since there's context in the comments of some redirects, and we'd lose them if we used JSON. Maybe something like

redirects.yaml:

- fromPath: /docs/themes/api-reference
  toPath: /docs/theme-api/
- fromPath: /docs/component-css/ # Merged Component CSS and CSS Modules
  toPath: /docs/css-modules/
@tesseralis tesseralis added good first issue Issue that doesn't require previous experience with Gatsby help wanted Issue with a clear description that the community can help with. labels Jan 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Issue that doesn't require previous experience with Gatsby help wanted Issue with a clear description that the community can help with.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant