Step 1 of 3 · Enable local KV
First Server Primitive
Edit and run the code of each step in your browser. The first start installs the app, which takes a few minutes.
Save a theme setting and read it back through a server route. KV stores each value under a key. This tutorial uses local files and needs no provider account or credentials.
Before you start
Complete Installation and check
/api/health. Continue in that app, with Node.js 22.22 or newer and pnpm.
The configuration below uses Vite and Nitro. In Nuxt, add the same kv
option to the ViteHub module config. The route works in both frameworks.
Starting the workspace