Skip to content

Commit b7851d1

Browse files
authored
Merge pull request #11 from codeanit-website/bug#10-TypeError_In_Netlify
Create gatsby-ssr.js
2 parents 774fb2e + e9b1a70 commit b7851d1

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

gatsby-ssr.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/**
2+
* Import fonts to expose them globaly
3+
*/
4+
import 'typeface-fira-code';
5+
6+
import React from 'react';
7+
import RootWrapper from './src/context/ThemeProvider';
8+
9+
export const wrapRootElement = ({ element }, pluginOptions) => {
10+
return <RootWrapper>{element}</RootWrapper>;
11+
};

0 commit comments

Comments
 (0)