Changed HASH_SALT to APP_SECRET.

This commit is contained in:
Mike Cao 2022-12-27 21:38:23 -08:00
parent cad0b73e42
commit 7bbed0e12b
5 changed files with 11 additions and 70 deletions

View file

@ -3,7 +3,7 @@ import { startOfMonth } from 'date-fns';
import { hash } from 'next-basics';
export function secret() {
return hash(process.env.HASH_SALT || process.env.DATABASE_URL);
return hash(process.env.APP_SECRET || process.env.DATABASE_URL);
}
export function salt() {