Feat: Show insecure warning (#1779)

show insecure warning
This commit is contained in:
Bernd Storath
2025-03-31 10:29:22 +02:00
committed by GitHub
parent 6e0d758e36
commit 589ec1fe9a
7 changed files with 34 additions and 8 deletions

View File

@@ -3,9 +3,11 @@ import { gt } from 'semver';
export default defineEventHandler(async () => {
const latestRelease = await cachedFetchLatestRelease();
const updateAvailable = gt(latestRelease.version, RELEASE);
const insecure = WG_ENV.INSECURE;
return {
currentRelease: RELEASE,
latestRelease: latestRelease,
updateAvailable,
insecure,
};
});