refactor(docs): update project documentation for clarity and accuracy
Deploy to VPS / deploy (push) Failing after 1m38s
Deploy to VPS / deploy (push) Failing after 1m38s
This commit is contained in:
@@ -1,11 +1,6 @@
|
||||
import { useEffect, useState } from "react";
|
||||
import { configApi } from "@/lib/api";
|
||||
|
||||
export interface AppConfig {
|
||||
monitorGuildId: string | null;
|
||||
webserverPort?: number;
|
||||
nodeEnv?: string;
|
||||
}
|
||||
import type { AppConfig } from "@/lib/types/guild";
|
||||
|
||||
export function useAppConfig() {
|
||||
const [config, setConfig] = useState<AppConfig | null>(null);
|
||||
@@ -15,9 +10,7 @@ export function useAppConfig() {
|
||||
configApi
|
||||
.get()
|
||||
.then((cfg) => {
|
||||
setConfig({
|
||||
monitorGuildId: cfg.monitor_guild_id ?? null,
|
||||
});
|
||||
setConfig(cfg);
|
||||
})
|
||||
.catch(() => {
|
||||
// silent — config fetch is not critical
|
||||
|
||||
Reference in New Issue
Block a user