- #1076 (patch)
Fixvite devfailing withencrypted env blob present but _VARLOCK_ENV_KEY is not setwhen@encryptInjectedEnvis enabled and the SSR dev runtime is a separate worker (Nitro v3 / TanStack Start, vitest). The temporary dev key is now minted in an early dev-server config hook, before other plugins spawn their runtimes, so they inherit it; Cloudflare dev targets fall back to plaintext since workerd cannot read host env vars. The Nuxt module mints the same dev key before writing its Nitro init template, sonuxt devwith@encryptInjectedEnvandresolved-envgets an encrypted blob instead of plaintext.vite previewnever mints a key. Builds never create or use the dev key and still require_VARLOCK_ENV_KEY. Also warns when_VARLOCK_ENV_KEYor__VARLOCK_ENVis set via vitedefine, which does not work.
Published to
- ✅ npm