fix(ai): harden turbopuffer misconfiguration and reset failure paths

This commit is contained in:
Philipinho
2026-08-17 01:48:54 +01:00
parent 157e847550
commit 7a2411e147
2 changed files with 6 additions and 1 deletions
@@ -5,6 +5,7 @@ import {
IsOptional,
IsString,
IsUrl,
Matches,
MinLength,
ValidateIf,
validateSync,
@@ -137,6 +138,10 @@ export class EnvironmentVariables {
@IsOptional()
@IsString()
@Matches(/^[A-Za-z0-9\-_.]{1,90}$/, {
message:
'TURBOPUFFER_NAMESPACE_PREFIX may only contain letters, digits, dot, dash, underscore (max 90 chars)',
})
TURBOPUFFER_NAMESPACE_PREFIX: string;
@IsOptional()