Welcome to AnswerRail Sovereign Edge.
Your high-performance edge reverse proxy is ready across 330+ Anycast points of presence. Follow the 3 quick steps below to retrieve your license key, connect your domain, and activate edge acceleration in under 60 seconds.
Retrieve Your Sovereign License Key Auto-detected from Stripe
Enter your billing email address or authenticate via your Stripe checkout session.
Connect Your Production Domain
Register your origin domain to initialize sub-15ms edge transformation and AST de-bloat (-96%).
Use ai.yourdomain.com for zero-risk subdomain routing.
Where AnswerRail fetches your original HTML.
ai
edge.answerrail.com
Deployment Architecture & Zero-DNS Methods
Choose between DNS CNAME forwarding or zero-DNS reverse proxy edge middleware.
Point a Dedicated AI Subdomain (0 Risk to Production)
Recommended for high-velocity rollout without modifying apex website DNS.
ai (or docs)edge.answerrail.comNext.js Edge Middleware (Zero DNS Modification)
Intercepts AI bots in Next.js App Router or Pages Router and rewrites seamlessly to AnswerRail.
// middleware.ts in your Next.js project root
import { NextResponse } from 'next/server';
import type { NextRequest } from 'next/server';
const AI_BOTS = ['perplexitybot', 'oai-searchbot', 'claudebot', 'applebot-extended', 'google-extended'];
export function middleware(req: NextRequest) {
const ua = (req.headers.get('user-agent') || '').toLowerCase();
const isBot = AI_BOTS.some(b => ua.includes(b));
const isMd = req.headers.get('accept')?.includes('text/markdown');
if (isBot || isMd) {
const target = `https://edge.answerrail.com/proxy?url=${encodeURIComponent(req.url)}`;
return NextResponse.rewrite(new URL(target));
}
return NextResponse.next();
}
export const config = { matcher: ['/((?!api|_next/static|_next/image|favicon.ico).*)'] };
Vercel Configuration (vercel.json)
Routes AI bot User-Agents directly via Vercel edge-routing rules without server compute.
{
"rewrites": [
{
"source": "/:path*",
"has": [
{ "type": "header", "key": "User-Agent", "value": ".*(PerplexityBot|OAI-SearchBot|ClaudeBot|Applebot-Extended).*" }
],
"destination": "https://edge.answerrail.com/proxy?url=https://YOUR_DOMAIN/:path*"
}
]
}
Cloudflare Worker Subrequest Route
Attach to your existing Cloudflare zone route (e.g. yourdomain.com/*).
export default {
async fetch(request) {
const ua = (request.headers.get('user-agent') || '').toLowerCase();
const isBot = ['perplexitybot', 'oai-searchbot', 'claudebot', 'applebot-extended'].some(b => ua.includes(b));
if (isBot || request.headers.get('accept')?.includes('text/markdown')) {
return fetch(`https://edge.answerrail.com/proxy?url=${encodeURIComponent(request.url)}`, request);
}
return fetch(request);
}
};
Open Your Developer Studio Console
Monitor incoming bot traffic in real-time, inspect AST token reductions, audit competitors, and export client-ready PDF memos.