Skip to content

Commit

Permalink
Merge pull request #7 from aloxe/prod_path
Browse files Browse the repository at this point in the history
Prod path
  • Loading branch information
aloxe authored May 27, 2024
2 parents 97b62f9 + 35950e4 commit 7751648
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.production
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
VITE_BASE_URL='/velo/traces/'
2 changes: 1 addition & 1 deletion src/components/SideBar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const SideBar = ({step, currentYear, currentCountry, currentTile, geojsonList, h
</div>
<h3>tiles</h3>
<div className='tags tiles'>
{tiles.map(tile => (<img src={`/img/${tile}.png`} key={tile} alt={tile} onClick={handleClickTile} className={`tag ${currentTile === tile && 'select'}`}/>))}
{tiles.map(tile => (<img src={`${import.meta.env.VITE_BASE_URL}/img/${tile}.png`} key={tile} alt={tile} onClick={handleClickTile} className={`tag ${currentTile === tile && 'select'}`}/>))}
</div>
</div>
</>
Expand Down

0 comments on commit 7751648

Please sign in to comment.