ID : qwikpress-local-test Date : 30/12/2024 Status : EN ATTENTE - REPREND CETTE SEMAINE Priorité : Haute
Valider que le projet QwikPress fonctionne en mode local (fichiers JSON) après la migration de 49 fichiers vers le nouveau système StorageService.
getStorage(sharedMap) - FAIT 29/12main - FAIT 29/12template - FAIT 30/12.env.local avec DATA_MODE=file.env.supabase avec DATA_MODE=supabaseSTORAGE_PATH=./STORAGE (pas ./STORAGE/data)meta.json + content.jsonbun run devqwikpress_test dans Supabase DEV.env.supabaseErreur : Site configuration not found
Fichier : src/services/storage/file-storage.service.ts:217
Le fichier config.json EXISTE à STORAGE/data/config.json
Ajouter console.log dans FileStorageService :
async getConfig(): Promise<SiteConfig> {
const configPath = this.getPath('data', 'config.json');
console.log('[DEBUG] Config path:', configPath);
console.log('[DEBUG] File exists:', existsSync(configPath));
// ...
}
Tester chemin absolu dans .env :
STORAGE_PATH=/home/gouroubleu/WS/qwikpress-gitlab/STORAGE
Vider cache Vite :
rm -rf node_modules/.vite
~/WS/qwikpress-gitlab/
├── .env # Config active
├── .env.local # Template mode local
├── .env.supabase # Template mode Supabase
├── STORAGE/
│ └── data/
│ ├── config.json # Config site
│ └── pages/
│ ├── home/
│ │ ├── meta.json
│ │ └── content.json
│ ├── about/
│ ├── services/
│ ├── contact/
│ └── testimonials/
└── src/
├── routes/
│ └── plugin@data.ts # Initialise StorageService
└── services/
└── storage/
└── file-storage.service.ts # Service à débugger
/admin avec admin/admin123