Skip to content

Commit

Permalink
fix: multiple apps
Browse files Browse the repository at this point in the history
  • Loading branch information
SamShanks1 committed Aug 16, 2022
1 parent 3f90676 commit 1db3158
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ const theme = createTheme({

const Root = () => {

if (process.env.REACT_APP_IN_GAME) {
return null;
}
if (process.env.NODE_ENV === 'production' || process.env.REACT_APP_IN_GAME) {
return null;
}

return (
<BrowserRouter>
Expand Down
3 changes: 3 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ module.exports = {
cache: false,
template: './src/index.html',
}),
new webpack.DefinePlugin({
process: { env: {} },
}),
isDevelopment && new ReactRefreshWebpackPlugin(),
].filter(Boolean),

Expand Down

0 comments on commit 1db3158

Please sign in to comment.