Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,3 +77,9 @@ jobs:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5

- name: Purge Cloudflare cache
uses: jakejarvis/cloudflare-purge-action@eee6dba0236093358f25bb1581bd615dc8b3d8e3 # v0.3.0
env:
CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE }}
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
9 changes: 9 additions & 0 deletions next-sitemap.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/** @type {import('next-sitemap').IConfig} */
const config = {
siteUrl: 'https://connectbot.org',
generateRobotsTxt: true,
outDir: './out',
exclude: ['/icon.png'],
};

export default config;
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"start": "next start",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"postbuild": "pagefind --site .next/server/app --output-path out/_pagefind && cp out/404/index.html out/404.html"
"postbuild": "pagefind --site .next/server/app --output-path out/_pagefind && cp out/404/index.html out/404.html && next-sitemap"
},
"dependencies": {
"next": "^16.1.2",
Expand Down Expand Up @@ -39,6 +39,7 @@
"eslint-plugin-react-refresh": "^0.4.26",
"knip": "^5.81.0",
"lefthook": "^2.0.15",
"next-sitemap": "^4.2.3",
"pagefind": "^1.4.0",
"typescript": "^5.9.3"
}
Expand Down
Loading
Loading