Skip to content

Commit 380128c

Browse files
committed
feat: add sitemap generation
1 parent ecfe23f commit 380128c

File tree

4 files changed

+8751
-2801
lines changed

4 files changed

+8751
-2801
lines changed

.github/workflows/deploy.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323
- name: Build
2424
run: npm run build
2525

26+
- name: Generate sitemap and robots.txt (postbuild)
27+
run: npm run postbuild
28+
2629
- name: Deploy to server
2730
uses: appleboy/scp-action@master
2831
with:

next-sitemap.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/** @type {import('next-sitemap').IConfig} */
2+
module.exports = {
3+
siteUrl: 'https://docs.fastfony.com',
4+
generateRobotsTxt: true, // Génère aussi le robots.txt
5+
// Optionnel : exclure des pages, configurer les priorités, etc.
6+
}

0 commit comments

Comments
 (0)