Skip to content

Commit bd1a3f3

Browse files
Fix sitemap 404 page (#2212)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 80f5355 commit bd1a3f3

File tree

4 files changed

+7
-17
lines changed

4 files changed

+7
-17
lines changed

pnpm-lock.yaml

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

website/next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { withGuildDocs } from '@theguild/components/next.config';
22

33
export default {
44
...withGuildDocs({
5+
output: 'export',
56
experimental: {
67
urlImports: ['https://the-guild.dev/static/shared-logos/products/hive.svg'],
78
},
@@ -30,5 +31,4 @@ export default {
3031
permanent: true,
3132
})),
3233
}),
33-
output: 'export',
3434
};

website/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
"license": "MIT",
77
"private": true,
88
"scripts": {
9-
"build": "next build",
9+
"build": "next build && next-sitemap --config next-sitemap.config.cjs",
1010
"dev": "next",
11-
"postbuild": "next-sitemap --config next-sitemap.config.cjs",
1211
"start": "next start"
1312
},
1413
"dependencies": {

website/src/components/plugins-page.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import { useMemo } from 'react';
22
import { StaticImageData } from 'next/image';
33
import { compareDesc } from 'date-fns';
4-
import { useData } from 'nextra/hooks';
54
import { ALL_TAGS, PLUGINS } from '@/lib/plugins';
6-
import { fetchPackageInfo, MarketplaceSearch } from '@theguild/components';
5+
import { fetchPackageInfo, MarketplaceSearch, useData } from '@theguild/components';
76

87
type Plugin = {
98
title: string;

0 commit comments

Comments
 (0)