We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fb75a6 commit fad78c4Copy full SHA for fad78c4
1 file changed
src/pages/api/release-channels.ts
@@ -1,4 +1,11 @@
1
-export async function GET() {
+import type { APIRoute } from "astro";
2
+
3
+export const prerender = false;
4
5
+export const GET: APIRoute = ({ params, request, redirect }) => {
6
+ if (!(request.headers.get("user-agent") || "").includes("Ryujinx"))
7
+ return redirect("/", 307)
8
9
return new Response(
10
JSON.stringify({
11
canary: "iurehg8uetgyh8ui5e/cr",
@@ -10,4 +17,4 @@ export async function GET() {
17
}
18
12
19
);
13
-}
20
+};
0 commit comments