Did a whole ton of stuff, notably cloudflare tunnel hosting

This commit is contained in:
2025-09-18 20:31:34 -04:00
parent 0f7faa499d
commit 4fcd485e75
7 changed files with 87 additions and 24 deletions

View File

@@ -7,11 +7,11 @@ export type Member = {
status_date: string | null;
};
const addr = "localhost:3000"
// @ts-ignore
const addr = import.meta.env.VITE_APIHOST;
export async function getMembers(): Promise<Member[]> {
const response = await fetch(`http://${addr}/members`);
const response = await fetch(`${addr}/members`);
if (!response.ok) {
throw new Error("Failed to fetch members");
}