This repository has been archived by the owner on Jul 26, 2023. It is now read-only.
Replies: 2 comments 8 replies
-
Vercel 里面定义 AES_SECRET_KEY 了吗?正常情况下用 process.env.AES_SECRET_KEY 引用环境变量没啥问题 定义了的话,有可能是因为环境变量名和这里定义的 const 变量名都是 AES_SECRET_KEY 导致的?在代码里换一个变量名称试一下: const secretKey = process.env.AES_SECRET_KEY
// ...
export function ... {
const encrypted = CryptoJS.AES.encrypt(token, secretKey)
// ...
} |
Beta Was this translation helpful? Give feedback.
5 replies
-
可以改成 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
自己摸索着把
const AES_SECRET_KEY = 'onedrive-vercel-index
改成了
const AES_SECRET_KEY = process.env.AES_SECRET_KEY
遇到以下报错
本人对编程知之甚少,实在是不知道该咋改了。。。
只能看出是数据类型不对 (?)
Beta Was this translation helpful? Give feedback.
All reactions