Skip to content

Commit cf064ce

Browse files
authored
Merge pull request #693 from webstackdev/bugfix/social-cards
Bugfix/social cards
2 parents 5bc7c5a + 9c2540b commit cf064ce

15 files changed

Lines changed: 603 additions & 394 deletions

File tree

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,7 @@
432432
"wscript",
433433
"xlarge",
434434
"xychart",
435+
"XYWH",
435436
"youtu",
436437
"yoyo",
437438
"Yubi",

astro.config.ts

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ import { testimonialsLengthWarning } from './src/integrations/TestimonialsLength
3535
import { fixContentAssetPropagation } from './src/lib/plugins/fixContentAssetPropagation'
3636
import { pwaDevAssetServer } from './src/lib/plugins/pwaDevAssetServer'
3737
import { createSerializeFunction, pagesJsonWriter } from './src/integrations/sitemapSerialize'
38+
import { getDeepDiveArticleAliasPaths } from './src/integrations/sitemapSerialize/deepDiveAliases'
3839

3940
// Ensure Vite's HMR websocket connects through the same exposed dev server port used by Astro.
4041
const devServerPort = Number(process.env['DEV_SERVER_PORT'] ?? 4321)
@@ -44,6 +45,7 @@ const shouldEnableSentryIntegration = Boolean(sentryAuthToken)
4445
const sentryReleaseName = getPackageRelease()
4546
const astroEnvConfig = environmentalVariablesConfig as NonNullable<AstroUserConfig['env']>
4647
const astroMarkdownConfig = markdownConfig as unknown as NonNullable<AstroUserConfig['markdown']>
48+
const deepDiveArticleAliasPaths = getDeepDiveArticleAliasPaths()
4749

4850
const shouldSuppressViteWarning = (message: string): boolean => {
4951
return (
@@ -104,7 +106,18 @@ const standardIntegrations = [
104106
})] : []),
105107
sitemap({
106108
serialize: createSerializeFunction({
107-
exclude: ['deep-dive', 'downloads', 'print', '/articles/demo', 'testing', 'hero', 'links'],
109+
exclude: [
110+
'downloads',
111+
'offline',
112+
'print',
113+
'/articles/demo',
114+
'search',
115+
'tags',
116+
'testing',
117+
'hero',
118+
'links',
119+
...deepDiveArticleAliasPaths,
120+
],
108121
}),
109122
}),
110123
/**

0 commit comments

Comments
 (0)