
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
nuxt-required-env
Advanced tools
Ensure that all required environment variables exist.
Install the module to your Nuxt application with one command:
npx nuxi module add nuxt-required-env
Create a file called env-schema.ts in your project root:
import { z } from 'zod'
export const EnvSchema = z.object({
NUXT_PUBLIC_SITE_URL: z.string().url(),
STRIPE_KEY: z.string(),
SUPABASE_URL: z.string().url(),
MY_SECRET: z.string().min(10),
})
If your schema is in a different path, set it via module options:
export default defineNuxtConfig({
modules: ['nuxt-required-env'],
requiredEnv: {
schemaPath: 'config/env-schema', // path relative to project root, without extension
},
})
That's it! You can now use nuxt-required-envin your Nuxt app ✨
# Install dependencies
npm install
# Generate type stubs
npm run dev:prepare
# Develop with the playground
npm run dev
# Build the playground
npm run dev:build
# Run ESLint
npm run lint
# Run Vitest
npm run test
npm run test:watch
# Release new version
npm run release
v1.0.8
FAQs
Ensure that all required environment variables exist.
The npm package nuxt-required-env receives a total of 0 weekly downloads. As such, nuxt-required-env popularity was classified as not popular.
We found that nuxt-required-env demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.