mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 15:39:59 +00:00
feat(env): support variable flag directives in developer view (#12349)
This commit is contained in:
1 parent
1039368491
commit
fcdcd80eeb
12 files changed
+441
-109
No files matched your search
@@ -11,6 +11,14 @@ class SharedEnvironmentVariable extends Model
|
||||
{
|
||||
use Auditable;
|
||||
|
||||
/**
|
||||
* Flags that a "# coolify:" line of the developer view can set, with their defaults.
|
||||
* Shared variables have no buildtime or runtime flags.
|
||||
*
|
||||
* @var array<string, bool>
|
||||
*/
|
||||
public const DEV_VIEW_FLAG_DEFAULTS = ['literal' => false];
|
||||
|
||||
protected $fillable = [
|
||||
// Core identification
|
||||
'key',
|
||||
@@ -40,6 +48,7 @@ class SharedEnvironmentVariable extends Model
|
||||
protected $casts = [
|
||||
'key' => 'string',
|
||||
'value' => 'encrypted',
|
||||
'is_literal' => 'boolean',
|
||||
];
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user