feat: add validation to prevent use of 'production' as environment name in creation and update operations, enhancing error handling in environment management

This commit is contained in:
Mauricio Siu
2025-09-05 01:14:44 -06:00
parent 0dca1b2216
commit 1ce15da7ce
2 changed files with 16 additions and 1 deletions

View File

@@ -80,7 +80,7 @@ export const runWebServerBackup = async (backup: BackupSchedule) => {
writeStream.write("Zipped database and filesystem\n");
const uploadCommand = `rclone copyto ${rcloneFlags.join(" ")} "${tempDir}/${backupFileName}" "${s3Path}"`;
writeStream.write(`Running command: ${uploadCommand}\n`);
writeStream.write("Running command to upload backup to S3\n");
await execAsync(uploadCommand);
writeStream.write("Uploaded backup to S3 ✅\n");
writeStream.end();