diff --git a/env.example b/env.example
index 42b15fb..e158843 100644
--- a/env.example
+++ b/env.example
@@ -124,14 +124,11 @@ NEXT_PUBLIC_DATAFAST_DOMAIN=""
# -----------------------------------------------------------------------------
-# Discord
+# Notification (Discord)
# -----------------------------------------------------------------------------
DISCORD_WEBHOOK_URL=""
-NEXT_PUBLIC_DISCORD_WIDGET_SERVER_ID=""
-NEXT_PUBLIC_DISCORD_WIDGET_CHANNEL_ID=""
-
# -----------------------------------------------------------------------------
-# Feishu
+# Notification (Feishu)
# -----------------------------------------------------------------------------
FEISHU_WEBHOOK_URL=""
diff --git a/src/ai/image/hooks/use-image-generation.ts b/src/ai/image/hooks/use-image-generation.ts
index 2acc970..7eb5a58 100644
--- a/src/ai/image/hooks/use-image-generation.ts
+++ b/src/ai/image/hooks/use-image-generation.ts
@@ -1,4 +1,5 @@
import { useState } from 'react';
+import type { GenerateImageResponse } from '../lib/api-types';
import type {
ImageError,
ImageResult,
@@ -89,7 +90,7 @@ export function useImageGeneration(): UseImageGenerationReturn {
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(request),
});
- const data = await response.json();
+ const data = (await response.json()) as GenerateImageResponse;
if (!response.ok) {
throw new Error(data.error || `Server error: ${response.status}`);
}
diff --git a/src/app/[locale]/(marketing)/(home)/page.tsx b/src/app/[locale]/(marketing)/(home)/page.tsx
index 6433930..c6fb25e 100644
--- a/src/app/[locale]/(marketing)/(home)/page.tsx
+++ b/src/app/[locale]/(marketing)/(home)/page.tsx
@@ -73,8 +73,6 @@ export default async function HomePage(props: HomePageProps) {
-
-
>
);
diff --git a/src/components/shared/discord-widget.tsx b/src/components/shared/discord-widget.tsx
index 4c8fd91..6c42c5f 100644
--- a/src/components/shared/discord-widget.tsx
+++ b/src/components/shared/discord-widget.tsx
@@ -9,6 +9,9 @@ import { useEffect, useRef, useState } from 'react';
/**
* Discord Widget, shows the channels and messages in the discord server
*
+ * @deprecated
+ * This feature is deprecated for Discord Widget can not be used anymore.
+ *
* https://docs.widgetbot.io/embed/react-embed/
*/
export default function DiscordWidget() {
diff --git a/src/types/index.d.ts b/src/types/index.d.ts
index cdc2de6..f1dd73a 100644
--- a/src/types/index.d.ts
+++ b/src/types/index.d.ts
@@ -66,7 +66,7 @@ export interface SocialConfig {
* Website features
*/
export interface FeaturesConfig {
- enableDiscordWidget?: boolean; // Whether to enable the discord widget
+ enableDiscordWidget?: boolean; // Whether to enable the discord widget, deprecated
enableUpgradeCard?: boolean; // Whether to enable the upgrade card in the sidebar
enableAffonsoAffiliate?: boolean; // Whether to enable affonso affiliate
enablePromotekitAffiliate?: boolean; // Whether to enable promotekit affiliate