Add ability to display desktop environment images in the application

Configure the server to serve static image files from the attached_assets/de_screenshots directory under the /de_screenshots route.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: c4fc7b07-53a2-4929-bc12-f392104bb085
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Event-Id: 2f9ec8af-c274-4bbb-9172-64be2edb34cf
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/55e426a8-5a2b-421b-8bd4-30481ae0063b/c4fc7b07-53a2-4929-bc12-f392104bb085/a2ci8g4
Replit-Helium-Checkpoint-Created: true
This commit is contained in:
yusufipk
2025-12-17 14:55:50 +00:00
parent 6d5a4d0cc3
commit 06084e1985
2 changed files with 4 additions and 0 deletions
+4
View File
@@ -2,8 +2,12 @@ import express, { type Request, Response, NextFunction } from "express";
import { registerRoutes } from "./routes";
import { serveStatic } from "./static";
import { createServer } from "http";
import path from "path";
const app = express();
// Serve DE screenshots statically
app.use('/de_screenshots', express.static(path.join(process.cwd(), 'attached_assets/de_screenshots')));
const httpServer = createServer(app);
declare module "http" {