Skip to content

Commit

Permalink
Resources support pre render, small test fixes (#477)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjheffner authored Mar 26, 2024
1 parent 31ad967 commit 98f5b8e
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 4 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
5 changes: 4 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,13 @@ const nextConfig = {
reactStrictMode: true,
swcMinify: true,
trailingSlash: true,
staticPageGenerationTimeout: 180, //arbitrary; 60 is default but it's too small
assetPrefix: isProd
? 'https://s3.us-gov-west-1.amazonaws.com/next-content.www.va.gov/'
: undefined,
staticPageGenerationTimeout: 180, //arbitrary; 60 is default but it's too small
experimental: {
largePageDataBytes: 550, // 128kb by default
},
}

module.exports = nextConfig
2 changes: 1 addition & 1 deletion src/data/queries/contactInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ export const formatter: QueryFormatter<
entity.field_benefit_hub_contacts?.field_support_services.map(
(supportService) =>
queries.formatData(RESOURCE_TYPES.SUPPORT_SERVICES, supportService)
),
) || null,
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ exports[`ContactInfo formatData outputs formatted data 1`] = `
"label": "Loremipsum label here",
"type": "paragraph--email_contact",
},
"benefitHubContacts": undefined,
"benefitHubContacts": null,
"contactType": "DC",
"defaultContact": {
"href": "tel:1-800-698-2411",
Expand Down
2 changes: 1 addition & 1 deletion src/templates/layouts/event/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ describe('<Event /> Component', () => {
title: '',
width: 0,
height: 0,
links: {},
links: { '2_1_large': { href: '/foo' } },
}}
date={''}
facilityLocation={undefined}
Expand Down

0 comments on commit 98f5b8e

Please sign in to comment.