Updated client env references
This commit is contained in:
@@ -8,7 +8,7 @@ export type LOARequest = {
|
||||
reason?: string;
|
||||
};
|
||||
// @ts-ignore
|
||||
const addr = import.meta.env.VITE_APIHOST;
|
||||
const addr = import.meta.env.BASE_URL;
|
||||
|
||||
export async function submitLOA(request: LOARequest): Promise<{ id?: number; error?: string }> {
|
||||
const res = await fetch(`${addr}/loa`, {
|
||||
|
||||
Reference in New Issue
Block a user