fix(frontend): remove unused limits object from env.server
This commit is contained in:
parent
2a66e3e25e
commit
3f8fe307ab
1 changed files with 0 additions and 6 deletions
|
@ -1,11 +1,5 @@
|
||||||
import "dotenv/config";
|
import "dotenv/config";
|
||||||
import { env } from "node:process";
|
import { env } from "node:process";
|
||||||
import { Limits } from "~/lib/api/meta";
|
|
||||||
|
|
||||||
export const API_BASE = env.API_BASE || "https://pronouns.localhost/api";
|
export const API_BASE = env.API_BASE || "https://pronouns.localhost/api";
|
||||||
export const LANGUAGE = env.LANGUAGE || "en";
|
export const LANGUAGE = env.LANGUAGE || "en";
|
||||||
|
|
||||||
const apiLimits: Limits = await fetch(`${API_BASE}/v2/meta`)
|
|
||||||
.then((resp) => resp.json())
|
|
||||||
.then((m) => m.limits);
|
|
||||||
export const limits: Limits = Object.freeze(apiLimits);
|
|
||||||
|
|
Loading…
Reference in a new issue