Domain degisikligi: fristy.net -> fristy.dev

This commit is contained in:
fristy committed 2026-10-15 21:43:19 +03:00
1 parent ed149ded52
commit b98acd0cde
18 files changed
+165 -37

No files matched your search

+3 -3
View File
@@ -13,7 +13,7 @@ function contextWith(id: string) {
describe("GET /api/discord-app/[id]", () => {
it("returns 400 for non-numeric ids", async () => {
const response = await GET(
new Request("https://fristy.net/api/discord-app/abc"),
new Request("https://fristy.dev/api/discord-app/abc"),
contextWith("abc"),
);
expect(response.status).toBe(400);
@@ -25,7 +25,7 @@ describe("GET /api/discord-app/[id]", () => {
vi.fn(async () => ({ ok: false, status: 404 })),
);
const response = await GET(
new Request("https://fristy.net/api/discord-app/123"),
new Request("https://fristy.dev/api/discord-app/123"),
contextWith("123"),
);
expect(response.status).toBe(404);
@@ -39,7 +39,7 @@ describe("GET /api/discord-app/[id]", () => {
}),
);
const response = await GET(
new Request("https://fristy.net/api/discord-app/123"),
new Request("https://fristy.dev/api/discord-app/123"),
contextWith("123"),
);
expect(response.status).toBe(502);
+5 -5
View File
@@ -17,11 +17,11 @@ function requestWith(url: string) {
describe("GET /api/game/[id]", () => {
it("returns 400 for non-numeric ids", async () => {
const response = await GET(
requestWith("https://fristy.net/api/game/abc"),
requestWith("https://fristy.dev/api/game/abc"),
contextWith("abc"),
);
expect(response.status).toBe(400);
expect(response.headers.get("Access-Control-Allow-Origin")).toBe("https://fristy.net");
expect(response.headers.get("Access-Control-Allow-Origin")).toBe("https://fristy.dev");
});
it("returns 404 when no profile resolves", async () => {
@@ -30,7 +30,7 @@ describe("GET /api/game/[id]", () => {
vi.fn(async () => ({ ok: false, status: 404 })),
);
const response = await GET(
requestWith("https://fristy.net/api/game/123"),
requestWith("https://fristy.dev/api/game/123"),
contextWith("123"),
);
expect(response.status).toBe(404);
@@ -44,10 +44,10 @@ describe("GET /api/game/[id]", () => {
}),
);
const response = await GET(
requestWith("https://fristy.net/api/game/123"),
requestWith("https://fristy.dev/api/game/123"),
contextWith("123"),
);
expect(response.status).toBe(502);
expect(response.headers.get("Access-Control-Allow-Origin")).toBe("https://fristy.net");
expect(response.headers.get("Access-Control-Allow-Origin")).toBe("https://fristy.dev");
});
});
+1 -1
View File
@@ -17,7 +17,7 @@ export async function generateMetadata(): Promise<Metadata> {
metadataBase: new URL(SITE_URL),
title: {
default: dict.meta.title,
template: "%s · fristy.net",
template: "%s · fristy.dev",
},
description: dict.meta.description,
openGraph: {