next.config.ts 699 B

1234567891011121314151617181920
  1. import type { NextConfig } from "next";
  2. const nextConfig: NextConfig = {
  3. // The dev server is reached through the portless proxy origin; Next 16
  4. // blocks cross-origin dev requests (and silently breaks hydration)
  5. // unless the origin is allowlisted.
  6. allowedDevOrigins: ["harness-chat-demo.json-render.localhost"],
  7. // The harness adapters ship sandbox bridge files they load at runtime via
  8. // new URL(..., import.meta.url); bundling breaks that resolution.
  9. serverExternalPackages: [
  10. "@ai-sdk/harness",
  11. "@ai-sdk/harness-claude-code",
  12. "@ai-sdk/harness-codex",
  13. "@ai-sdk/harness-pi",
  14. "@ai-sdk/sandbox-vercel",
  15. "@vercel/sandbox",
  16. ],
  17. };
  18. export default nextConfig;