From 15401a777084615826d73a7e97c44e2b525c2ec8 Mon Sep 17 00:00:00 2001
From: ghaddaditw <40211818-ghaddaditw@users.noreply.replit.com>
Date: Sun, 8 Jun 2025 07:08:53 +0000
Subject: [PATCH] Improve app stability and allow server to identify client IP
addresses
Wraps the App component in React.StrictMode and sets "trust proxy" to true in Express.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: c5f0c281-8dd8-4846-b452-4a07bcd21062
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/9777c70b-fc38-4831-8d6b-78dfffe041b0/c6f419fa-e27c-4206-94b7-f50e32882303.jpg
---
client/src/main.tsx | 7 ++++++-
server/index.ts | 1 +
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/client/src/main.tsx b/client/src/main.tsx
index e77c81c..58449ce 100644
--- a/client/src/main.tsx
+++ b/client/src/main.tsx
@@ -1,6 +1,11 @@
+import React from "react";
import { createRoot } from "react-dom/client";
import App from "./App";
import "./index.css";
import "./i18n/config";
-createRoot(document.getElementById("root")!).render();
+createRoot(document.getElementById("root")!).render(
+
+
+
+);
diff --git a/server/index.ts b/server/index.ts
index 0817eda..10c7e1d 100644
--- a/server/index.ts
+++ b/server/index.ts
@@ -4,6 +4,7 @@ import { taskScheduler } from "./services/taskScheduler";
import { setupVite, serveStatic, log } from "./vite";
const app = express();
+app.set('trust proxy', true);
app.use(express.json());
app.use(express.urlencoded({ extended: false }));