Skip to content

feat: add Shelve secrets integration#2

Merged
onmax merged 1 commit intomainfrom
feat/shelve-integration
Jan 24, 2026
Merged

feat: add Shelve secrets integration#2
onmax merged 1 commit intomainfrom
feat/shelve-integration

Conversation

@onmax
Copy link
Copy Markdown
Owner

@onmax onmax commented Jan 24, 2026

Summary

Adds Shelve as secrets provider with interactive setup wizard.

Changes

  • Fetch env vars at build time, merge into runtimeConfig
  • Transform SCREAMING_SNAKE_CASEcamelCase with smart prefix grouping
  • 30s dev cache to avoid re-fetch on HMR
  • Optional runtime fetch via Nitro plugin
  • onInstall wizard: prompts for validation library + Shelve auth
  • Auto-generate schema from Shelve variables
  • Auto-install valibot/zod deps

Usage

// Zero-config (if shelve.json exists)
safeRuntimeConfig: {
  $schema: mySchema,
  shelve: true
}

// Explicit
safeRuntimeConfig: {
  $schema: mySchema,
  shelve: { project: 'my-app', slug: 'my-team' }
}

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Jan 24, 2026

Open in StackBlitz

npm i https://pkg.pr.new/onmax/nuxt-safe-runtime-config@2

commit: ce86fcc

@onmax onmax force-pushed the feat/shelve-integration branch 9 times, most recently from 391f02b to 8d4569d Compare January 24, 2026 17:53
@vercel
Copy link
Copy Markdown

vercel bot commented Jan 24, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
nuxt-safe-runtime-config Ready Ready Preview, Comment Jan 24, 2026 7:11pm

@onmax onmax force-pushed the feat/shelve-integration branch from bfa1dd4 to ce86fcc Compare January 24, 2026 19:11
@onmax onmax merged commit 3e0a45e into main Jan 24, 2026
5 checks passed
@onmax onmax deleted the feat/shelve-integration branch January 24, 2026 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant