
Security News
/Company News
Socket Is Sponsoring Composer and Packagist
Socket has joined the new Composer and Packagist sponsorship program as a launch sponsor, supporting the team that keeps PHP's package ecosystem secure.
@prisma-next/config-loader
Advanced tools
Prisma Next config loader: discovers, validates, and finalizes prisma-next.config.ts
Internal package. This package is an implementation detail of
prisma-nextand is published only to support its runtime. Its API is unstable and may change without notice. Do not depend on this package directly; installprisma-nextinstead.
Discovers, validates, and finalizes prisma-next.config.ts.
This package owns config loading — the file I/O (c12), validation, and finalization
that turns a prisma-next.config.ts on disk into a resolved PrismaNextConfig. It also
performs the emitter-derived artifact-collision check (getEmittedArtifactPaths).
It exposes a single loadConfig(configPath?) that maps failures to the CLI's structured
@prisma-next/errors/control errors (CliStructuredError). Consumers that need to react to
specific failures (e.g. the language server degrading on a missing/invalid config) branch on
the structured error's stable code (4001 = config file not found, 4009 = config validation).
import { loadConfig } from '@prisma-next/config-loader';
import { CliStructuredError } from '@prisma-next/errors/control';
try {
const config = await loadConfig('prisma-next.config.ts');
} catch (error) {
if (error instanceof CliStructuredError && error.code === '4001') {
// degrade gracefully on a missing config
}
}
FAQs
Prisma Next config loader: discovers, validates, and finalizes prisma-next.config.ts
The npm package @prisma-next/config-loader receives a total of 12,224 weekly downloads. As such, @prisma-next/config-loader popularity was classified as popular.
We found that @prisma-next/config-loader demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 open source maintainers 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
/Company News
Socket has joined the new Composer and Packagist sponsorship program as a launch sponsor, supporting the team that keeps PHP's package ecosystem secure.

Research
/Security News
Benign-looking npm packages split malicious functionality across a dependency chain that deploys a cross-platform RAT targeting Alibaba developers.

Research
/Security News
Two Joyfill npm beta releases contain an import-time implant that uses blockchain transactions to retrieve a remote-access trojan.