diff --git a/generate-sitemap.js b/generate-sitemap.js
new file mode 100644
index 0000000..23e43a8
--- /dev/null
+++ b/generate-sitemap.js
@@ -0,0 +1,39 @@
+import { SitemapStream } from 'sitemap';
+import { createWriteStream } from 'fs';
+import path from 'path';
+import { fileURLToPath } from 'url';
+
+const __filename = fileURLToPath(import.meta.url);
+const __dirname = path.dirname(__filename);
+
+const pages = [
+ { url: '/', changefreq: 'daily', priority: 1.0 },
+ { url: '/', changefreq: 'daily', priority: 1.0 }, // LandingPage
+ { url: '/dashboard', changefreq: 'weekly', priority: 0.9 }, // Dashboard
+ { url: '/posts', changefreq: 'weekly', priority: 0.8 }, // Publish
+ { url: '/analytics', changefreq: 'weekly', priority: 0.8 }, // Analytics
+ { url: '/contributors', changefreq: 'monthly', priority: 0.7 }, // Contributors
+ { url: '/settings', changefreq: 'monthly', priority: 0.6 }, // Settings
+ { url: '/signup', changefreq: 'monthly', priority: 0.5 }, // Signup
+ { url: '/login', changefreq: 'monthly', priority: 0.5 }, // Login
+ { url: '/newsletter', changefreq: 'monthly', priority: 0.5 } // Newsletter
+ ];
+
+
+async function generateSitemap() {
+ const writeStream = createWriteStream(path.resolve(__dirname, 'public', 'sitemap.xml'));
+
+ const sitemap = new SitemapStream({ hostname: 'https://social-media-management-djkz.vercel.app/' });
+
+ sitemap.pipe(writeStream).on('finish', () => {
+ console.log('Sitemap generated successfully');
+ });
+
+ pages.forEach(page => sitemap.write(page));
+
+ sitemap.end();
+}
+
+generateSitemap().catch(error => {
+ console.error('Error generating sitemap:', error);
+});
diff --git a/public/robots.txt b/public/robots.txt
new file mode 100644
index 0000000..a86b9fd
--- /dev/null
+++ b/public/robots.txt
@@ -0,0 +1,4 @@
+User-agent: *
+Disallow: /private
+Allow: /
+Sitemap: https://social-media-management-djkz.vercel.app/sitemap.xml
\ No newline at end of file
diff --git a/public/sitemap.xml b/public/sitemap.xml
new file mode 100644
index 0000000..abbb790
--- /dev/null
+++ b/public/sitemap.xml
@@ -0,0 +1 @@
+
Socialplus helps you build an audience organically. We’re a values-driven company that provides affordable, intuitive marketing tools for ambitious people and teams.
-