Skip to content

Commit

Permalink
fix: show dev ribbon in local preview as well (#86)
Browse files Browse the repository at this point in the history
* chore: mark node version in engines

* fix: show dev ribbon in local preview as well
  • Loading branch information
EndBug committed Apr 25, 2023
1 parent 766f3f4 commit 70e00e6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
7 changes: 5 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@
"typescript": "^4.4.3",
"underscore": "^1.13.1"
},
"engines": {
"node": "^16.0.0"
},
"eslintConfig": {
"extends": [
"react-app",
Expand Down
5 changes: 3 additions & 2 deletions src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,9 @@ export default function App() {
<TestProvider>
<RibbonContainer>
{window &&
new URL(window.location.href).hostname ==
'polinetworkorg.github.io' && (
(new URL(window.location.href).hostname ==
'polinetworkorg.github.io' ||
process.env.NODE_ENV == 'development') && (
<RightCornerRibbon backgroundColor="#cc0000" color="white">
DEV
</RightCornerRibbon>
Expand Down

0 comments on commit 70e00e6

Please sign in to comment.