From a4fc0ed9fe6e442c33cf962ab5667a69593bf729 Mon Sep 17 00:00:00 2001 From: mei Date: Sat, 30 Nov 2024 13:00:54 +0800 Subject: [PATCH] f --- .env.example | 3 +-- app/page.tsx | 4 ++-- app/s/[shortCode]/page.tsx | 4 ++-- auto.sh | 4 ++-- env.d.ts | 6 ------ 5 files changed, 7 insertions(+), 14 deletions(-) delete mode 100644 env.d.ts diff --git a/.env.example b/.env.example index 6ff2656..66aaeab 100644 --- a/.env.example +++ b/.env.example @@ -1,2 +1 @@ -NEXT_PUBLIC_BASE_URL=https://example.net -NEXT_PUBLIC_ADMIN_EMAIL=example@example.com \ No newline at end of file +NEXT_PUBLIC_BASE_URL=https://example.net \ No newline at end of file diff --git a/app/page.tsx b/app/page.tsx index 79958ce..54c5e58 100755 --- a/app/page.tsx +++ b/app/page.tsx @@ -11,8 +11,8 @@ export default function Home() {

注册时填写优惠码 cat ,享更多优惠!

违规举报:{' '} - - {process.env.NEXT_PUBLIC_ADMIN_EMAIL} + + i@mei.lv

diff --git a/app/s/[shortCode]/page.tsx b/app/s/[shortCode]/page.tsx index ca9d8a8..5547545 100755 --- a/app/s/[shortCode]/page.tsx +++ b/app/s/[shortCode]/page.tsx @@ -183,8 +183,8 @@ export default function RedirectPage({ params }: { params: { shortCode: string }

违规举报:{' '} - - {process.env.NEXT_PUBLIC_ADMIN_EMAIL} + + i@mei.lv

diff --git a/auto.sh b/auto.sh index 854773b..4ad84f1 100644 --- a/auto.sh +++ b/auto.sh @@ -70,12 +70,12 @@ if [ $? -ne 0 ]; then echo -e "\e[31m下载 docker-compose.yaml 文件失败,请检查网络连接\033[0m" exit 1 fi -echo "NEXT_PUBLIC_BASE_URL=$DomainName -NEXT_PUBLIC_ADMIN_EAMIL=$email" > "$InstallDir/short-url/.env" +echo "NEXT_PUBLIC_BASE_URL=$DomainName" > "$InstallDir/short-url/.env" if [ $? -ne 0 ]; then echo -e "\e[31m创建 .env 文件失败\033[0m" exit 1 fi +find "$InstallDir" -type f -exec sed -i "s/i@mei.lv/$email/g" {} \; # Build Docker image cd "$InstallDir/short-url" diff --git a/env.d.ts b/env.d.ts deleted file mode 100644 index f16b5c3..0000000 --- a/env.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -declare namespace NodeJS { - interface ProcessEnv { - NEXT_PUBLIC_ADMIN_EMAIL: string; - NEXT_PUBLIC_ADMIN_EMAIL: string; - } -} \ No newline at end of file