An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix(web-routes): enhance backup response messages to clarify local and S3 availability
Andras Bacsaife2c4fd1c769
diff --git a/routes/web.php b/routes/web.phpindex 02b23cc374..e6567daadf 100644--- a/routes/web.php+++ b/routes/web.php@@ -326,7 +326,11 @@ Route::middleware(['auth'])->group(function () {'root' => '/',]);if (! $disk->exists($filename)) {- return response()->json(['message' => 'Backup not found.'], 404);+ if ($execution->scheduledDatabaseBackup->disable_local_backup === true && $execution->scheduledDatabaseBackup->save_s3 === true) {+ return response()->json(['message' => 'Backup not available locally, but available on S3.'], 404);+ }++ return response()->json(['message' => 'Backup not found locally on the server.'], 404);}return new StreamedResponse(function () use ($disk, $filename) {