diff --git a/public/app-ads.txt b/public/app-ads.txt deleted file mode 100644 index ad47f86..0000000 --- a/public/app-ads.txt +++ /dev/null @@ -1 +0,0 @@ -google.com, pub-3050915388015871, DIRECT, f08c47fec0942fa0 \ No newline at end of file diff --git a/src/app-ads.txt .ts b/src/app-ads.txt .ts new file mode 100644 index 0000000..b2615fb --- /dev/null +++ b/src/app-ads.txt .ts @@ -0,0 +1,10 @@ +import type { APIRoute } from "astro"; + +const rads = ` +google.com, pub-3050915388015871, DIRECT, f08c47fec0942fa0 +`.trim(); + +export const GET: APIRoute = () => + new Response(rads, { + headers: { "Content-Type": "text/plain" }, + });