From d4b422b9ce52a9001fc820b540df9fc68b99578a Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Thu, 3 Sep 2020 16:49:03 +0200 Subject: [PATCH] Add disableHostCheck to work in CodeSandbox (#9) --- styleguide.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/styleguide.config.js b/styleguide.config.js index 0ca172a..e6032ce 100644 --- a/styleguide.config.js +++ b/styleguide.config.js @@ -2,6 +2,10 @@ module.exports = { title: 'React Style Guide Example', defaultExample: true, webpackConfig: { + devServer: { + // Docs: https://codesandbox.io/docs/environment#how-can-i-tell-if-i-am-in-a-container-sandbox + disableHostCheck: !!process.env.CODESANDBOX_SSE, + }, module: { rules: [ {