Files
wursor/web/next.config.ts
T
Claude 0cff3902b2 feat(web): Product, How it works, Trust, Pricing and Docs pages, with a marketing e2e check
Pricing shows no plans, prices or free trial until decided. Docs search and articles without pages are shown but not linked. Disables the agent file that next dev generates.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014SdXCbrN5PtGExkpvMaMHx
2026-10-12 15:34:50 +00:00

19 lines
667 B
TypeScript

import type { NextConfig } from 'next';
const apiOrigin = process.env.WURSOR_API_URL ?? 'http://localhost:3000';
const config: NextConfig = {
reactStrictMode: true,
// Do not let `next dev` write its own agent instructions into web/. The repository's AGENTS.md is the guide.
agentRules: false,
// Interim: the Sprint 1 shell at /app still calls the API on the same origin.
// Replaced by server-held sessions (ADR 0018, step C).
async rewrites() {
return ['/auth/:path*', '/chat/:path*', '/chat', '/sites/:path*', '/sites', '/health'].map(
(source) => ({ source, destination: `${apiOrigin}${source}` }),
);
},
};
export default config;