Skip to content

Commit

Permalink
update sitemap generation
Browse files Browse the repository at this point in the history
  • Loading branch information
jsladerman committed Oct 28, 2024
1 parent 8e6cca0 commit 4378d73
Show file tree
Hide file tree
Showing 8 changed files with 82 additions and 94 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ module.exports = {
'postcss.config.js',
'codegen.ts',
'index-pages.mjs',
'next-sitemap.config.js',
],
parserOptions: {
project: null,
Expand Down
10 changes: 10 additions & 0 deletions next-sitemap.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/** @type {import('next-sitemap').IConfig} */
module.exports = {
siteUrl: 'https://plural.sh',
transform: async (_config, path) => ({
loc: path,
changefreq: 'daily',
priority: 0.5,
lastmod: new Date().toISOString(),
}),
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
"scripts": {
"dev": "run-s generate:pageindex dev:watch",
"dev:watch": "concurrently \"next dev\" \"yarn graphql:codegen:watch\"",
"build": "run-s generate:pageindex build:next",
"build": "run-s generate:pageindex build:next postbuild",
"build:next": "next build",
"postbuild": "next-sitemap",
"start": "next start",
"lint": "run-p lint:format lint:js lint:css",
"lint:format": "prettier --check --no-error-on-unmatched-pattern ./{src,pages}/**/*.{js,jsx,ts,tsx,graphql,md,mdpart}",
Expand Down Expand Up @@ -61,6 +62,7 @@
"moment-timezone": "0.5.43",
"next": "13.4.12",
"next-compose-plugins": "2.2.1",
"next-sitemap": "4.2.3",
"next-transpile-modules": "10.0.0",
"octokit": "3.1.0",
"query-string": "8.1.0",
Expand Down
File renamed without changes.
92 changes: 0 additions & 92 deletions pages/sitemap.xml.ts

This file was deleted.

31 changes: 31 additions & 0 deletions public/sitemap-0.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:news="http://www.google.com/schemas/sitemap-news/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:mobile="http://www.google.com/schemas/sitemap-mobile/1.0" xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1">
<url><loc>https://plural.sh</loc><lastmod>2024-10-28T20:26:53.212Z</lastmod><changefreq>daily</changefreq><priority>0.5</priority></url>
<url><loc>https://plural.sh/about</loc><lastmod>2024-10-28T20:26:53.212Z</lastmod><changefreq>daily</changefreq><priority>0.5</priority></url>
<url><loc>https://plural.sh/careers</loc><lastmod>2024-10-28T20:26:53.212Z</lastmod><changefreq>daily</changefreq><priority>0.5</priority></url>
<url><loc>https://plural.sh/community</loc><lastmod>2024-10-28T20:26:53.212Z</lastmod><changefreq>daily</changefreq><priority>0.5</priority></url>
<url><loc>https://plural.sh/contact</loc><lastmod>2024-10-28T20:26:53.212Z</lastmod><changefreq>daily</changefreq><priority>0.5</priority></url>
<url><loc>https://plural.sh/contact-sales</loc><lastmod>2024-10-28T20:26:53.212Z</lastmod><changefreq>daily</changefreq><priority>0.5</priority></url>
<url><loc>https://plural.sh/kubecon</loc><lastmod>2024-10-28T20:26:53.212Z</lastmod><changefreq>daily</changefreq><priority>0.5</priority></url>
<url><loc>https://plural.sh/pricing</loc><lastmod>2024-10-28T20:26:53.212Z</lastmod><changefreq>daily</changefreq><priority>0.5</priority></url>
<url><loc>https://plural.sh/404</loc><lastmod>2024-10-28T20:26:53.212Z</lastmod><changefreq>daily</changefreq><priority>0.5</priority></url>
<url><loc>https://plural.sh/500</loc><lastmod>2024-10-28T20:26:53.212Z</lastmod><changefreq>daily</changefreq><priority>0.5</priority></url>
<url><loc>https://plural.sh/kubernetes/test</loc><lastmod>2024-10-28T20:26:53.212Z</lastmod><changefreq>daily</changefreq><priority>0.5</priority></url>
<url><loc>https://plural.sh/kubernetes/demo-video</loc><lastmod>2024-10-28T20:26:53.212Z</lastmod><changefreq>daily</changefreq><priority>0.5</priority></url>
<url><loc>https://plural.sh/careers/hire/enterprise-account-executive</loc><lastmod>2024-10-28T20:26:53.212Z</lastmod><changefreq>daily</changefreq><priority>0.5</priority></url>
<url><loc>https://plural.sh/careers/hire/software-eng</loc><lastmod>2024-10-28T20:26:53.212Z</lastmod><changefreq>daily</changefreq><priority>0.5</priority></url>
<url><loc>https://plural.sh/careers/hire/tech-lead</loc><lastmod>2024-10-28T20:26:53.212Z</lastmod><changefreq>daily</changefreq><priority>0.5</priority></url>
<url><loc>https://plural.sh/careers/hire/product-marketing-manager</loc><lastmod>2024-10-28T20:26:53.212Z</lastmod><changefreq>daily</changefreq><priority>0.5</priority></url>
<url><loc>https://plural.sh/careers/hire/bdr</loc><lastmod>2024-10-28T20:26:53.212Z</lastmod><changefreq>daily</changefreq><priority>0.5</priority></url>
<url><loc>https://plural.sh/solutions/plural-for-healthcare</loc><lastmod>2024-10-28T20:26:53.212Z</lastmod><changefreq>daily</changefreq><priority>0.5</priority></url>
<url><loc>https://plural.sh/legal/terms-and-conditions</loc><lastmod>2024-10-28T20:26:53.212Z</lastmod><changefreq>daily</changefreq><priority>0.5</priority></url>
<url><loc>https://plural.sh/legal/privacy-policy</loc><lastmod>2024-10-28T20:26:53.212Z</lastmod><changefreq>daily</changefreq><priority>0.5</priority></url>
<url><loc>https://plural.sh/products/cluster-upgrade-assistant</loc><lastmod>2024-10-28T20:26:53.212Z</lastmod><changefreq>daily</changefreq><priority>0.5</priority></url>
<url><loc>https://plural.sh/products/continuous-deployment</loc><lastmod>2024-10-28T20:26:53.212Z</lastmod><changefreq>daily</changefreq><priority>0.5</priority></url>
<url><loc>https://plural.sh/products/kubernetes-dashboard</loc><lastmod>2024-10-28T20:26:53.212Z</lastmod><changefreq>daily</changefreq><priority>0.5</priority></url>
<url><loc>https://plural.sh/products/global-services</loc><lastmod>2024-10-28T20:26:53.212Z</lastmod><changefreq>daily</changefreq><priority>0.5</priority></url>
<url><loc>https://plural.sh/products/pr-automation</loc><lastmod>2024-10-28T20:26:53.212Z</lastmod><changefreq>daily</changefreq><priority>0.5</priority></url>
<url><loc>https://plural.sh/products/policy-enforcement</loc><lastmod>2024-10-28T20:26:53.212Z</lastmod><changefreq>daily</changefreq><priority>0.5</priority></url>
<url><loc>https://plural.sh/products/namespace-as-a-service</loc><lastmod>2024-10-28T20:26:53.212Z</lastmod><changefreq>daily</changefreq><priority>0.5</priority></url>
<url><loc>https://plural.sh/products/terraform-stacks</loc><lastmod>2024-10-28T20:26:53.212Z</lastmod><changefreq>daily</changefreq><priority>0.5</priority></url>
</urlset>
4 changes: 4 additions & 0 deletions public/sitemap.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<sitemap><loc>https://plural.sh/sitemap-0.xml</loc></sitemap>
</sitemapindex>
34 changes: 33 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2447,6 +2447,13 @@ __metadata:
languageName: node
linkType: hard

"@corex/deepmerge@npm:^4.0.43":
version: 4.0.43
resolution: "@corex/deepmerge@npm:4.0.43"
checksum: f0103bfcfb9938ba478868fad522b018b92615ba186b0322c92aa1f57e539b87d4379d88fee3a404264a83bd4b13c384cfb07834377997d6d71cd840a880b4c4
languageName: node
linkType: hard

"@csstools/css-parser-algorithms@npm:^2.3.0":
version: 2.3.0
resolution: "@csstools/css-parser-algorithms@npm:2.3.0"
Expand Down Expand Up @@ -3809,6 +3816,13 @@ __metadata:
languageName: node
linkType: hard

"@next/env@npm:^13.4.3":
version: 13.5.7
resolution: "@next/env@npm:13.5.7"
checksum: 7703ba37a5ad9c280fb8a04af43231b41bec2ed0bcf182a7e9e147b12e9d710ef96bbdc8e67aa27d2cf1abd4b57951d1c12018ba6ff03fbd87f31876362f5f58
languageName: node
linkType: hard

"@next/eslint-plugin-next@npm:14.1.0":
version: 14.1.0
resolution: "@next/eslint-plugin-next@npm:14.1.0"
Expand Down Expand Up @@ -12717,7 +12731,7 @@ __metadata:
languageName: node
linkType: hard

"minimist@npm:^1.2.0, minimist@npm:^1.2.6":
"minimist@npm:^1.2.0, minimist@npm:^1.2.6, minimist@npm:^1.2.8":
version: 1.2.8
resolution: "minimist@npm:1.2.8"
checksum: 75a6d645fb122dad29c06a7597bddea977258957ed88d7a6df59b5cd3fe4a527e253e9bbf2e783e4b73657f9098b96a5fe96ab8a113655d4109108577ecf85b0
Expand Down Expand Up @@ -12950,6 +12964,23 @@ __metadata:
languageName: node
linkType: hard

"next-sitemap@npm:4.2.3":
version: 4.2.3
resolution: "next-sitemap@npm:4.2.3"
dependencies:
"@corex/deepmerge": ^4.0.43
"@next/env": ^13.4.3
fast-glob: ^3.2.12
minimist: ^1.2.8
peerDependencies:
next: "*"
bin:
next-sitemap: bin/next-sitemap.mjs
next-sitemap-cjs: bin/next-sitemap.cjs
checksum: 322cbbf11b6549b7bd5acda98f60a4ef6bb6627e6cd5b4a9367aa8950edf6bcc90f47f4da74a18ecdd823f52c0f625b559b4165dbd27f292c731b222e38fa105
languageName: node
linkType: hard

"next-transpile-modules@npm:10.0.0":
version: 10.0.0
resolution: "next-transpile-modules@npm:10.0.0"
Expand Down Expand Up @@ -13801,6 +13832,7 @@ __metadata:
moment-timezone: 0.5.43
next: 13.4.12
next-compose-plugins: 2.2.1
next-sitemap: 4.2.3
next-transpile-modules: 10.0.0
npm-run-all: 4.1.5
octokit: 3.1.0
Expand Down

0 comments on commit 4378d73

Please sign in to comment.