Skip to content

Commit

Permalink
feat: show alert if Mapbox token lacks VITE_ prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
aqandrew committed Sep 26, 2024
1 parent f101db3 commit 26599df
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ import theme from '@theme/theme';
import store from '@root/redux/store';
import App from '@root/App';

if (import.meta.env.DEV && !import.meta.env.VITE_MAPBOX_TOKEN) {
alert('Missing Mapbox token. Please run `npm run setup`.')
}

// Expose theme to debugging console like on mui.com.
// https://mui.com/material-ui/customization/typography/#default-values
window.theme = theme;
Expand Down

0 comments on commit 26599df

Please sign in to comment.