fix(frontend): remove unused limits object from env.server

This commit is contained in:
sam 2024-10-01 16:19:04 +02:00
parent 2a66e3e25e
commit 3f8fe307ab
Signed by: sam
GPG key ID: B4EF20DDE721CAA1

View file

@ -1,11 +1,5 @@
import "dotenv/config";
import { env } from "node:process";
import { Limits } from "~/lib/api/meta";
export const API_BASE = env.API_BASE || "https://pronouns.localhost/api";
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);