feat(email encrypt): implement base64 encoding for contact email config, only supports HEO theme

This commit is contained in:
anime
2025-04-12 02:50:09 +08:00
parent b946a08ba0
commit a01d15d883
4 changed files with 35 additions and 8 deletions

View File

@@ -3,7 +3,12 @@
*/
module.exports = {
// 社交链接,不需要可留空白,例如 CONTACT_WEIBO:''
CONTACT_EMAIL: process.env.NEXT_PUBLIC_CONTACT_EMAIL || '', // 邮箱地址 例如mail@tangly1024.com
CONTACT_EMAIL:
(process.env.NEXT_PUBLIC_CONTACT_EMAIL &&
btoa(
unescape(encodeURIComponent(process.env.NEXT_PUBLIC_CONTACT_EMAIL))
)) ||
'', // 邮箱地址 例如mail@tangly1024.com
CONTACT_WEIBO: process.env.NEXT_PUBLIC_CONTACT_WEIBO || '', // 你的微博个人主页
CONTACT_TWITTER: process.env.NEXT_PUBLIC_CONTACT_TWITTER || '', // 你的twitter个人主页
CONTACT_GITHUB: process.env.NEXT_PUBLIC_CONTACT_GITHUB || '', // 你的github个人主页 例如 https://github.com/tangly1024