From c784c205f451c2dd007c2c4b4c17daa03f2ba2d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=BF=94?= Date: Fri, 27 Mar 2026 15:54:17 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4=E6=95=8F=E6=84=9F?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E5=B9=B6=E4=BC=98=E5=8C=96?= =?UTF-8?q?.gitignore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 从git追踪中移除.env.production(包含真实API密钥和密码) - 在.gitignore中明确添加.env.production规则 - 清理.gitignore中的重复规则(.bak, .backup, .tmp, .temp, .trae/) - 提升安全性,防止敏感配置泄露 --- .env.production | 32 -------------------------------- .gitignore | 10 ++-------- 2 files changed, 2 insertions(+), 40 deletions(-) delete mode 100644 .env.production diff --git a/.env.production b/.env.production deleted file mode 100644 index a927c69..0000000 --- a/.env.production +++ /dev/null @@ -1,32 +0,0 @@ -# Resend API Configuration -RESEND_API_KEY=re_72PzbVrr_DiwTnB1ZDT7TyqCsgLoAfKfU - -# Company Email (接收联系表单邮件的邮箱) -COMPANY_EMAIL=contact@novalon.cn - -# Next.js Configuration -NEXT_PUBLIC_SITE_URL=https://www.novalon.cn - -# Sentry Error Monitoring (Production) -NEXT_PUBLIC_SENTRY_DSN=https://xxxxxxxxxxxxx@o4507xxxxx.ingest.sentry.io/xxxxxxxxxxxxx - -# Google Analytics (可选 - 用于访问统计) -NEXT_PUBLIC_GA_MEASUREMENT_ID=G-LGTLCR15KM - -# NextAuth Configuration -NEXTAUTH_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx -NEXTAUTH_URL=https://www.novalon.cn - -# Admin User -ADMIN_EMAIL=contact@novalon.cn -ADMIN_PASSWORD=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx - -# Database -DATABASE_URL=file:./data/prod.db - -# File Upload -UPLOAD_DIR=./uploads -MAX_FILE_SIZE=10485760 - -# Environment -NODE_ENV=production diff --git a/.gitignore b/.gitignore index f4fd9c8..f256069 100644 --- a/.gitignore +++ b/.gitignore @@ -160,6 +160,7 @@ next-env.d.ts .env.development.local .env.test.local .env.production.local +.env.production .env.*.local *.env @@ -272,8 +273,6 @@ dist-ssr/ # Temporary files *.tmp *.temp -*.bak -*.backup *.swp *~ .npm @@ -345,9 +344,6 @@ e2e/storage-state.json trace.zip network-logs/ -#trae -.trae/ - # Deprecated test frameworks e2e-tests/ test-framework/ @@ -357,8 +353,6 @@ reports/e2e/ reports/performance/ reports/coverage/ -# Temporary files -*.tmp -*.temp +# OS files .DS_Store Thumbs.db