Refactor PK page and add Trellis setup
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import type { AppSettings } from "./types";
|
||||
|
||||
export async function loadSettings() {
|
||||
const response = await fetch("/api/settings", { cache: "no-store" });
|
||||
const data = (await response.json()) as { settings: Partial<AppSettings> };
|
||||
return data.settings;
|
||||
}
|
||||
Reference in New Issue
Block a user