Skip to content

Commit 4aaa500

Browse files
authoredApr 4, 2024
fix /blog/rss.xml, /conf/speak, /sitemap.xml (graphql#1689)
* fix * fix * fix build * more * fixxx * fix sitemap
1 parent 18a83e3 commit 4aaa500

File tree

5 files changed

+334
-203
lines changed

5 files changed

+334
-203
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
/* eslint-env node */
22

33
/** @type {import('next-sitemap').IConfig} */
4-
module.exports = {
4+
export default {
55
siteUrl: process.env.SITE_URL || "https://graphql.org",
66
generateIndexSitemap: false,
7+
output: "export", // Set static output here
78
}

Diff for: ‎package.json

+9-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"format": "pnpm format:check --write",
1111
"format:check": "prettier --cache --check \"**/*.{js,jsx,ts,tsx,cjs,mjs,json,yml,yaml,md}\"",
1212
"lint": "eslint --ignore-path .gitignore .",
13-
"postbuild": "next-sitemap --config next-sitemap.config.cjs",
13+
"postbuild": "next-sitemap",
1414
"start": "next start",
1515
"test": "echo \"no tests\" && exit 1"
1616
},
@@ -20,7 +20,6 @@
2020
"@heroicons/react": "^2.0.18",
2121
"@radix-ui/react-icons": "^1.3.0",
2222
"@radix-ui/react-radio-group": "^1.1.3",
23-
"@svgr/webpack": "^8.0.1",
2423
"@tailwindcss/nesting": "0.0.0-insiders.565cd3e",
2524
"@tailwindcss/typography": "^0.5.10",
2625
"autoprefixer": "^10.4.17",
@@ -31,6 +30,7 @@
3130
"fast-glob": "^3.3.2",
3231
"graphql": "16.8.1",
3332
"gray-matter": "^4.0.3",
33+
"hast-util-to-string": "3.0.0",
3434
"iframe-resizer-react": "^1.1.0",
3535
"leaflet": "^1.9.4",
3636
"markdown-to-jsx": "^7.4.0",
@@ -46,25 +46,27 @@
4646
"p-limit": "^4.0.0",
4747
"parser-front-matter": "1.6.4",
4848
"postcss": "^8.4.33",
49-
"prettier-plugin-pkg": "^0.18.1",
5049
"react": "^18.2.0",
5150
"react-dom": "^18.2.0",
5251
"react-medium-image-zoom": "5.1.8",
52+
"rss": "1.2.2",
5353
"server-only": "0.0.1",
54-
"server-only-context": "^0.1.0",
5554
"string-similarity": "^4.0.4",
5655
"string-strip-html": "^13.4.5",
5756
"tailwindcss": "^3.4.1",
5857
"timeago.js": "4.0.2",
59-
"tsx": "^4.7.0",
58+
"unified": "11.0.4",
6059
"unist-util-visit": "^5.0.0",
6160
"use-query-params": "^2.2.1"
6261
},
6362
"devDependencies": {
6463
"@graphql-eslint/eslint-plugin": "4.0.0-alpha.0",
64+
"@svgr/webpack": "^8.0.1",
6565
"@types/codemirror": "5.60.7",
66+
"@types/hast": "3.0.4",
6667
"@types/node": "^20.11.30",
6768
"@types/react": "^18.2.73",
69+
"@types/rss": "0.0.32",
6870
"@types/string-similarity": "^4.0.2",
6971
"@typescript-eslint/eslint-plugin": "7.4.0",
7072
"@typescript-eslint/parser": "7.4.0",
@@ -73,9 +75,11 @@
7375
"eslint-plugin-mdx": "^3.1.5",
7476
"eslint-plugin-tailwindcss": "3.15.1",
7577
"prettier": "3.2.5",
78+
"prettier-plugin-pkg": "^0.18.1",
7679
"remark-frontmatter": "5.0.0",
7780
"remark-lint-first-heading-level": "3.1.2",
7881
"remark-lint-heading-increment": "3.1.2",
82+
"tsx": "^4.7.0",
7983
"typescript": "^5.4.3"
8084
},
8185
"pnpm": {

0 commit comments

Comments
 (0)
Please sign in to comment.