🚧 Redirect cRUD

This commit is contained in:
Fred KISSIE
2026-09-10 00:31:39 +02:00
parent ae7315244f
commit 05d1d4d143
8 changed files with 853 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
import { z } from "zod";
export const redirectNiceIdSchema = z
.string()
.min(1)
.max(255)
.regex(
/^[a-zA-Z0-9-]+$/,
"niceId can only contain letters, numbers, and dashes"
);
export const redirectSourcePathSchema = z
.string()
.nonempty()
.regex(/^\//, "sourcePath must start with a /")
.default("/*");