-
Notifications
You must be signed in to change notification settings - Fork 0
/
gatsby-ssr.js
30 lines (23 loc) · 989 Bytes
/
gatsby-ssr.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/**
* Implement Gatsby's SSR (Server Side Rendering) APIs in this file.
*
* See: https://www.gatsbyjs.org/docs/ssr-apis/
*/
const React = require("react");
const safePrefix = require("./src/utils/safePrefix").default;
exports.onRenderBody = function({ setHeadComponents, setPostBodyComponents }) {
setHeadComponents([
]);
setPostBodyComponents([
<React.Fragment>
<script src={safePrefix('assets/js/jquery.min.js')}/>
<script src={safePrefix('assets/js/jquery.scrollex.min.js')}/>
<script src={safePrefix('assets/js/jquery.scrolly.min.js')}/>
<script src={safePrefix('assets/js/browser.min.js')}/>
<script src={safePrefix('assets/js/breakpoints.min.js')}/>
<script src={safePrefix('assets/js/util.js')}/>
<script src={safePrefix('assets/js/init.js')}/>
<script src={safePrefix('assets/js/page_load.js')}/>
</React.Fragment>
]);
};