feat: adding mobile/desktop pagespeed strategy

This commit is contained in:
mannilakash committed 2026-04-07 07:02:44 -04:00
1 parent 4222d39a8b
commit 2bbaf7d1eb
17 files changed
+164 -12

No files matched your search

+2
View File
@@ -1,5 +1,6 @@
import { z } from "zod";
import { GeoContinents } from "@/Types/GeoCheck";
import { PageSpeedStrategies } from "@/Types/Monitor";
// URL schema with custom error message
const urlSchema = z.url({ message: "Please enter a valid URL" });
@@ -89,6 +90,7 @@ const grpcSchema = baseSchema.extend({
const pagespeedSchema = baseSchema.extend({
type: z.literal("pagespeed"),
url: urlSchema,
strategy: z.enum(PageSpeedStrategies),
});
// Hardware/Infrastructure monitor schema