This commit is contained in:
Jonathan Summers-Muir committed 2023-06-13 18:01:43 +08:00
1 parent 894df9efed
commit 09235eaab7
2 files changed
+25

No files matched your search

+4
View File
@@ -127,3 +127,7 @@ packages/ui/tokens/**/*.json
# For self-hosted logs: https://github.com/supabase/supabase/blob/86e3ab20abfdb9c3e666334d3d2f8efeef9ccf2c/docker/docker-compose-logging.yml#L101
gcloud.json
# sitemaps
apps/www/public/*.xml
apps/docs/public/*.xml
+21
View File
@@ -101,6 +101,27 @@ async function generate() {
parser: 'html',
})
/**
* generate sitemap router
*
* this points to www and docs sitemaps
*/
const sitemapRouter = `<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap>
<loc>https://supabase.com/sitemap_www.xml</loc>
</sitemap>
<sitemap>
<loc>https://supabase.com/docs/sitemap.xml</loc>
</sitemap>
</sitemapindex>
`
/**
* write sitemaps
*/
// eslint-disable-next-line no-sync
writeFileSync('public/sitemap.xml', sitemapRouter)
// eslint-disable-next-line no-sync
writeFileSync('public/sitemap_www.xml', formatted)
}