File tree 6 files changed +27
-8
lines changed
6 files changed +27
-8
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @theguild/components ' : patch
3
+ ---
4
+
5
+ adjust Next.js Metadata tags
Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @theguild/components ' : patch
3
+ ---
4
+
5
+ add ` export { normalizePages } from 'nextra/normalize-pages' `
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ export * from './types/components';
20
20
export * from './logos' ;
21
21
export { cn } from './cn' ;
22
22
export * from './next-types' ;
23
+ export { normalizePages } from 'nextra/normalize-pages' ;
23
24
24
25
declare module 'react' {
25
26
interface CSSProperties {
Original file line number Diff line number Diff line change @@ -183,12 +183,6 @@ export function getDefaultMetadata({
183
183
site : 'https://the-guild.dev' ,
184
184
creator : '@TheGuildDev' ,
185
185
} ,
186
- openGraph : {
187
- siteName : websiteName ,
188
- type : 'website' ,
189
- images : `https://og-image.the-guild.dev/?product=${ productName } ` ,
190
- url : siteUrl ,
191
- } ,
192
186
applicationName : websiteName ,
193
187
appleWebApp : {
194
188
title : websiteName ,
@@ -198,8 +192,19 @@ export function getDefaultMetadata({
198
192
follow : true ,
199
193
} ,
200
194
alternates : {
201
- canonical : siteUrl ,
195
+ // https://github.com/vercel/next.js/discussions/50189#discussioncomment-10826632
196
+ canonical : './' ,
202
197
} ,
198
+ metadataBase : new URL ( siteUrl ! ) ,
203
199
...additionalMetadata ,
200
+ openGraph : {
201
+ siteName : websiteName ,
202
+ type : 'website' ,
203
+ images : `https://og-image.the-guild.dev/?product=${ productName } ` ,
204
+ // https://github.com/vercel/next.js/discussions/50189#discussioncomment-10826632
205
+ url : './' ,
206
+ locale : 'en_US' ,
207
+ ...additionalMetadata . openGraph ,
208
+ } ,
204
209
} ;
205
210
}
Original file line number Diff line number Diff line change 2
2
/// <reference types="next/image-types/global" />
3
3
4
4
// NOTE: This file should not be edited
5
- // see https://nextjs.org/docs/app/building-your-application/configuring /typescript for more information.
5
+ // see https://nextjs.org/docs/app/api-reference/config /typescript for more information.
Original file line number Diff line number Diff line change @@ -10,4 +10,7 @@ export default withGuildDocs({
10
10
// website:build: Error: Parsing error: Cannot read file '/users/dmytro/desktop/guild/docs/website/tsconfig.eslint.json'.
11
11
ignoreDuringBuilds : true ,
12
12
} ,
13
+ env : {
14
+ SITE_URL : 'https://guild-docs.example' ,
15
+ } ,
13
16
} ) ;
You can’t perform that action at this time.
0 commit comments