Deploying to Deno Deploy
This guide walks you through deploying a Discord bot built with Dressed to Deno Deploy.
Deploying is the last step in building your bot, it will be where Discord can send interactions and events even when you're not developing it.
Configuration
To get Dressed working, all you need to do is:
- Add
deno -A npm:dressed build -ito the build command - Set
.dressed/index.jsas the entrypoint
Environment variables
If you are creating a new project, you will need to upload your environment variables to be used by the bot. To add your env vars, go to your project settings and click the edit button in the Environment Variables section.
If you are using @dressed/react, Deno will fail to install it, this can be fixed by changing the install command to use a different package manager, e.g. Bun or pnpm
Upload
You now can upload it to Deno Deploy however you like, either through linking to GitHub, or using the CLI:
deno run -A jsr:@deno/deployctl deployYour bot should now be accessible at <project>.<user>.deno.net.