added build date to headers

This commit is contained in:
2026-02-28 23:42:28 +01:00
parent d7cfd2ee76
commit 5751c8cf15
2 changed files with 6 additions and 0 deletions

View File

@@ -20,6 +20,11 @@ jobs:
- name: Install - name: Install
run: npm ci run: npm ci
- name: Inject build date
run: |
BUILD_DATE=$(date -u +"%Y-%m-%d %H:%M:%S UTC")
sed -i "s/__BUILD_DATE__/$BUILD_DATE/" index.html
- name: Build - name: Build
run: npm run build run: npm run build

View File

@@ -4,6 +4,7 @@
<meta charset="UTF-8" /> <meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" /> <link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="build-date" content="__BUILD_DATE__" />
<title>my-app</title> <title>my-app</title>
</head> </head>
<body> <body>