Skip to content

Commit

Permalink
Updated package.json to serve the app under /map
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbarne3 committed Jun 27, 2024
1 parent 0e80254 commit 0351b1d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 54 deletions.
39 changes: 0 additions & 39 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-map-gl": "^7.1.7",
"react-router-dom": "^6.24.0",
"sass": "^1.76.0"
},
"devDependencies": {
Expand All @@ -37,5 +36,6 @@
"togeojson": "^0.16.0",
"typescript": "^5.2.2",
"vite": "^5.2.0"
}
},
"homepage": "./map/"
}
14 changes: 1 addition & 13 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,9 @@ import ReactDOM from 'react-dom/client'
import App from './App.tsx'
import 'mapbox-gl/dist/mapbox-gl.css';
import './index.scss'
import { RouterProvider, createBrowserRouter } from 'react-router-dom';

const router = createBrowserRouter([
{
path: '/',
element: (
<App />
)
}
], {
basename: import.meta.env.VITE_BASEURL
})

ReactDOM.createRoot(document.getElementById('root')!).render(
<React.StrictMode>
<RouterProvider router={router} />
<App />
</React.StrictMode>
)

0 comments on commit 0351b1d

Please sign in to comment.