Preview: Block ausserhalb des Formulars, Validierung und Feinschliff
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2de846436b
commit
c1818fadcf
6 files changed
+62
-22
No files matched your search
@@ -22,3 +22,8 @@ export function isDevPreview(p) {
|
||||
if (p.mode === 'dev') return true
|
||||
return (p.mode || 'auto') === 'auto' && typeof p.detected === 'string' && p.detected.startsWith('dev:')
|
||||
}
|
||||
|
||||
export const MAX_ENV_VARS = 30
|
||||
export function envValueTooLong(value) {
|
||||
return new TextEncoder().encode(String(value ?? '')).length > 4096
|
||||
}
|
||||
Reference in new issue
Block a user