Add favicon and other assets to the deployed application
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user