Updated client env references
This commit is contained in:
@@ -6,7 +6,7 @@ export type Rank = {
|
||||
}
|
||||
|
||||
// @ts-ignore
|
||||
const addr = import.meta.env.VITE_APIHOST;
|
||||
const addr = import.meta.env.BASE_URL;
|
||||
|
||||
export async function getRanks(): Promise<Rank[]> {
|
||||
const res = await fetch(`${addr}/ranks`)
|
||||
|
||||
Reference in New Issue
Block a user