Cloudflare Worker to redirect users to your discord server using the widget API.
Important
Make sure to enable the Server Widget by going to Server Settings ⇒ Engagement, checking Enable Server Widget and selecting an Invite Channel.
- Clone this repo
- run
npm install - run
npx wrangler deployornpm run deployand follow the instructions - Go to your Cloudflare Account Home page on dash.cloudflare.com
- On the left go to Compute (Workers) ⇒ Workers & Pages
- Select your deployed worker and go to Settings ⇒ Domains & Routes and add a domain or subdomain
- Go to Settings ⇒ Variables and Secrets and add your Discord server ID as a plaintext variable named
DISCORD_SERVER_ID
- Clone this repo
npm install- Run
npm run devto get the development server up - Access it through http://localhost:8787/
This project was build on the foundation of Invidget.