Did a whole ton of stuff, notably cloudflare tunnel hosting
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user