ui/components: add PreviewBanner with commit hash for coolify [beta] - #2640
Merged
Conversation
|
Contributor
|
i like this this can be made as a component in then it can own its own functions & styles |
plowsof
force-pushed
the
coolify-hash-header
branch
from
April 26, 2026 21:00
4cc745e to
b0ca0be
Compare
Collaborator
Author
|
i ended up putting it in Layout to try to not have it interfere with the UI with no success. I then realised it should be fixed at the bottom just like how netlify displays something similar without messing with the UI, so im not sure where it should go now. coolify has another default var astro? sometimes {var} sometimes { TODO: move the banner element inside the html block for linting |
plowsof
marked this pull request as ready for review
April 27, 2026 13:18
redsh4de
suggested changes
Apr 27, 2026
Update PreviewBanner.astro with design tokens from styles/global.css: Co-authored-by: redsh4de <25299353+redsh4de@users.noreply.github.com>
plowsof
force-pushed
the
coolify-hash-header
branch
from
April 27, 2026 19:17
752a0e8 to
6e11f8f
Compare
redsh4de
approved these changes
Apr 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
coolify sets
SOURCE_COMMITenv var by default. I have manually set the envCOOLIFY_PREVIEWtotruefor preview deploys, but not for productionstyles can be added e.g. background colour
the variable can/should be generic? i seen a nice looking default var called
NODE_ENVbut coolify has this set toproductionin both deploy and previewsproof of concept to show the commit hash on previews