Specify environment variable required in Zod message

This commit is contained in:
gbuomprisco
2024-09-06 19:47:06 +02:00
parent b32b0939b1
commit 106d6ec9fa

View File

@@ -49,7 +49,7 @@ const AppConfigSchema = z
return !schema.url.startsWith('http:');
},
{
message: `Please use a valid HTTPS URL in production.`,
message: `Please provide a valid HTTPS URL. Set the variable NEXT_PUBLIC_SITE_URL with a valid URL, such as: 'https://example.com'`,
path: ['url'],
},
)