@@ -6,18 +6,30 @@ export const env = createEnv({
66 * Specify your server-side environment variables schema here. This way you can ensure the app isn't
77 * built with invalid env vars.
88 */
9- server : {
9+ server : {
10+ CLERK_SECRET_KEY : z . string ( ) . nonempty ( ) ,
1011 } ,
1112 /**
1213 * Specify your client-side environment variables schema here.
1314 * For them to be exposed to the client, prefix them with `NEXT_PUBLIC_`.
1415 */
1516 client : {
17+ NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY : z . string ( ) . nonempty ( ) ,
18+ NEXT_PUBLIC_CLERK_SIGN_IN_URL : z . string ( ) . nonempty ( ) ,
19+ NEXT_PUBLIC_CLERK_SIGN_UP_URL : z . string ( ) . nonempty ( ) ,
20+ NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL : z . string ( ) . nonempty ( ) ,
21+ NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL : z . string ( ) . nonempty ( ) ,
1622 } ,
1723 /**
1824 * Destructure all variables from `process.env` to make sure they aren't tree-shaken away.
1925 */
2026 runtimeEnv : {
27+ CLERK_SECRET_KEY : process . env . CLERK_SECRET_KEY ,
28+ NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY : process . env . NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY ,
29+ NEXT_PUBLIC_CLERK_SIGN_IN_URL : process . env . NEXT_PUBLIC_CLERK_SIGN_IN_URL ,
30+ NEXT_PUBLIC_CLERK_SIGN_UP_URL : process . env . NEXT_PUBLIC_CLERK_SIGN_UP_URL ,
31+ NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL : process . env . NEXT_PUBLIC_CLERK_AFTER_SIGN_IN_URL ,
32+ NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL : process . env . NEXT_PUBLIC_CLERK_AFTER_SIGN_UP_URL ,
2133 } ,
2234 skipValidation : ! ! process . env . CI || ! ! process . env . SKIP_ENV_VALIDATION ,
2335} ) ;
0 commit comments