Skip to content

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.

feat(magic): add LOWERCASEUSER as magic variable (#6942)

Joshua Hennig8002bb6e8e9f
diff --git a/bootstrap/helpers/shared.php b/bootstrap/helpers/shared.php
index f61790f52c..58543c0c79 100644
--- a/bootstrap/helpers/shared.php
+++ b/bootstrap/helpers/shared.php
@@ -989,6 +989,9 @@ function generateEnvValue(string $command, Service|Application|null $service = n
case 'USER':
$generatedValue = Str::random(16);
break;
+ case 'LOWERCASEUSER':
+ $generatedValue = Str::lower(Str::random(16));
+ break;
case 'SUPABASEANON':
$signingKey = $service->environment_variables()->where('key', 'SERVICE_PASSWORD_JWT')->first();
if (is_null($signingKey)) {