Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@
"wscript",
"xlarge",
"xychart",
"XYWH",
"youtu",
"yoyo",
"Yubi",
Expand Down
15 changes: 14 additions & 1 deletion astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ import { testimonialsLengthWarning } from './src/integrations/TestimonialsLength
import { fixContentAssetPropagation } from './src/lib/plugins/fixContentAssetPropagation'
import { pwaDevAssetServer } from './src/lib/plugins/pwaDevAssetServer'
import { createSerializeFunction, pagesJsonWriter } from './src/integrations/sitemapSerialize'
import { getDeepDiveArticleAliasPaths } from './src/integrations/sitemapSerialize/deepDiveAliases'

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

const shouldSuppressViteWarning = (message: string): boolean => {
return (
Expand Down Expand Up @@ -104,7 +106,18 @@ const standardIntegrations = [
})] : []),
sitemap({
serialize: createSerializeFunction({
exclude: ['deep-dive', 'downloads', 'print', '/articles/demo', 'testing', 'hero', 'links'],
exclude: [
'downloads',
'offline',
'print',
'/articles/demo',
'search',
'tags',
'testing',
'hero',
'links',
...deepDiveArticleAliasPaths,
],
}),
}),
/**
Expand Down
Loading
Loading