🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

@prisma-next/config

Package Overview
Dependencies
Maintainers
3
Versions
530
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@prisma-next/config

Prisma Next config authoring types and validation

Source
npmnpm
Version
0.3.0-dev.72
Version published
Weekly downloads
15K
-14.12%
Maintainers
3
Weekly downloads
 
Created
Source

@prisma-next/config

Config authoring types and validation for prisma-next.config.ts.

Overview

This package owns the shared config contract used by tooling and authoring packages:

  • PrismaNextConfig and ContractConfig types
  • contract source provider + diagnostics protocol
  • defineConfig() normalization/defaulting
  • validateConfig() structural/runtime-shape validation

Responsibilities

  • Type-safe config composition for family, target, adapter, optional driver, and optional extensionPacks (extensions is rejected at runtime)
  • Contract source provider protocol (contract.source) and diagnostics shape
  • Pure config validation and normalization with no file system access

Non-responsibilities

  • Config file discovery/loading (c12, file I/O) - handled by @prisma-next/cli
  • CLI error envelope formatting and rendering - handled by CLI/core-control-plane error utilities
  • Control-plane migration operations and runtime actions

Usage

import { defineConfig } from '@prisma-next/config/config-types';
import { validateConfig } from '@prisma-next/config/config-validation';

const config = defineConfig({
  family: sqlFamilyDescriptor,
  target: postgresTargetDescriptor,
  adapter: postgresAdapterDescriptor,
  contract: {
    source: async () => /* Result<ContractIR, ContractSourceDiagnostics> */ null as never,
  },
});

validateConfig(config);

FAQs

Package last updated on 06 Mar 2026

Did you know?

Socket

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.

Install

Related posts