Skip to content

Commit d4b422b

Browse files
authored
Add disableHostCheck to work in CodeSandbox (#9)
1 parent 733cec4 commit d4b422b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

styleguide.config.js

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ module.exports = {
22
title: 'React Style Guide Example',
33
defaultExample: true,
44
webpackConfig: {
5+
devServer: {
6+
// Docs: https://codesandbox.io/docs/environment#how-can-i-tell-if-i-am-in-a-container-sandbox
7+
disableHostCheck: !!process.env.CODESANDBOX_SSE,
8+
},
59
module: {
610
rules: [
711
{

0 commit comments

Comments
 (0)