import { PWA_ICON_192 } from "@/lib/helpers/pwaIcons";
import { NextRequest, NextResponse } from "next/server";

export const dynamic = "force-dynamic";
export const revalidate = 0;

export async function GET(
  request: NextRequest,
  { params }: { params: Promise<{ name: string }> },
) {
  await params;
  return NextResponse.redirect(new URL(PWA_ICON_192, request.url), 302);
}
