diff --git a/src/components/Post.tsx b/src/components/Post.tsx index 2ea69e2..443c0dc 100644 --- a/src/components/Post.tsx +++ b/src/components/Post.tsx @@ -138,7 +138,7 @@ const Post: React.FC = ({ id, entryId, author, posted, image, width,
= ({ id, entryId, author, posted, image, width, readOnly onClick={handleLinkClick} /> - +
diff --git a/src/main.tsx b/src/main.tsx index bf80f79..5c3ed3e 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -83,7 +83,7 @@ let router = createBrowserRouter( errorElement: } ], - { basename: import.meta.env.BASE_URL } + { basename: import.meta.env.VITE_PUBLIC_URL } ); createRoot(document.getElementById('root')!).render( diff --git a/vite.config.ts b/vite.config.ts index d5a5515..bf84a18 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -18,7 +18,7 @@ export default defineConfig(({ mode }) => { }), purgeCss(), ], - base: mode === "production" ? "stegg.alifeinbinary.com/" : "/", + base: mode === "production" ? "/" : "/", build: { assetsDir: "public", sourcemap: true,