mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-14 18:35:24 +02:00
- Introduced regex validation for the `additionalFlags` field to ensure proper flag formatting. - Updated error handling in the API router to provide clearer feedback on validation issues. - Refactored the database schema to align with the new validation rules for additionalFlags. - Added a new validation module for destination-related checks.
4 lines
200 B
TypeScript
4 lines
200 B
TypeScript
export const ADDITIONAL_FLAG_REGEX = /^--[a-zA-Z0-9-]+(=[a-zA-Z0-9._:/@-]+)?$/;
|
|
export const ADDITIONAL_FLAG_ERROR =
|
|
"Invalid flag format. Must start with -- (e.g. --s3-sign-accept-encoding=false)";
|