Skip to content

Commit be98a85

Browse files
me4502MartinRosenberg
authored andcommittedJun 11, 2022
fix: correctly apply priority tags on SSR
Currently, the priority tags are not applied to the page during SSR time, leading to the HTML files not including any tags that are marked as priority. This adds it to the list of head components, resolving the issue.
1 parent 9b30014 commit be98a85

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/gatsby-ssr.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export const onRenderBody: GatsbySSR['onRenderBody'] = ({
1515
setHeadComponents([
1616
helmet.base.toComponent(),
1717
helmet.title.toComponent(),
18+
helmet.priority.toComponent(),
1819
helmet.meta.toComponent(),
1920
helmet.link.toComponent(),
2021
helmet.style.toComponent(),

0 commit comments

Comments
 (0)