settlekit/apps/docs/next.config.mjs
caelum0x 598cd03f05 feat: implement all 8 SettleKit apps + fix x402 nonce round-trip
apps:
- api: Hono REST server, all §26 endpoints, 14 tests
- worker: delivery runner + payment-confirm + access-sync + renewal + webhook-retry jobs wired to real package clients
- dashboard: Next.js merchant dashboard, full §16/§27 sections + §28 product builder
- checkout: Next.js hosted USDC checkout with real delivery materialization
- marketplace: Next.js public marketplace + agent metadata.json route
- admin: Next.js risk/ops console wired to @settlekit/risk + database
- docs: Next.js docs site (9 static routes)
- examples: 5 runnable end-to-end examples

fix(x402): support pinned config.nonce so a stateless verifier can confirm
the challenge nonce round-trips (default stays random; package tests intact).

Full workspace: 590 tests passing (122 files), tsc green for all packages +
api/worker/examples, all 5 Next apps typecheck clean, docs next build green.
2026-06-15 10:49:14 +03:00

30 lines
937 B
JavaScript

import { fileURLToPath } from "node:url";
import { dirname } from "node:path";
const __dirname = dirname(fileURLToPath(import.meta.url));
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
// Pin output-file-tracing to this app so trace collection works inside the
// pnpm monorepo instead of resolving against the workspace root.
outputFileTracingRoot: __dirname,
// The docs app type-imports the source-built @settlekit/* workspace packages
// so its code samples stay bound to the real exports. Transpiling lets Next
// bundle their ESM output directly.
transpilePackages: [
"@settlekit/common",
"@settlekit/payments",
"@settlekit/entitlements",
"@settlekit/x402",
"@settlekit/saas",
"@settlekit/license-keys",
"@settlekit/api-keys",
"@settlekit/github",
"@settlekit/bundles",
"@settlekit/agent-services",
],
};
export default nextConfig;