Skip to main content
StackNext reads stacknext.config.json from the project directory when stacknext dev starts. stacknext init creates it with mode 0600 when it is missing. The file is optional: a project without it uses the defaults.

Example

Fields

The config is validated with Zod. Invalid values and unknown fields are rejected at startup.

Environment variables

stacknext dev sets these for the Next.js child process. The app’s instrumentation.ts does not read the config file directly. An explicit inherited NEXT_OTEL_VERBOSE wins over instrumentation.verbose, including NEXT_OTEL_VERBOSE=0. Next.js treats only the literal value 1 as enabled. Verbose tracing adds spans and overhead; see instrumentation coverage.

Privacy fields

StackNext refuses to enable headers, bodies or SQL parameters. Those fields must stay false; they exist so the boundary is explicit and validated. See privacy.