Estayparadox/Prismic-Gatsby-Boilerplate

View on GitHub
gatsby-ssr.js

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * Implement Gatsby's SSR (Server Side Rendering) APIs in this file.
 *
 * See: https://www.gatsbyjs.com/docs/reference/config-files/gatsby-ssr/
 */

/**
 * @type {import('gatsby').GatsbySSR['onRenderBody']}
 */
exports.onRenderBody = ({ setHtmlAttributes }) => {
  setHtmlAttributes({ lang: `fr` });
};