UNPKG

@lobehub/chat

Version:

Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.

13 lines (9 loc) 351 B
import { writeFileSync } from 'node:fs'; import { resolve } from 'node:path'; import { sitemapModule } from '@/server/sitemap'; const genSitemap = () => { const sitemapIndexXML = sitemapModule.getIndex(); const filename = resolve(__dirname, '../../', 'public', 'sitemap-index.xml'); writeFileSync(filename, sitemapIndexXML); }; genSitemap();