Getting Started
Deployment
Running production apps has never been easier
Deno Deploy
Raptor was built with Deno in mind, meaning that deploying to Deno Deploy is easy. Inside your deno.json configuration file, add the following configuration.
"deploy": {
"org": "[your-org]",
"app": "[app-name]"
}Once you've added the deployment information, you can run deploy via the command line.
deno deployCloudflare Worker
You can also deploy your application to a Cloudflare Worker by simply using the respond method of the Kernel. This allows you to bypass the usual serve method and return a Response directly.
/* ... */
export default {
fetch: (request: Request) => {
return kernel.respond(request);
}
}Once you've setup your application for Cloudflare Workers, you can run the deployment as usual:
npx wrangler deploy