diff --git a/.eslintrc.json b/.eslintrc.json
index 40a4775..2884730 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -2,6 +2,7 @@
"extends": ["next/core-web-vitals", "next/typescript"],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
- "@next/next/no-img-element": "off"
+ "@next/next/no-img-element": "off",
+ "react-hooks/exhaustive-deps": "off"
}
}
diff --git a/README.md b/README.md
index f6cbeb1..f6ade30 100644
--- a/README.md
+++ b/README.md
@@ -10,6 +10,12 @@
| [部署简易教程](https://buycoffee.top/blog/tech/nezha) | [Docker 部署教程](https://buycoffee.top/blog/tech/nezha-docker) | [Cloudflare 部署教程](https://buycoffee.top/blog/tech/nezha-cloudflare) | [更新教程](https://buycoffee.top/blog/tech/nezha-upgrade) |
| [Vercel-demo](https://nezha-vercel.buycoffee.top) | [Docker-demo](https://nezha-docker.buycoffee.tech) | [Cloudflare-demo](https://nezha-cloudflare.buycoffee.tech) [密码: nezhadash] |
+#### Cloudflare 部署所需环境变量
+
+NODE_VERSION 22.9.0
+
+BUN_VERSION 1.1.29
+
#### 环境变量
| 变量名 | 含义 | 示例 |
diff --git a/components/Switch.tsx b/components/Switch.tsx
index 0d6fbe1..4b0b0c4 100644
--- a/components/Switch.tsx
+++ b/components/Switch.tsx
@@ -53,7 +53,7 @@ export default function Switch({
inline: "center",
});
}
- }, [nowTag, allTag]);
+ }, [nowTag]);
return (