selfdefined / web-app

Dictionary database with future API and bot integrations
https://www.selfdefined.app/
573 stars 172 forks source link

Adds Discord redirect, fallback page #402

Closed mpcsh closed 3 years ago

mpcsh commented 3 years ago

This PR sets up a redirect at selfdefined.app/discord, which we can use to hot-swap invite links to "open" and "close" the server. To "close" the server, we comment out the redirect, which will cause the fallback page (11ty/discord/index.md) to be served. To "open" the server, we uncomment the redirect and commit a fresh invitation link generated by Discord.

This is a work in progress; since this involves Netlify, I have to push it up and open a PR to test.

mpcsh commented 3 years ago

Hey @tatianamac I had mistakenly assumed that the fallback page would automagically pick up the site's styling, but it got rendered as plain text. I've re-requested review since there's actually content / styling to review now: https://deploy-preview-402--selfdefined.netlify.app/discord/

Before merging, I will revert bf632ca, which will restore the redirect.