File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import webpackHotMiddleware from '@gatsbyjs/webpack-hot-middleware';
88import config from '../webpack/config.dev' ;
99import embedRoutes from './routes/embed.routes' ;
1010import assetRoutes from './routes/asset.routes' ;
11- import renderPreviewIndex from './views/previewIndex' ;
11+ import { renderPreviewIndex } from './views/previewIndex' ;
1212
1313const app = new Express ( ) ;
1414
Original file line number Diff line number Diff line change 1- function renderPreviewIndex ( ) {
1+ export function renderPreviewIndex ( ) {
22 const assetsManifest =
33 process . env . webpackAssets && JSON . parse ( process . env . webpackAssets ) ;
44 return `
@@ -34,5 +34,3 @@ function renderPreviewIndex() {
3434 </html>
3535 ` ;
3636}
37-
38- export default renderPreviewIndex ;
You can’t perform that action at this time.
0 commit comments