A paid checkout queues an invoice row with every invoice detail (buyer, tax type and number, item, net, VAT, gross). The worker's new 'invoices' task creates the Billingo partner and the paid card invoice and e-mails it (API v3), saving each step so a retry never issues a second invoice, and keeps Billingo's whole answer; the PDF is fetched from Billingo when the user downloads it from the new Számláim page (in the menu once there is an invoice). Payments and invoices outlive a deleted account. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
53 lines
1.3 KiB
TypeScript
53 lines
1.3 KiB
TypeScript
import type { MetadataRoute } from "next";
|
|
|
|
import { siteUrl } from "@/lib/share";
|
|
|
|
// AI crawlers that train models or answer from the site: they load pages
|
|
// far more often than visitors do. Link preview robots (Facebook, Messenger,
|
|
// Slack, WhatsApp, X, LinkedIn) stay allowed, they make the shared links work.
|
|
const AI_CRAWLERS = [
|
|
"GPTBot",
|
|
"ChatGPT-User",
|
|
"OAI-SearchBot",
|
|
"ClaudeBot",
|
|
"Claude-User",
|
|
"Claude-SearchBot",
|
|
"anthropic-ai",
|
|
"CCBot",
|
|
"Google-Extended",
|
|
"GoogleOther",
|
|
"Applebot-Extended",
|
|
"PerplexityBot",
|
|
"Perplexity-User",
|
|
"Bytespider",
|
|
"Amazonbot",
|
|
"meta-externalagent",
|
|
"meta-externalfetcher",
|
|
"FacebookBot",
|
|
"cohere-ai",
|
|
"cohere-training-data-crawler",
|
|
"Diffbot",
|
|
"ImagesiftBot",
|
|
"Omgilibot",
|
|
"Omgili",
|
|
"YouBot",
|
|
"Timpibot",
|
|
"AI2Bot",
|
|
"Ai2Bot-Dolma",
|
|
"DuckAssistBot",
|
|
"MistralAI-User",
|
|
"PetalBot",
|
|
"Scrapy",
|
|
];
|
|
|
|
export default async function robots(): Promise<MetadataRoute.Robots> {
|
|
return {
|
|
sitemap: `${await siteUrl()}/sitemap.xml`,
|
|
rules: [
|
|
{ userAgent: AI_CRAWLERS, disallow: "/" },
|
|
// Logged-in pages redirect anyway; shared links carry noindex.
|
|
{ userAgent: "*", allow: "/", disallow: ["/api/", "/admin", "/profil", "/kepletek", "/osszevetesek", "/szemelyek", "/szamlak"] },
|
|
],
|
|
};
|
|
}
|