feat(env): support variable flag directives in developer view (#12349)

This commit is contained in:
Andras Bacsai
2026-10-27 16:27:22 +01:00
committed by GitHub
parent 1039368491
commit fcdcd80eeb
12 changed files with 441 additions and 109 deletions
@@ -156,8 +156,12 @@
@endforeach
</div>
@endif
<form wire:submit="submit" class="p-4">
<form wire:submit="submit" class="flex flex-col gap-4 p-4">
<x-unsaved-bar action="submit" />
<x-callout type="info" title="Note">
To make a variable literal, put <code class="font-mono"># coolify: literal</code> directly above
its line. Without this line, the flag does not change.
</x-callout>
<x-forms.textarea canGate="update" :canResource="$resource" rows="20"
class="whitespace-pre-wrap" id="variables" wire:model="variables" monospace
:label="$variablesLabel" />
@@ -69,6 +69,8 @@
@can('manageEnvironment', $resource)
<x-callout type="info" title="Note">
Inline comments with space before # (e.g., <code class="font-mono">KEY=value #comment</code>) are stripped.
To set flags, put <code class="font-mono"># coolify: literal buildtime=false runtime=false</code>
directly above a variable line. Without this line, the flags of a variable do not change.
</x-callout>
<x-forms.textarea rows="10" class="whitespace-pre-wrap font-sans" id="variables"
wire:model="variables" label="Production"></x-forms.textarea>