Skip to content

Commit

Permalink
fix πŸ›: assets aren't replaced
Browse files Browse the repository at this point in the history
this is actually how vite works... https://vitejs.dev/guide/assets.html
  • Loading branch information
melMass committed Nov 7, 2023
1 parent c7a3559 commit ae7f458
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ import { Preview } from '@components/preview/index'
import MintForm from '@components/form/MintForm'
import { ListsFeed } from '@pages/home/feeds/lists-feed'

if (import.meta.env.BASE_URL !== '/') {
const base = document.createElement('base')
base.href = import.meta.env.BASE_URL
document.head.insertBefore(base, document.head.firstChild)
}
const display_routes = (
<>
<Route index element={<Creations />} />
Expand Down

0 comments on commit ae7f458

Please sign in to comment.