export async function GET(request: Request) {
  const assetUrl = new URL("/BatchForge-source.zip.txt", request.url);
  const asset = await fetch(assetUrl);
  if (!asset.ok || !asset.body) return new Response("Source archive is unavailable", { status: 503 });

  return new Response(asset.body, {
    headers: {
      "Content-Type": "application/zip",
      "Content-Disposition": 'attachment; filename="BatchForge-source.zip"',
      "Cache-Control": "public, max-age=3600",
    },
  });
}
