Preview: Block ausserhalb des Formulars, Validierung und Feinschliff

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Sonnet 5.5 committed 2026-09-30 21:08:52 +00:00
1 parent 2de846436b
commit c1818fadcf
6 files changed
+62 -22

No files matched your search

+5
View File
@@ -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
}