Skip to content

Commit

Permalink
Add disableHostCheck to work in CodeSandbox (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasbacsai authored Sep 3, 2020
1 parent 733cec4 commit d4b422b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions styleguide.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
{
Expand Down

0 comments on commit d4b422b

Please sign in to comment.