This commit is contained in:
2026-01-16 20:36:21 +02:00
parent 8a4b3bc396
commit ca6d2d7abe
57 changed files with 14 additions and 71 deletions

View File

@@ -1,9 +1,15 @@
import { NextResponse } from "next/server"
import os from "os"
export const dynamic = "force-dynamic"
export const revalidate = 0
export async function GET() {
try {
return NextResponse.json({ instance: os.hostname() })
return NextResponse.json(
{ instance: os.hostname() },
{ headers: { "Cache-Control": "no-store" } },
)
} catch (error) {
console.error("Instance fetch error:", error)
return NextResponse.json({ error: "Failed to load instance name." }, { status: 500 })