Compare commits

...

3 Commits

Author SHA1 Message Date
hamster1963
34becfe979 update: v1.2.8 2024-11-11 15:14:11 +08:00
hamster1963
b5d0bc0b65 feat(env): add disable index env 2024-11-11 15:10:40 +08:00
hamster1963
9202985fdc chore(deps): bump next-themes to 0.4.3 2024-11-11 15:10:18 +08:00
5 changed files with 15 additions and 8 deletions

View File

@ -12,3 +12,4 @@ NEXT_PUBLIC_FixedTopServerName=false
NEXT_PUBLIC_CustomLogo=https://nezha-cf.buycoffee.top/apple-touch-icon.png
NEXT_PUBLIC_CustomTitle=NezhaDash
NEXT_PUBLIC_CustomDescription=NezhaDash is a dashboard for Nezha.
NEXT_PUBLIC_DisableIndex=false

View File

@ -19,6 +19,7 @@ const fontSans = FontSans({
const customTitle = getEnv("NEXT_PUBLIC_CustomTitle");
const customDescription = getEnv("NEXT_PUBLIC_CustomDescription");
const disableIndex = getEnv("NEXT_PUBLIC_DisableIndex");
export const metadata: Metadata = {
manifest: "/manifest.json",
@ -29,6 +30,10 @@ export const metadata: Metadata = {
title: customTitle || "NezhaDash",
statusBarStyle: "black-translucent",
},
robots: {
index: disableIndex ? false : true,
follow: disableIndex ? false : true,
},
};
export const viewport: Viewport = {

BIN
bun.lockb

Binary file not shown.

View File

@ -12,3 +12,4 @@ NEXT_PUBLIC_FixedTopServerName=false
NEXT_PUBLIC_CustomLogo=https://nezha-cf.buycoffee.top/apple-touch-icon.png
NEXT_PUBLIC_CustomTitle=NezhaDash
NEXT_PUBLIC_CustomDescription=NezhaDash is a dashboard for Nezha.
NEXT_PUBLIC_DisableIndex=false

View File

@ -1,6 +1,6 @@
{
"name": "nezha-dash",
"version": "1.2.7",
"version": "1.2.8",
"private": true,
"scripts": {
"dev": "next dev -p 3020",
@ -23,7 +23,7 @@
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/luxon": "^3.4.2",
"@typescript-eslint/eslint-plugin": "^8.13.0",
"caniuse-lite": "^1.0.30001678",
"caniuse-lite": "^1.0.30001680",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"country-flag-icons": "^1.5.13",
@ -34,9 +34,9 @@
"luxon": "^3.5.0",
"next": "^15.0.3",
"next-auth": "^5.0.0-beta.25",
"next-intl": "^3.24.0",
"next-intl": "^3.25.0",
"next-runtime-env": "^3.2.2",
"next-themes": "^0.3.0",
"next-themes": "^0.4.3",
"react": "19.0.0-rc-02c0e824-20241028",
"react-device-detect": "^2.2.3",
"react-dom": "19.0.0-rc-02c0e824-20241028",
@ -52,14 +52,14 @@
"devDependencies": {
"eslint-plugin-turbo": "^2.2.3",
"eslint-plugin-unused-imports": "^4.1.4",
"@next/bundle-analyzer": "15.0.2",
"@next/bundle-analyzer": "^15.0.3",
"@types/node": "^22.9.0",
"@types/react": "npm:types-react@19.0.0-rc.1",
"@types/react-dom": "npm:types-react-dom@19.0.0-rc.1",
"autoprefixer": "^10.4.20",
"eslint": "^9.14.0",
"eslint-config-next": "15.0.2",
"postcss": "^8.4.47",
"eslint-config-next": "^15.0.3",
"postcss": "^8.4.48",
"prettier": "^3.3.3",
"prettier-plugin-tailwindcss": "^0.6.8",
"tailwindcss": "^3.4.14",