@@ -33,6 +33,41 @@ import { packageRelease } from './src/integrations/PackageRelease'
3333import { privacyPolicyVersion } from './src/integrations/PrivacyPolicyVersion'
3434import { createSerializeFunction , pagesJsonWriter } from './src/integrations/sitemapSerialize'
3535
36+ const sharedTestIntegrations = [
37+ icon ( ) ,
38+ ]
39+
40+ const standardIntegrations = [
41+ AstroPWA ( serviceWorkerConfig ) ,
42+ ...sharedTestIntegrations ,
43+ mdx ( markdownConfig ) ,
44+ /** Generate favicons and PWA icons from source SVG */
45+ faviconGenerator ( ) ,
46+ /** Verify number of call to actions included in Markdown files */
47+ callToActionValidator ( {
48+ /** Enable debug logging to see validation details */
49+ debug : true ,
50+ } ) ,
51+ /** Inject package release (name@version) for tracking regressions between releases */
52+ packageRelease ( ) ,
53+ /** Inject privacy policy version from git commit date for GDPR record keeping */
54+ privacyPolicyVersion ( ) ,
55+ /** Only include Sentry integration in Vercel environments */
56+ ...( isVercel ( ) ? [ sentry ( {
57+ project : "webstack-builders-corporate-website" ,
58+ org : "webstack-builders" ,
59+ authToken : getSentryAuthToken ( ) ,
60+ } ) ] : [ ] ) ,
61+ sitemap ( {
62+ serialize : createSerializeFunction ( {
63+ exclude : [ 'downloads' , 'social-shares' , '/articles/demo' ] ,
64+ } ) ,
65+ } ) ,
66+ pagesJsonWriter ( ) ,
67+ /** Debugging tools for Astro View Transition API */
68+ vtbot ( ) ,
69+ ]
70+
3671export default defineConfig ( {
3772 adapter : vercelStatic ( vercelConfig ) ,
3873 devToolbar : {
@@ -46,36 +81,7 @@ export default defineConfig({
4681 * can change config, they're ran when the helper's called. This causes problems for
4782 * unit testing integrations.
4883 */
49- integrations : isUnitTest ( ) ? [ ] : [
50- AstroPWA ( serviceWorkerConfig ) ,
51- icon ( ) ,
52- mdx ( markdownConfig ) ,
53- /** Generate favicons and PWA icons from source SVG */
54- faviconGenerator ( ) ,
55- /** Verify number of call to actions included in Markdown files */
56- callToActionValidator ( {
57- /** Enable debug logging to see validation details */
58- debug : true ,
59- } ) ,
60- /** Inject package release (name@version) for tracking regressions between releases */
61- packageRelease ( ) ,
62- /** Inject privacy policy version from git commit date for GDPR record keeping */
63- privacyPolicyVersion ( ) ,
64- /** Only include Sentry integration in Vercel environments */
65- ...( isVercel ( ) ? [ sentry ( {
66- project : "webstack-builders-corporate-website" ,
67- org : "webstack-builders" ,
68- authToken : getSentryAuthToken ( ) ,
69- } ) ] : [ ] ) ,
70- sitemap ( {
71- serialize : createSerializeFunction ( {
72- exclude : [ 'downloads' , 'social-shares' , '/articles/demo' ] ,
73- } ) ,
74- } ) ,
75- pagesJsonWriter ( ) ,
76- /** Debugging tools for Astro View Transition API */
77- vtbot ( ) ,
78- ] ,
84+ integrations : isUnitTest ( ) ? sharedTestIntegrations : standardIntegrations ,
7985 /** API routes are marked in their files for SSR */
8086 output : 'static' ,
8187 prefetch : true ,
0 commit comments