diff --git a/frontend/src/components/workspace/artifacts/artifact-file-detail.tsx b/frontend/src/components/workspace/artifacts/artifact-file-detail.tsx
index 48b5ccd09..99292fbd1 100644
--- a/frontend/src/components/workspace/artifacts/artifact-file-detail.tsx
+++ b/frontend/src/components/workspace/artifacts/artifact-file-detail.tsx
@@ -339,13 +339,13 @@ export function ArtifactFilePreview({
}
function htmlWithBaseHref(content: string, url?: string) {
- if (!url || content.match(/`;
- if (content.match(/
]*>/i)) {
+ if (/]*>/i.exec(content)) {
return content.replace(/]*)>/i, `${baseElement}`);
}
return `${baseElement}${content}`;
diff --git a/frontend/src/core/api/api-client.ts b/frontend/src/core/api/api-client.ts
index 88f8658b1..841c2cdfb 100644
--- a/frontend/src/core/api/api-client.ts
+++ b/frontend/src/core/api/api-client.ts
@@ -97,9 +97,12 @@ function createStaticClient(): LangGraphClient {
}) as typeof client.threads.update;
client.runs.list = (async () => []) as typeof client.runs.list;
- client.runs.stream = async function* () {} as typeof client.runs.stream;
- client.runs.joinStream =
- async function* () {} as typeof client.runs.joinStream;
+ client.runs.stream = async function* () {
+ /* empty */
+ } as typeof client.runs.stream;
+ client.runs.joinStream = async function* () {
+ /* empty */
+ } as typeof client.runs.joinStream;
return client as LangGraphClient;
}
diff --git a/frontend/src/core/auth/AuthProvider.tsx b/frontend/src/core/auth/AuthProvider.tsx
index 8614027bd..5824c5f7b 100644
--- a/frontend/src/core/auth/AuthProvider.tsx
+++ b/frontend/src/core/auth/AuthProvider.tsx
@@ -11,6 +11,7 @@ import React, {
} from "react";
import { isStaticWebsiteOnly } from "../static-mode";
+
import { type User, buildLoginUrl } from "./types";
// Re-export for consumers
diff --git a/frontend/src/core/auth/server.ts b/frontend/src/core/auth/server.ts
index c3e085793..5712f1e89 100644
--- a/frontend/src/core/auth/server.ts
+++ b/frontend/src/core/auth/server.ts
@@ -1,7 +1,8 @@
import { cookies } from "next/headers";
-import { getGatewayConfig } from "./gateway-config";
import { isStaticWebsiteOnly } from "../static-mode";
+
+import { getGatewayConfig } from "./gateway-config";
import { STATIC_WEBSITE_USER } from "./static-user";
import { type AuthResult, userSchema } from "./types";
diff --git a/frontend/src/core/threads/static-demo.ts b/frontend/src/core/threads/static-demo.ts
index db107bdd3..93c8c1c53 100644
--- a/frontend/src/core/threads/static-demo.ts
+++ b/frontend/src/core/threads/static-demo.ts
@@ -1,5 +1,5 @@
-import type { ThreadsClient } from "@langchain/langgraph-sdk/client";
import type { ThreadState } from "@langchain/langgraph-sdk";
+import type { ThreadsClient } from "@langchain/langgraph-sdk/client";
import type { AgentThread, AgentThreadState } from "./types";