Framework support
Dotvault for SvelteKit
Dotvault for SvelteKit apps.
SvelteKit splits env four ways: $env/static/private, $env/static/public, $env/dynamic/private and $env/dynamic/public. Getting that split right matters. Dotvault gives you a clear visual view of your .env files and a safety net of snapshots when you're moving variables around.
What you get
- →Automatic detection from package.json.
- →Understands the PUBLIC_ prefix convention for client-exposed values.
- →Warns when a PUBLIC_ value can only be a secret, which is the one worth catching given how little work it takes to move a variable across that line.
- →Snapshot and diff across .env, .env.development, .env.production.
Known environment variables
Dotvault recognises these variables when you open a SvelteKit project and surfaces helpful descriptions and warnings in the editor. SvelteKit is detected via @sveltejs/kit in package.json.
PUBLIC_Client-exposed variable (SvelteKit)
Official SvelteKit docs: svelte.dev/docs/kit