Add remote access controls

This commit is contained in:
Shantur Rathore
2025-12-03 21:52:42 +00:00
parent 976430d61c
commit 94cb741c7f
23 changed files with 1165 additions and 29 deletions

View File

@@ -4,8 +4,8 @@ import { serverApi } from "./api-client"
let cachedMeta: ServerMeta | null = null
let pendingMeta: Promise<ServerMeta> | null = null
export async function getServerMeta(): Promise<ServerMeta> {
if (cachedMeta) {
export async function getServerMeta(forceRefresh = false): Promise<ServerMeta> {
if (cachedMeta && !forceRefresh) {
return cachedMeta
}
if (pendingMeta) {