settlekit/apps/web/next.config.mjs
caelum0x 61ce1686ff feat(web): SaaS integration guide at /docs/integrate, with email-based entitlement checks
- /docs/integrate: payment link, embeddable button, server-opened sessions
  with a return URL, Node webhook signature verification with the event list
  and a sample payload, and checking access through the entitlement API.
- api: /v1/entitlements and /v1/entitlements/verify accept the buyer's email
  and are scoped to the caller's organization.
- checkout: confirmed buyers are recorded as customers (email, GitHub,
  Discord, wallet) so sellers can check access by email; receipts and
  subscriptions offer "Continue to <seller>" when the link carried a successUrl.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 21:39:36 +03:00

19 lines
787 B
JavaScript

/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
env: {
NEXT_PUBLIC_DASHBOARD_URL:
process.env.NEXT_PUBLIC_DASHBOARD_URL ?? "http://localhost:3001",
NEXT_PUBLIC_MARKETPLACE_URL:
process.env.NEXT_PUBLIC_MARKETPLACE_URL ?? "http://localhost:3011",
NEXT_PUBLIC_DOCS_URL:
process.env.NEXT_PUBLIC_DOCS_URL ?? "http://localhost:3000",
NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL ?? "http://localhost:8787",
NEXT_PUBLIC_CHECKOUT_URL: process.env.NEXT_PUBLIC_CHECKOUT_URL ?? "http://localhost:3000",
NEXT_PUBLIC_PLATFORM_FEE_BPS: process.env.NEXT_PUBLIC_PLATFORM_FEE_BPS ?? "100",
NEXT_PUBLIC_PLATFORM_FEE_FIXED: process.env.NEXT_PUBLIC_PLATFORM_FEE_FIXED ?? "0",
},
};
export default nextConfig;