Skip to content

Commit f326662

Browse files
committed
feat: update sitemap integration and project URL
1 parent dbab758 commit f326662

File tree

4 files changed

+66
-2
lines changed

4 files changed

+66
-2
lines changed

astro.config.mjs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
import { defineConfig } from 'astro/config';
2+
import sitemap from '@astrojs/sitemap';
23

34
export default defineConfig({
4-
site: 'https://mdsahilnoob.github.io',
5+
site: 'https://mdsahil.me',
56
base: '/',
67
output: 'static',
78
compressHTML: true,
9+
810
build: {
911
inlineStylesheets: 'auto',
1012
},
13+
1114
vite: {
1215
build: {
1316
cssMinify: 'lightningcss',
@@ -18,4 +21,6 @@ export default defineConfig({
1821
},
1922
},
2023
},
21-
});
24+
25+
integrations: [sitemap()],
26+
});

package-lock.json

Lines changed: 57 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
},
1111
"dependencies": {
1212
"@astrojs/check": "^0.9.6",
13+
"@astrojs/sitemap": "^3.6.0",
1314
"astro": "^5.15.3",
1415
"typescript": "^5.9.3"
1516
},

src/pages/sitemap.xml.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export const GET: APIRoute = async ({ site }) => {
88
const projects = await getCollection('projects');
99

1010
// Static pages
11+
1112
const staticPages = [
1213
{ url: '', priority: '1.0', changefreq: 'weekly' },
1314
{ url: '#about', priority: '0.8', changefreq: 'monthly' },

0 commit comments

Comments
 (0)