bbbbb
This commit is contained in:
@@ -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 })
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
import type React from "react"
|
||||
import type { Metadata } from "next"
|
||||
import { Inter } from "next/font/google"
|
||||
import { IBM_Plex_Sans_Hebrew } from "next/font/google"
|
||||
import "./globals.css"
|
||||
|
||||
const inter = Inter({ subsets: ["latin"] })
|
||||
const ibmPlexSansHebrew = IBM_Plex_Sans_Hebrew({
|
||||
subsets: ["hebrew"],
|
||||
weight: ["100", "200", "300", "400", "500", "600", "700"],
|
||||
})
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'ממ"ד',
|
||||
@@ -22,7 +25,7 @@ export default function RootLayout({
|
||||
}) {
|
||||
return (
|
||||
<html lang="he" dir="rtl">
|
||||
<body className={inter.className}>{children}</body>
|
||||
<body className={ibmPlexSansHebrew.className}>{children}</body>
|
||||
</html>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user