mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-19 05:07:57 +02:00
Update dependencies and production setup for enhanced security and stability
Add bcrypt and encoding libraries, update iconv-lite, and refactor production authentication and database initialization to use native Node.js crypto and improve security. Replit-Commit-Author: Agent Replit-Commit-Session-Id: d396e5bd-e32d-4a20-9e7d-71e7102ddc6c Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/d396e5bd-e32d-4a20-9e7d-71e7102ddc6c/kxiUCTd
This commit is contained in:
1 parent
2485f71dd7
commit
7e6dccfadf
15 files changed
+195
-7251
No files matched your search
+2
-8
@@ -1,15 +1,9 @@
|
||||
import type { Express } from "express";
|
||||
import { createServer, type Server } from "http";
|
||||
import { storage as devStorage } from "./storage";
|
||||
import { storage as prodStorage } from "./storage.production";
|
||||
import { storage } from "./storage";
|
||||
import { setupLocalAuth, requireAuth } from "./localAuth";
|
||||
|
||||
// Use appropriate storage based on environment
|
||||
console.log('🔍 DIAGNOSTIC - NODE_ENV:', process.env.NODE_ENV);
|
||||
console.log('🔍 DIAGNOSTIC - STORAGE_MODE:', process.env.STORAGE_MODE);
|
||||
const isProduction = true; // FORCED PRODUCTION MODE FOR DEBUGGING
|
||||
const storage = isProduction ? prodStorage : devStorage;
|
||||
console.log('🔍 DIAGNOSTIC - Using storage:', isProduction ? 'PRODUCTION' : 'DEVELOPMENT');
|
||||
console.log('🔍 Using development storage and authentication');
|
||||
|
||||
|
||||
// Alias pour compatibilité
|
||||
|
||||
Reference in new issue
Block a user