Svelte Adapter Deno screenshot

Svelte Adapter Deno

Author Avatar Theme by Pluvial
Updated: 9 Aug 2024
353 Stars

A SvelteKit adapter for Deno

Overview

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.

Features

  • Generates a standalone Deno server for SvelteKit apps.
  • Allows for easy deployment of SvelteKit apps in a Deno environment.
  • Supports runtime configuration via environment variables.

Installation

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)

Summary

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.