website

#astro#js#html#css

git clone https://git.pyrossh.dev/website

木 Personal website of pyrossh. Built with astrojs, shiki, vite.


90559ccpyrossh 2026-07-07T12:05:22+05:30
fix: correct path index for repoId and hash in commits workers
packages/workers/repos/commits/detail/src/index.tsx CHANGED
@@ -6,8 +6,8 @@ export default {
6
6
  async fetch(request: Request, env: Env): Promise<Response> {
7
7
  const url = new URL(request.url);
8
8
  const parts = url.pathname.split("/").filter(Boolean);
9
- const repoId = parts[2];
9
+ const repoId = parts[1];
10
- const hash = parts[4];
10
+ const hash = parts[3];
11
11
 
12
12
  const repo = getRepo(repoId);
13
13
  if (!repo) return Response.redirect(`${url.origin}/404`, 302);
packages/workers/repos/commits/index/src/index.tsx CHANGED
@@ -6,7 +6,7 @@ export default {
6
6
  async fetch(request: Request, env: Env): Promise<Response> {
7
7
  const url = new URL(request.url);
8
8
  const parts = url.pathname.split("/").filter(Boolean);
9
- const repoId = parts[2];
9
+ const repoId = parts[1];
10
10
  const repo = getRepo(repoId);
11
11
  if (!repo) return Response.redirect(`${url.origin}/404`, 302);
12
12