A SvelteKit adapter for Deno
Svelte-adapter-deno is an adapter for SvelteKit apps that generates a standalone Deno server. It allows for easy deployment of SvelteKit apps in a Deno environment.
To install svelte-adapter-deno, run the following command:
npm i -D svelte-adapter-deno
Next, add the adapter to your svelte.config.js file. After building the server using npm run build
, you can start it using the following command:
deno run -A build/index.js
To automatically deploy your app in Deno Deploy, you can use the deployctl GitHub Action. (github/workflows/ci.yml)
Svelte-adapter-deno is a useful tool for developers looking to deploy their SvelteKit apps in a Deno environment. It simplifies the process of generating a standalone Deno server and allows for easy deployment using environment variables. With the additional support for precompressing assets and prerendered pages, this adapter provides a convenient solution for deploying SvelteKit apps with Deno.