mirror of
https://github.com/yusufipk/distromatch.git
synced 2026-09-11 10:46:07 +00:00
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:
Binary file not shown.
|
After Width: | Height: | Size: 184 KiB |
@@ -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" {
|
||||
|
||||
Reference in New Issue
Block a user