import { NextResponse } from 'next/server' // BUILD_ID is set at build time by Next.js standalone output. // Falls back to a startup timestamp so every restart counts as a new version. const VERSION = process.env.BUILD_ID || process.env.NEXT_BUILD_ID || Date.now().toString() export function GET() { return NextResponse.json( { version: VERSION }, { headers: { 'Cache-Control': 'no-cache, no-store, must-revalidate', }, } ) }