mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 01:15:03 +03:00
add
This commit is contained in:
1 parent
894df9efed
commit
09235eaab7
2 files changed
+25
No files matched your search
@@ -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
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user