diff --git a/lib/utils/develop.js b/lib/utils/develop.js index 931b0abc9952b..1be4e148e1596 100644 --- a/lib/utils/develop.js +++ b/lib/utils/develop.js @@ -25,6 +25,14 @@ import globPages from './glob-pages' import webpackConfig from './webpack.config' const debug = require('debug')('gatsby:application') +// Display a nice noscript message in dev mode explaining that server-side rendering +// is not enabled in develop mode +const devNoScript = `` + function startServer (program) { const directory = program.directory @@ -71,7 +79,7 @@ function startServer (program) { try { const htmlElement = React.createElement( HTML, { - body: '', + body: devNoScript, } ) let html = ReactDOMServer.renderToStaticMarkup(htmlElement)