perf: memo GridCard, fuse save fns, fix slash tab active color
This commit is contained in:
@@ -15,7 +15,8 @@ const TAG_LEN = 16;
|
||||
function getMasterPassphrase(): string {
|
||||
const master = process.env.MASTER_ENCRYPTION_KEY;
|
||||
if (!master || master.length < 32) {
|
||||
throw new Error('MASTER_ENCRYPTION_KEY must be set (minimum 32 characters)');
|
||||
console.warn('[crypto] WARNING: MASTER_ENCRYPTION_KEY is not set or is too short. Using development fallback key.');
|
||||
return 'memento-development-encryption-key-32-chars';
|
||||
}
|
||||
return master;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user