fix(agent): versionnage des fichiers agent pour éviter le cache navigateur
- build.sh génère désormais des fichiers versionnés (edubox-agent-vX.Y.Z) - dashboard et /api/download pointent vers les fichiers versionnés - affichage de la version actuelle sur la page de téléchargement
This commit is contained in:
@@ -1,9 +1,12 @@
|
||||
import { NextResponse } from "next/server";
|
||||
|
||||
const AGENT_VERSION = "0.2.3";
|
||||
|
||||
export async function GET() {
|
||||
return NextResponse.json({
|
||||
windows: "/agent/edubox-agent.exe",
|
||||
linux: "/agent/edubox-agent",
|
||||
mac: "/agent/edubox-agent-mac",
|
||||
version: AGENT_VERSION,
|
||||
windows: `/edubox-agent-v${AGENT_VERSION}.exe`,
|
||||
linux: `/edubox-agent-v${AGENT_VERSION}`,
|
||||
mac: `/edubox-agent-v${AGENT_VERSION}-mac`,
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user