mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 10:47:04 +02:00
feat: remove nitropay
This commit is contained in:
1 parent
8c0ddd473c
commit
eba2057306
2 files changed
-21
No files matched your search
@@ -27,9 +27,3 @@
|
||||
queue: [],
|
||||
};
|
||||
</script>
|
||||
<script
|
||||
is:inline
|
||||
data-cfasync="false"
|
||||
async
|
||||
src={`https://s.nitropay.com/ads-${import.meta.env.PUBLIC_NITROPAY_ID}.js`}
|
||||
></script>
|
||||
@@ -1,15 +0,0 @@
|
||||
import { assertSecret } from '@blitzkit/core';
|
||||
import type { APIContext } from 'astro';
|
||||
|
||||
export async function GET({}: APIContext) {
|
||||
const response = await fetch(
|
||||
`https://api.nitropay.com/v1/ads-${assertSecret(
|
||||
import.meta.env.PUBLIC_NITROPAY_ID,
|
||||
)}.txt`,
|
||||
);
|
||||
const text = await response.text();
|
||||
const date = new Date();
|
||||
const content = `# Generated on ${date.toUTCString()}\n\n${text}`;
|
||||
|
||||
return new Response(content);
|
||||
}
|
||||
Reference in new issue
Block a user