diff --git a/client/public/ads.txt b/client/public/ads.txt new file mode 100644 index 0000000..c353b6f --- /dev/null +++ b/client/public/ads.txt @@ -0,0 +1 @@ +google.com, pub-1104166651501135, DIRECT, f08c47fec0942fa0 diff --git a/server/routes-seo.js b/server/routes-seo.js index e4e1af6..1425008 100644 --- a/server/routes-seo.js +++ b/server/routes-seo.js @@ -531,6 +531,11 @@ Sitemap: ${SITE_URL}/sitemap.xml res.send(robotsTxt); }); + app.get('/ads.txt', (req, res) => { + res.type('text/plain'); + res.send('google.com, pub-1104166651501135, DIRECT, f08c47fec0942fa0\n'); + }); + app.get('/sitemap.xml', (req, res) => { try { const sitemap = buildSitemapXml();