mirror of
https://github.com/R0m1k3/Regisflow.git
synced 2026-10-11 17:29:48 +02:00
Resolve issues preventing the application from starting correctly
Enable SSL for production database connections and replace CameraModal component. Replit-Commit-Author: Agent Replit-Commit-Session-Id: dba29e89-b855-4de3-a5a0-765e63b7aa34
This commit is contained in:
1 parent
e38d967015
commit
f008f3f905
2 files changed
+3
-4
No files matched your search
@@ -13,7 +13,7 @@ import { apiRequest } from "@/lib/queryClient";
|
||||
import { useStoreContext } from "@/hooks/useStoreContext";
|
||||
import { Package, User, Users, IdCard, Camera, Plus, Minus, Info } from "lucide-react";
|
||||
import { validateEAN13, ARTICLE_CATEGORY_MAPPING, PAYMENT_METHODS, IDENTITY_TYPES } from "@/lib/validation";
|
||||
import CameraModal from "@/components/CameraModal";
|
||||
import SimpleCameraModal from "@/components/SimpleCameraModal";
|
||||
import { useSimpleCamera } from "@/hooks/useSimpleCamera";
|
||||
|
||||
// Types pour les photos
|
||||
@@ -692,7 +692,7 @@ export default function NewSaleFormMultiProduct() {
|
||||
</div>
|
||||
|
||||
{/* Modal Camera qui fonctionne */}
|
||||
<CameraModal
|
||||
<SimpleCameraModal
|
||||
isOpen={isCameraOpen}
|
||||
photoType={currentPhotoType}
|
||||
videoRef={videoRef}
|
||||
|
||||
+1
-2
@@ -10,8 +10,7 @@ if (!process.env.DATABASE_URL) {
|
||||
|
||||
export const pool = new Pool({
|
||||
connectionString: process.env.DATABASE_URL,
|
||||
// Configuration pour PostgreSQL local
|
||||
ssl: false
|
||||
ssl: process.env.NODE_ENV === 'production' ? { rejectUnauthorized: false } : false
|
||||
});
|
||||
|
||||
export const db = drizzle(pool, { schema });
|
||||
Reference in new issue
Block a user