@ramme-io/create-app 1.2.7 → 1.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { DATA_REGISTRY } from '../../data/mockData';
|
|
1
|
+
import { DATA_REGISTRY } from '../../data/mockData';
|
|
3
2
|
|
|
4
3
|
/**
|
|
5
4
|
* @file data-seeder.ts
|
|
@@ -10,16 +9,15 @@ import { DATA_REGISTRY } from '../../data/mockData';
|
|
|
10
9
|
* from `mockData.ts` into the browser's storage.
|
|
11
10
|
*/
|
|
12
11
|
|
|
13
|
-
// 🔒
|
|
14
|
-
const DB_PREFIX = '
|
|
12
|
+
// 🔒 CRITICAL FIX: Changed from 'ramme_mock_' to 'ramme_db_' to match AuthContext
|
|
13
|
+
const DB_PREFIX = 'ramme_db_';
|
|
15
14
|
|
|
16
15
|
export const initializeDataLake = () => {
|
|
17
16
|
if (typeof window === 'undefined') return;
|
|
18
17
|
|
|
19
18
|
console.groupCollapsed('🌊 [Data Lake] Initialization');
|
|
20
|
-
|
|
21
19
|
Object.entries(DATA_REGISTRY).forEach(([key, seedData]) => {
|
|
22
|
-
//
|
|
20
|
+
// This now generates 'ramme_db_users', matching AuthContext
|
|
23
21
|
const storageKey = `${DB_PREFIX}${key}`;
|
|
24
22
|
const existing = localStorage.getItem(storageKey);
|
|
25
23
|
|
|
@@ -30,7 +28,6 @@ export const initializeDataLake = () => {
|
|
|
30
28
|
console.log(`✅ Collection exists: ${key}`);
|
|
31
29
|
}
|
|
32
30
|
});
|
|
33
|
-
|
|
34
31
|
console.groupEnd();
|
|
35
32
|
};
|
|
36
33
|
|