Skip to content

Commit 6c130e3

Browse files
authored
Rerouted invite link of the main ACM Discord server to prevent web scrapers from finding it (#869)
1 parent 8ec6137 commit 6c130e3

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

components/SocialMedia.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function SocialMedia(props) {
4343
</a>
4444
<a
4545
className="icon-link"
46-
href="https://discord.gg/eWmzKsY"
46+
href="/discord"
4747
target="_blank"
4848
rel="noreferrer noopener"
4949
aria-label="ACM at UCLA on Discord"

next.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
module.exports = {
2+
async redirects() {
3+
return [
4+
{
5+
source: '/discord',
6+
destination: 'https://discord.gg/eWmzKsY',
7+
permanent: false, // 302 redirect
8+
},
9+
];
10+
},
11+
212
output: 'standalone',
313
images: {
414
remotePatterns: [

0 commit comments

Comments
 (0)