← back to Ventura Corridor
Make Ventura sitemap resilient
9f8fe5b55382bd8329378da1611df01e9f126873 · 2026-09-03 10:03:59 -0700 · Steve Abrams
Files touched
Diff
commit 9f8fe5b55382bd8329378da1611df01e9f126873
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Thu Sep 3 10:03:59 2026 -0700
Make Ventura sitemap resilient
---
src/server/index.ts | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/server/index.ts b/src/server/index.ts
index 464969f..0534e63 100644
--- a/src/server/index.ts
+++ b/src/server/index.ts
@@ -3305,7 +3305,14 @@ app.get('/sitemap.xml', async (_req, res) => {
${urls.join('\n')}
</urlset>`);
} catch (e: any) {
- res.status(500).send('error: ' + e.message);
+ res.setHeader('Content-Type', 'application/xml; charset=utf-8');
+ res.send(`<?xml version="1.0" encoding="UTF-8"?>
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
+ <url><loc>https://venturacorridor.com/</loc></url>
+ <url><loc>https://venturacorridor.com/news.html</loc></url>
+ <url><loc>https://venturacorridor.com/this-week.html</loc></url>
+ <url><loc>https://venturacorridor.com/about.html</loc></url>
+</urlset>`);
}
});
← 9a3433d Expose Ventura crawler discovery files
·
back to Ventura Corridor
·
TK-11484: fix venturacorridor.com AdSense 'Needs attention' fc609bd →