Skip to content

Commit

Permalink
Fix frontend issues
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Jun 13, 2024
1 parent ffbffe1 commit 2d7b1bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/src/config/env.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const LANGUAGES = [

const env = {
isMobile: () => window.innerWidth <= 960,
isProduction: import.meta.env.VITE_NODE_ENV === 'production',

APP_TYPE: movininTypes.AppType.Frontend,
API_HOST: String(import.meta.env.VITE_MI_API_HOST),
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import 'react-toastify/dist/ReactToastify.min.css'
import './assets/css/common.css'
import './assets/css/index.css'

if (import.meta.env.VITE_NODE_ENV === 'production') {
if (env.isProduction) {
disableDevTools()
}

Expand Down

0 comments on commit 2d7b1bf

Please sign in to comment.