← back to Wallco Ai
fix wallco.ai missing CSS — add general /public static mount (was only /uploads + /designs/img)
cf92efe7d28dd795e2cdec1dacab8674a04e7be2 · 2026-05-11 16:48:56 -0700 · Steve
Files touched
Diff
commit cf92efe7d28dd795e2cdec1dacab8674a04e7be2
Author: Steve <steve@designerwallcoverings.com>
Date: Mon May 11 16:48:56 2026 -0700
fix wallco.ai missing CSS — add general /public static mount (was only /uploads + /designs/img)
---
server.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/server.js b/server.js
index 5a3529b..55bb17d 100644
--- a/server.js
+++ b/server.js
@@ -61,8 +61,9 @@ app.use((req, res, next) => {
next();
});
-// ── Static: uploaded assets
+// ── Static: uploaded assets + general /public (css, js, og images, favicons)
app.use('/uploads', express.static(path.join(__dirname, 'public', 'uploads'), { maxAge: '7d' }));
+app.use(express.static(path.join(__dirname, 'public'), { maxAge: '1h' }));
// ── Serve generated design images
app.use('/designs/img', express.static(IMG_DIR, {
← 98ac0cf spoonflower: upload-new-product + pull-DW-account scripts
·
back to Wallco Ai
·
refresh data/designs.json snapshot — 30 designs (was 11): 8 a6af871 →