You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// /src/routes/sitemap.xml/+server.tsimport*assitemapfrom'super-sitemap';importtype{RequestHandler}from'@sveltejs/kit';exportconstprerender=true;exportconstGET: RequestHandler=async()=>{returnawaitsitemap.response({origin: 'https://example.com',excludeRoutePatterns: ['.*\\(admin\\).*',// i.e. exclude routes within admin group],});};
If you decide to add it, remember to include the (admin) group within the excludeRoutePatterns to omit those from your sitemap, and any others you might want to exclude.
Since your blog consists of svelte files, all those routes will be included automatically.
The text was updated successfully, but these errors were encountered:
You should run it and visit /sitemap.xml to confirm all routes you want to exclude are excluded, but otherwise it should work fine. I don't have Supabase set up to run CMSaasStarter successfully.
This looks great. Hopefully templates like these will help the SvelteKit community to grow!
For SEO, it's missing a sitemap and robots.txt.
I might suggest Super Sitemap: https://github.com/jasongitmail/super-sitemap (I'm the author & searched deeply for a good one before building this.)
If you decide to add it, remember to include the
(admin)
group within theexcludeRoutePatterns
to omit those from your sitemap, and any others you might want to exclude.Since your blog consists of svelte files, all those routes will be included automatically.
The text was updated successfully, but these errors were encountered: