diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 079da79..0f3b236 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -11,7 +11,7 @@ concurrency: env: REGISTRY: git.fristy.net - IMAGE_NAME: fristy/fristynet + IMAGE_NAME: fristy/fristydev jobs: image: diff --git a/README.md b/README.md index fcc8daf..50385a6 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ -# fristy.net +# fristy.dev ![Code Health](scorecard.png) My personal corner of the internet — projects, live Discord status, and ways to reach me. -**Live:** https://fristy.net +**Live:** https://fristy.dev ## What's inside @@ -48,15 +48,15 @@ docker run --rm -p 3000:3000 fristynet No need to build it yourself though — CI publishes every `main` push: ```bash -docker pull git.fristy.net/fristy/fristynet:latest +docker pull git.fristy.net/fristy/fristydev:latest ``` ## CI/CD Pushes to `main` (and `` tags) run format check, lint and build first. If those pass, the Docker image is built and pushed to the Gitea registry: -- `git.fristy.net/fristy/fristynet:latest` on every `main` push -- `git.fristy.net/fristy/fristynet:` for every pushed commit +- `git.fristy.net/fristy/fristydev:latest` on every `main` push +- `git.fristy.net/fristy/fristydev:` for every pushed commit Pull requests only run the checks — nothing is pushed. diff --git a/app/api/discord-app/[id]/route.test.ts b/app/api/discord-app/[id]/route.test.ts index 9fa1f72..8ad5fa8 100644 --- a/app/api/discord-app/[id]/route.test.ts +++ b/app/api/discord-app/[id]/route.test.ts @@ -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); diff --git a/app/api/game/[id]/route.test.ts b/app/api/game/[id]/route.test.ts index dfcd46f..053c753 100644 --- a/app/api/game/[id]/route.test.ts +++ b/app/api/game/[id]/route.test.ts @@ -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"); }); }); diff --git a/app/layout.tsx b/app/layout.tsx index d2f7779..b4471af 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -17,7 +17,7 @@ export async function generateMetadata(): Promise { metadataBase: new URL(SITE_URL), title: { default: dict.meta.title, - template: "%s · fristy.net", + template: "%s · fristy.dev", }, description: dict.meta.description, openGraph: { diff --git a/components/site-footer.test.tsx b/components/site-footer.test.tsx index 6dc241d..4f793e1 100644 --- a/components/site-footer.test.tsx +++ b/components/site-footer.test.tsx @@ -7,7 +7,7 @@ describe("SiteFooter", () => { it("renders brand, rights, and source links", () => { const dict = getDictionary("en"); const { container } = render(); - expect(container.querySelector('a[href="https://fristy.net"]')).not.toBeNull(); + expect(container.querySelector('a[href="https://fristy.dev"]')).not.toBeNull(); expect(container.textContent).toContain(dict.footer.rights); const links = screen.getAllByRole("link"); expect(links.length).toBeGreaterThanOrEqual(3); diff --git a/components/site-footer.tsx b/components/site-footer.tsx index d6d9730..9b7a764 100644 --- a/components/site-footer.tsx +++ b/components/site-footer.tsx @@ -28,7 +28,7 @@ export function SiteFooter({ dict }: { dict: Dictionary["footer"] }) {

© {year}{" "} - fristy.net + fristy.dev {" "} · {dict.rights}

diff --git a/components/site-header.tsx b/components/site-header.tsx index c906a79..a8d831f 100644 --- a/components/site-header.tsx +++ b/components/site-header.tsx @@ -7,7 +7,7 @@ export function SiteHeader({ dict, locale }: { dict: Dictionary["nav"]; locale:
- fristy.net + fristy.dev