Feature: Staging-Workflow — develop-Branch, make staging/release, APP_VERSION 1.0.0, Staging-Banner — SW by-v513

This commit is contained in:
rene 2026-04-29 19:57:33 +02:00
parent 9d3f902014
commit 041af92306
7 changed files with 100 additions and 14 deletions

View file

@ -3,7 +3,9 @@
Router, State-Management, Navigation, Initialisierung.
============================================================ */
const APP_VER = '489'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
const APP_VER = '490'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
const APP_VERSION = '1.0.0'; // ← semantische Version, wird bei make release gesetzt
const IS_STAGING = location.hostname === 'staging.banyaro.app';
const App = (() => {
@ -860,4 +862,11 @@ const App = (() => {
})();
// App starten
document.addEventListener('DOMContentLoaded', () => App.init());
document.addEventListener('DOMContentLoaded', () => {
if (IS_STAGING) {
const b = document.getElementById('staging-banner');
if (b) b.style.display = 'flex';
document.title = '⚗️ ' + document.title;
}
App.init();
});