Skip to content

Commit 5858712

Browse files
authored
feat(minor): Change SERVER_URL validation to use z.url() (#233)
In the latest version of Zod (>4), `z.string().url()` is deprecated in favour of `z.url()`
1 parent 9aabab0 commit 5858712

File tree

1 file changed

+2
-2
lines changed
  • frameworks/solid/add-ons/t3env/assets/src

1 file changed

+2
-2
lines changed

frameworks/solid/add-ons/t3env/assets/src/env.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { z } from "zod";
33

44
export const env = createEnv({
55
server: {
6-
SERVER_URL: z.string().url().optional(),
6+
SERVER_URL: z.url().optional(),
77
},
88

99
/**
@@ -36,4 +36,4 @@ export const env = createEnv({
3636
* explicitly specify this option as true.
3737
*/
3838
emptyStringAsUndefined: true,
39-
});
39+
});

0 commit comments

Comments
 (0)