Silent mode
Don't log a warning when an adapter fails.
If an adapter fails, Zod Config still returns the data from the other adapters, and by default it logs a warning. Set silent to skip the warning, for example when a source is optional:
import { } from 'zod';
import { } from 'zod-config';
import { } from 'zod-config/env-adapter';
const = .({
: .().(/^\d+$/),
: .(),
});
const = await ({
: ,
// silent: true --> also available in the global config in case you want to use it for all adapters
: ({ : true }),
});silent can be set on one adapter or globally on loadConfig. The adapter-level value takes precedence.