Skip to content

Commit

Permalink
use netlify redirect for discord route
Browse files Browse the repository at this point in the history
  • Loading branch information
thescientist13 committed Dec 22, 2024
1 parent 159efd3 commit fe0bda3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,3 +313,5 @@ See the [Greenwood Storybook docs](/guides/ecosystem/storybook/#content-as-data)
## Hosting and Deployment
This project is hosted on Netlify and automatically deploys on each merge into main. Release branches will be curated over the course of a Greenwood release cycle and then merged at the time the new Greenwood release is published to NPM.
For links to `/discord/`, a redirect is configured in _netlify.toml_ to redirect these requests to the project's Discord server.
3 changes: 2 additions & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
to = "/about/tech-stack/"

[[redirects]]
status = 302
from = "/discord/"
to = "/api/discord"
to = "https://discord.gg/dmDmjFCKuH"
8 changes: 0 additions & 8 deletions src/pages/api/discord.js

This file was deleted.

0 comments on commit fe0bda3

Please sign in to comment.