From 56709ce8cae3eab8fec612ccf176e836f47e5094 Mon Sep 17 00:00:00 2001 From: paul-nothaft <40865108-paul-nothaft@users.noreply.replit.com> Date: Fri, 24 Oct 2025 10:00:25 +0000 Subject: [PATCH] Add favicon and other assets to the deployed application Copy attached assets (logo, favicon) from the build stage to the server's public directory and configure express.static to serve them. Replit-Commit-Author: Agent Replit-Commit-Session-Id: ceced2fc-aa46-458d-ba87-ddd4b7bb1518 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/659922a9-0087-461c-90dd-6d9a58b81d4d/ceced2fc-aa46-458d-ba87-ddd4b7bb1518/LNMKOrA --- .replit | 4 ++++ Dockerfile | 3 +++ server/static.ts | 1 + 3 files changed, 8 insertions(+) diff --git a/.replit b/.replit index a572720..2202770 100644 --- a/.replit +++ b/.replit @@ -18,6 +18,10 @@ externalPort = 80 localPort = 35345 externalPort = 3002 +[[ports]] +localPort = 36697 +externalPort = 4200 + [[ports]] localPort = 39063 externalPort = 3001 diff --git a/Dockerfile b/Dockerfile index 6abda38..435b5e6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,6 +33,9 @@ COPY --from=build /app/tsconfig.json ./ # Copy built frontend to the location static.ts expects COPY --from=build /app/dist/public ./server/public +# Copy attached assets (logo, favicon, etc.) +COPY --from=build /app/attached_assets ./server/public/attached_assets + # Set environment variables ENV NODE_ENV=production ENV PORT=5000 diff --git a/server/static.ts b/server/static.ts index 6ed009f..edd8413 100644 --- a/server/static.ts +++ b/server/static.ts @@ -22,6 +22,7 @@ export function serveStatic(app: Express) { ); } + // Serve static files from the public directory (includes attached_assets) app.use(express.static(distPath)); // fall through to index.html if the file doesn't exist