Cloudflare Workers Svelte screenshot

Cloudflare Workers Svelte

Author Avatar Theme by Hazcod
Updated: 1 Aug 2025
17 Stars

Example repository for running a sveltejs/sveltekit website on Cloudflare Workers.

Categories

Overview:

This product is an example repository that demonstrates how to run a SvelteJS (SvelteKit) website on Cloudflare Workers. The repository contains all the necessary files and configurations to set up and deploy the website.

Features:

  • SvelteJS Source Code: The repository includes the source code for the SvelteJS website, written in HTML, TypeScript, and Sass.
  • SvelteJS Library Files: The repository also contains the SvelteJS library files, which indicate shared code used in the website.
  • Public Assets: The “static” folder in the repository holds any public assets, such as images, that are used in the website.
  • Cloudflare Worker Assets: The repository automatically generates Cloudflare Worker assets, located in the “.cloudflare” folder. These assets should not be edited.
  • ESLint Configuration: The “.eslintrc.cjs” file is the ESLint configuration specifically for the TypeScript files in the repository.
  • Build Process: The “Makefile” is a file that handles the build process for the SvelteJS website.
  • Configuration Files: The repository includes various configuration files such as “svelte.config.js” for SvelteJS, “tsconfig.json” for TypeScript, and “wrangler.toml” for wrangler/miniflare configuration to run locally or deploy to Cloudflare Workers.

Installation:

To install the theme and set up the SvelteJS website on Cloudflare Workers, follow these steps:

  1. Clone the repository: git clone [repository-url].
  2. Go to the repository folder: cd [repository-folder].
  3. Install dependencies: npm install.
  4. Build the SvelteJS website: make build.
  5. Deploy to Cloudflare Workers: npm run deploy.

Summary:

The example repository showcases how to run a SvelteJS website on Cloudflare Workers. It provides a complete setup with all the necessary configurations and files. By following the installation guide, users can easily deploy the SvelteJS website on Cloudflare Workers and utilize its features.