We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ad5a71 commit 09a1ecdCopy full SHA for 09a1ecd
packages/sdk/src/schema/pages.ts
@@ -92,7 +92,10 @@ export const PagePath = z
92
.string()
93
.refine((path) => path !== "", "Can't be empty")
94
.refine((path) => path !== "/", "Can't be just a /")
95
- .refine((path) => path === "" || path.startsWith("/"), "Must start with a /")
+ .refine(
96
+ (path) => path === "" || path.startsWith("/"),
97
+ "Must start with a / or a full URL e.g. https://website.org"
98
+ )
99
.refine((path) => path.endsWith("/") === false, "Can't end with a /")
100
.refine((path) => path.includes("//") === false, "Can't contain repeating /")
101
.refine(
0 commit comments