Replace config manager with unjs/c12

This commit is contained in:
Jesse Wierzbinski 2024-04-06 18:16:54 -10:00
parent 6b2e4044b6
commit 6a54c5b805
No known key found for this signature in database
30 changed files with 744 additions and 733 deletions

View file

@ -9,10 +9,9 @@ import {
import type { APIAccount } from "~types/entities/account";
import type { APIRelationship } from "~types/entities/relationship";
import type { APIStatus } from "~types/entities/status";
import { ConfigManager } from "config-manager";
import { config } from "config-manager";
import { sendTestRequest, wrapRelativeUrl } from "~tests/utils";
const config = await new ConfigManager({}).getConfig();
const base_url = config.http.base_url;
let token: Token;

View file

@ -10,10 +10,9 @@ import type { APIAccount } from "~types/entities/account";
import type { APIAsyncAttachment } from "~types/entities/async_attachment";
import type { APIContext } from "~types/entities/context";
import type { APIStatus } from "~types/entities/status";
import { ConfigManager } from "config-manager";
import { config } from "config-manager";
import { sendTestRequest, wrapRelativeUrl } from "~tests/utils";
const config = await new ConfigManager({}).getConfig();
const base_url = config.http.base_url;
let token: Token;