diff --git a/apps/commune-validator/src/app/(pages)/layout.tsx b/apps/commune-validator/src/app/(pages)/layout.tsx
index eec0a81..dbf8561 100644
--- a/apps/commune-validator/src/app/(pages)/layout.tsx
+++ b/apps/commune-validator/src/app/(pages)/layout.tsx
@@ -1,43 +1,47 @@
-import type { Metadata } from "next";
-import Link from "next/link";
+"use client";
+import Link from "next/link";
import { Button, Container, Separator } from "@commune-ts/ui";
+import { usePathname } from "next/navigation";
-export const metadata: Metadata = {
- robots: "all",
- title: "Commune AI",
- icons: [{ rel: "icon", url: "favicon.ico" }],
- description: "Making decentralized AI for everyone",
-};
+export default function RootLayout({ children }: { children: React.ReactNode }): JSX.Element {
+ const pathname = usePathname();
-export default function RootLayout({
- children,
-}: {
- children: React.ReactNode;
-}): JSX.Element {
return (
-
);
-}
+}
\ No newline at end of file
diff --git a/apps/commune-worker/src/common/env.ts b/apps/commune-worker/src/common/env.ts
index eb419d6..ba5837b 100644
--- a/apps/commune-worker/src/common/env.ts
+++ b/apps/commune-worker/src/common/env.ts
@@ -1,13 +1,15 @@
import type { z } from "zod";
-export const parseEnvOrExit =
(envSchema: z.ZodType) => (env: unknown) => {
- const result = envSchema.safeParse(env);
+export const parseEnvOrExit =
+ (envSchema: z.ZodType) =>
+ (env: unknown) => {
+ const result = envSchema.safeParse(env);
- if (!result.success) {
- console.error("❌ Invalid environment variables:");
- console.error(JSON.stringify(result.error.format(), null, 2));
- process.exit(1);
- }
+ if (!result.success) {
+ console.error("❌ Invalid environment variables:");
+ console.error(JSON.stringify(result.error.format(), null, 2));
+ process.exit(1);
+ }
- return result.data;
-}
+ return result.data;
+ };
diff --git a/apps/commune-worker/src/discord.ts b/apps/commune-worker/src/discord.ts
index 86a6392..7bd16f6 100644
--- a/apps/commune-worker/src/discord.ts
+++ b/apps/commune-worker/src/discord.ts
@@ -29,7 +29,7 @@ export interface WebhookPayload {
export async function sendDiscordWebhook(
webhookUrl: string,
- payload: WebhookPayload
+ payload: WebhookPayload,
): Promise {
return await axios.post(webhookUrl, payload, {
headers: { "Content-Type": "application/json" },