From 6c2edce5afd2b60a7a739a5a2e55c03a325773c4 Mon Sep 17 00:00:00 2001
From: hamster1963 <1410514192@qq.com>
Date: Wed, 30 Oct 2024 17:34:02 +0800
Subject: [PATCH 1/2] fix: unexpected scrollIntoView
---
.eslintrc.json | 3 ++-
components/Switch.tsx | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
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/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 (
Date: Wed, 30 Oct 2024 17:34:14 +0800
Subject: [PATCH 2/2] doc: readme
---
README.md | 2 ++
1 file changed, 2 insertions(+)
diff --git a/README.md b/README.md
index 54e3028..f6ade30 100644
--- a/README.md
+++ b/README.md
@@ -9,7 +9,9 @@
| ----------------------------------------------------- | --------------------------------------------------------------- | ---------------------------------------------------------------------------- | --------------------------------------------------------- |
| [部署简易教程](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