Migrate to Astro base

This commit is contained in:
Alicia Sykes
2024-05-05 17:39:47 +01:00
parent 7234e11e87
commit 45bf452f17
91 changed files with 432 additions and 431 deletions

View File

@@ -0,0 +1,10 @@
import { BrowserRouter } from "react-router-dom";
import { StaticRouter } from "react-router-dom/server";
import App from "./App.tsx";
// import "./App.css";
export default ({ pathname }: { pathname: string }) => (
import.meta.env.SSR
? <StaticRouter location={pathname}><App/></StaticRouter>
: <BrowserRouter><App/></BrowserRouter>
)