You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-9Lines changed: 27 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -173,27 +173,31 @@ export function getPrivateConfig() {
173
173
174
174
[Shelve](https://shelve.cloud) is a secrets management service. This module fetches secrets from Shelve at build time and merges them into your runtime config before validation.
175
175
176
-
### Zero-Config Setup
176
+
### Configure Shelve
177
177
178
-
If you have a `shelve.json` file in your project root, the integration enables automatically:
178
+
Configure Shelve directly in your Nuxt config:
179
179
180
180
```ts
181
181
exportdefaultdefineNuxtConfig({
182
182
safeRuntimeConfig: {
183
183
$schema: runtimeConfigSchema,
184
-
shelve: true, // Auto-detects project, team, and environment
184
+
shelve: {
185
+
project: 'my-app',
186
+
slug: 'my-team',
187
+
},
185
188
},
186
189
})
187
190
```
188
191
189
192
The module resolves configuration from multiple sources (highest priority first):
The runtime plugin runs before validation, so freshly fetched secrets are validated against your schema.
247
251
252
+
### Install Wizard UX
253
+
254
+
On module install, an interactive setup wizard can help bootstrap validation and Shelve config. The wizard now:
255
+
256
+
- shows a preview of planned actions first (install deps, write `~/.shelve`, edit `nuxt.config`)
257
+
- asks for a final confirmation before applying any change
258
+
- skips automatically in CI and non-interactive terminals (non-TTY)
259
+
248
260
## Runtime Validation
249
261
250
262
By default, validation only runs at build time. Enable runtime validation to catch environment variable issues when the server starts:
@@ -324,6 +336,12 @@ When validation fails, you see detailed error messages:
324
336
325
337
The module stops the build process until all validation errors are resolved.
326
338
339
+
## Upcoming Major Release Notes
340
+
341
+
- Shelve setup no longer documents `shelve.json` auto-enablement; supported sources are `nuxt.config`, env vars, and `package.json` fallback for project name.
342
+
- The install wizard now previews actions and requires explicit confirmation before mutating files or writing credentials.
343
+
- Runtime and wizard key-shaping now use the same env-key mapping rules to avoid schema/runtime drift.
344
+
327
345
## Why This Module?
328
346
329
347
Nuxt's built-in schema validation is designed for module authors and broader configuration. This module focuses specifically on **runtime config validation** using Standard Schema, allowing you to:
0 commit comments