Compare commits

..

1 Commits

9 changed files with 9 additions and 74 deletions

View File

@ -154,3 +154,11 @@ for users over a network, offer them its source; the app links to it from the
sidebar, login and unsubscribe pages.
If this saves you a Resend bill, a star helps others find it.
## Ecosystem
Part of the [Scribase](https://scribase.com) stack — one hosted Postgres backend (Supabase/Neon-compatible API, auth, storage) instead of stitching Supabase + Neon + Clerk + Resend together.
- [Scribase](https://scribase.com) — hosted Postgres, Supabase/Neon alternative, free tier, 14 days Pro trial, no card required
- [Toolgate](https://toolgate.scribase.com) — one key for agent tools, pay only for what you call
- [Scribase Mail](https://mail.scribase.com) — Resend-compatible email API
- More open-source projects from this account: [git.ereboslab.com/caelum0x](https://git.ereboslab.com/caelum0x)

View File

@ -22,20 +22,6 @@ const config = {
},
],
},
// llms.txt discoverability aliases: route every filename/path variant an
// agent might probe to the real files (app/llms.txt, app/llms-full.txt).
// Deliberately NOT adding a same-case-insensitive variant like
// '/LLMs.txt': Next's redirects() path matching is case-insensitive, so a
// rule from that path to '/llms.txt' would match itself and self-loop.
async redirects() {
return [
{ source: "/llm.txt", destination: "/llms.txt", permanent: true },
{ source: "/llms", destination: "/llms.txt", permanent: true },
{ source: "/.well-known/llms.txt", destination: "/llms.txt", permanent: true },
{ source: "/llm-full.txt", destination: "/llms-full.txt", permanent: true },
{ source: "/.well-known/llms-full.txt", destination: "/llms-full.txt", permanent: true },
];
},
};
export default config;

View File

@ -1,15 +0,0 @@
-- The operator's own accounts (owner, postmaster, QA) never count as users
-- in the waitlist queue, the per-domain caps or any signup number (owner
-- decision 2026-11-12). Idempotent: the column may already exist where it
-- was applied by hand before this migration shipped.
ALTER TABLE "User" ADD COLUMN IF NOT EXISTS "isInternal" BOOLEAN NOT NULL DEFAULT false;
UPDATE "User"
SET "isInternal" = true
WHERE "isInternal" = false
AND (
lower(coalesce(email, '')) ~ '^(subasiarhan3|caelum0x|postmaster)'
OR lower(coalesce(email, '')) ~ '@(scribase\.com|ereboslab\.com|mailinator\.com)$'
OR lower(coalesce(email, '')) ~ '(\.|@)example\.com$'
OR lower(coalesce(email, '')) ~ '\.test$'
);

View File

@ -102,8 +102,6 @@ model User {
image String?
isBetaUser Boolean @default(false)
isWaitlisted Boolean @default(false)
/// The operator's own account (owner, postmaster, QA): never counted as a user.
isInternal Boolean @default(false)
createdAt DateTime @default(now())
accounts Account[]
sessions Session[]

View File

@ -46,14 +46,6 @@ export default async function RootLayout({
}) {
return (
<html lang="en" suppressHydrationWarning className="bg-sidebar-background">
<head>
{/* llms.txt discoverability (SP-AI1 convention, same as scribase.com /
docs.scribase.com): the metadata.alternates.types entry above already
points agents at index.md; this is the separate, spec-named llms.txt
link llmstxt.org consumers look for, with the title attribute that
API has no field for. */}
<link rel="alternate" type="text/markdown" title="llms.txt" href="/llms.txt" />
</head>
<body
className={`font-sans ${inter.variable} ${jetbrainsMono.variable} app bg-sidebar-background`}
>

View File

@ -1,31 +0,0 @@
import type { MetadataRoute } from "next";
/**
* mail.scribase.com had no app-level robots.txt, so the zone's edge was
* serving Cloudflare's default synthetic "content signals" placeholder (no
* actual Allow/Disallow rules) instead of a real policy. Same AI-crawler
* allow-list as scribase.com (apps/www/app/robots.ts) and
* docs.scribase.com (apps/docs/app/robots.ts): more AI visibility is the
* point for every scribase.com-family site.
*/
const AI_CRAWLERS = [
"OAI-SearchBot",
"Claude-SearchBot",
"PerplexityBot",
"ChatGPT-User",
"Claude-User",
"Perplexity-User",
"GPTBot",
"ClaudeBot",
"Applebot-Extended",
"Google-Extended",
];
export default function robots(): MetadataRoute.Robots {
return {
rules: [
{ userAgent: "*", allow: "/" },
...AI_CRAWLERS.map((userAgent) => ({ userAgent, allow: "/" })),
],
};
}

View File

@ -25,7 +25,6 @@ const COLUMNS = [
{ label: "Contact", href: `mailto:${CONTACT_EMAIL}` },
{ label: "Privacy", href: "/privacy" },
{ label: "Terms", href: "/terms" },
{ label: "llms.txt", href: "/llms.txt" },
],
},
];

View File

@ -101,8 +101,7 @@ export const adminRouter = createTRPCRouter({
)
.query(async ({ input }) => {
const { page, limit } = input;
// The operator's own accounts are not sign-ups.
const where = { isWaitlisted: true, isInternal: false };
const where = { isWaitlisted: true };
const [users, total] = await Promise.all([
db.user.findMany({

View File

@ -156,7 +156,6 @@ function liveDeps(): AutoApproveDeps {
where: {
id: { not: excludeUserId },
isWaitlisted: false,
isInternal: false,
email: { endsWith: `@${domain}`, mode: "insensitive" },
},
}),