From ae7f458d21a01a6631e031c1e754ce5d48662bda Mon Sep 17 00:00:00 2001 From: melMass Date: Tue, 7 Nov 2023 16:13:06 +0100 Subject: [PATCH] =?UTF-8?q?fix=20=F0=9F=90=9B:=20assets=20aren't=20replace?= =?UTF-8?q?d?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit this is actually how vite works... https://vitejs.dev/guide/assets.html --- src/index.jsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/index.jsx b/src/index.jsx index f0cc5d5f3..df7106612 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -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 = ( <> } />