@jesterkit/exe-sveltekit
v0.1.6
Published
EXE is an adapter for SvelteKit to build a standalone executable with full stack features such as SSR, API routes, server hooks....
Downloads
141
Maintainers
Readme
Get started with SvelteKit
Requirements
- Bun installed on your machine to build the executable (not to run).
Install the package
npm install @jesterkit/exe-sveltekitUse the adapter in your SvelteKit config file
// svelte.config.js
import adapter from "@jesterkit/exe-sveltekit";
export default {
kit: {
adapter: adapter(),
},
};Build the executable
npm run buildRun the executable
./dist/appAdapter options
out: The output directory for the built binary (default:dist).binaryName: The name of the executable (default:app).embedStatic: Whether to embed static assets in the binary (default:true).target: The target platform for the binary (default to your current platform). Available targets:linux-x64,linux-x64-baseline,macos-arm64,windows-x64,windows-x64-baseline,darwin-x64,darwin-arm64,linux-x64-musl,linux-arm64-musl.volume: The volume mount point for the binary (no volume mount by default). Useful for persistent storage for self-hosting, usually/data.
Environment variables
- Make sure your import env variables from
$env/dynamic/private, not from$env/static/private.
