← back to Architecturalwallcoverings
sitemap.xml: include the real static content pages
87642064c5c5c7df7129d3d5a47865bccd2afcc7 · 2026-05-18 20:38:02 -0700 · SteveStudio2
Files touched
Diff
commit 87642064c5c5c7df7129d3d5a47865bccd2afcc7
Author: SteveStudio2 <steve@designerwallcoverings.com>
Date: Mon May 18 20:38:02 2026 -0700
sitemap.xml: include the real static content pages
---
server.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/server.js b/server.js
index 39dff68..d70ecb4 100644
--- a/server.js
+++ b/server.js
@@ -189,7 +189,9 @@ Sitemap: https://architecturalwallcoverings.com/sitemap.xml
`);
});
app.get('/sitemap.xml', (req, res) => {
- const urls = ['/'];
+ // Include the real static content pages that exist under public/.
+ const urls = ['/', '/care.html', '/history.html', '/sourcing.html', '/trade.html', '/vocabulary.html']
+ .filter(u => u === '/' || fs.existsSync(path.join(__dirname, 'public', u.slice(1))));
const xml = `<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
${urls.map(u => ` <url><loc>https://architecturalwallcoverings.com${u}</loc><changefreq>weekly</changefreq></url>`).join('\n')}
← 753811e untrack 30 stale .bak/.pre-* snapshots (25 served from publi
·
back to Architecturalwallcoverings
·
untrack 30 stale .bak/.pre-* snapshots from git index 4f2adf4 →