@cosmstack/blackshield
Version:
A developer-first security toolkit for React/Next.js applications
16 lines (13 loc) • 455 B
text/typescript
import { NextConfig } from 'next';
interface BlackshieldNextOptions {
/** Fail build on environment validation errors */
failOnEnvErrors?: boolean;
/** Custom configuration */
config?: {
envValidation?: {
allowedPublicVars?: string[];
};
};
}
declare function withBlackshield(nextConfig?: NextConfig, options?: BlackshieldNextOptions): NextConfig;
export { type BlackshieldNextOptions, withBlackshield };