fix invalid env name

This commit is contained in:
mbaharip
2024-04-07 00:01:05 +07:00
parent 607462041d
commit a4511808fe
+1 -1
View File
@@ -3,7 +3,7 @@
import crypto from "crypto";
const generateKey = () => {
const env = process.env.NEXT_PUBLIC_ENCRYPTION_KEY;
const env = process.env.ENCRYPTION_KEY;
let data = !env
? "next-drive-index"
: env.length < 16