diff --git a/src/routes/api/db/[database]/+server.ts b/src/routes/api/db/[database]/+server.ts index 519932a..371c93c 100644 --- a/src/routes/api/db/[database]/+server.ts +++ b/src/routes/api/db/[database]/+server.ts @@ -33,6 +33,10 @@ export const GET: RequestHandler = async ({ params, locals, url, fetch, platform throw error(404, "No tables found"); } const results = tables.results.filter(({ name }) => { + // Avoid all Cloudflare internal table names. + if (name.startsWith("_cf_")) { + return false; + } if (name.startsWith("sqlite_") || name.startsWith("d1_")) { return !!platform?.env.SHOW_INTERNAL_TABLES; }