Files
bamort/frontend/VERSION.md
Frank d4341a4730 removed the Git_Commit from system information output
it is not easyly to manage since both backend and frontend are running in compiled packages  in production and we have no git repository underneath
2026-01-17 08:07:26 +01:00

1.2 KiB

Frontend Version Management

Current Version: 0.1.29

The frontend version is managed independently from the backend.

Version Locations

  1. Primary source: /frontend/src/version.js

    • Contains the VERSION constant
    • Exports version info functions
  2. Package metadata: /frontend/package.json

    • Standard npm version field
    • Should match version.js

Updating the Version

# Updates both backend and frontend
./scripts/update-version.sh 0.1.31

Option 2: Manual update

Edit /frontend/src/version.js:

export const VERSION = '0.1.31'  // Update this

And /frontend/package.json:

{
  "version": "0.1.31"  // Update this
}

Usage in Components

import { getVersion, getVersionInfo } from '@/version'

// Get version string
const version = getVersion()  // "0.1.30"

// Get full info object
const info = getVersionInfo()  // { version: "0.1.30" }

Landing Page Display

The landing page shows both:

  • Frontend Version: From /frontend/src/version.js
  • Backend Version: Fetched from /api/public/version

This allows users to see if frontend and backend are in sync.