Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.02 KB

readme.md

File metadata and controls

32 lines (21 loc) · 1.02 KB

@tlock/svelte-archipelago-ssr-service

Tiny NodeJS service for server-rendering Svelte Archipelago component trees as a "sidecar" to your backend of any language.

Installation

🐳 Docker: The recommended installation method is to use our pre-configured Docker image in your Docker Compose project. Check out the main Svelte Archipelago repo for a quick start guide.

The following instructions will get you running if you aren't running Docker and want to host your own Node instance:

npm install @tlock/svelte-archipelago-ssr-service

Usage

Start the standalone service:

npx svelte-archipelago-service

Or alternatively, integrate into your existing Node project:

import { createSvelteSSRService } from "@tlock/svelte-archipelago-ssr-service";

const server = createSvelteSSRService();
server.start();

License

MIT