diff --git a/_redirects_ref b/_redirects_ref new file mode 100644 index 0000000000..89cb14a1d9 --- /dev/null +++ b/_redirects_ref @@ -0,0 +1 @@ +/* /#/:splat 301 \ No newline at end of file diff --git a/package.json b/package.json index 2818b34af1..5990213f7d 100644 --- a/package.json +++ b/package.json @@ -68,6 +68,7 @@ "react-error-overlay": "6.0.9" }, "scripts": { + "add-redirects": "mv _redirects_ref public/_redirects", "start": "PORT=3010 react-app-rewired start", "start-home": "yarn lingui:prepare && PORT=3010 env-cmd -e development-home react-app-rewired start", "start-app": "yarn lingui:prepare && PORT=3011 env-cmd -e development-app react-app-rewired start", @@ -75,6 +76,7 @@ "build": "INLINE_RUNTIME_CHUNK=false react-app-rewired build", "build-home": "INLINE_RUNTIME_CHUNK=false env-cmd -e production-home react-app-rewired build", "build-app": "INLINE_RUNTIME_CHUNK=false env-cmd -e production-app react-app-rewired build", + "build-fleek": "yarn add-redirects && INLINE_RUNTIME_CHUNK=false env-cmd -e production-app react-app-rewired build", "test": "react-app-rewired test --transformIgnorePatterns \"node_modules/(?!@wagmi)/\"", "test:ci": "react-app-rewired test --watchAll=false --transformIgnorePatterns \"node_modules/(?!@wagmi)/\"", "eject": "react-scripts eject", diff --git a/public/charting_library/bundles/3876.fbb750fd312778403036.css b/public/charting_library/bundles/3876.fbb750fd312778403036.css index e69de29bb2..a47cf449ff 100644 --- a/public/charting_library/bundles/3876.fbb750fd312778403036.css +++ b/public/charting_library/bundles/3876.fbb750fd312778403036.css @@ -0,0 +1 @@ +/* empty message */ diff --git a/src/App/App.js b/src/App/App.js index cd8706de66..b26a19be1b 100644 --- a/src/App/App.js +++ b/src/App/App.js @@ -4,7 +4,7 @@ import { useEffect, useRef, useState, useCallback } from "react"; import { SWRConfig } from "swr"; import "@wagmi/connectors"; -import { Redirect, Route, HashRouter as Router, Switch, useHistory, useLocation } from "react-router-dom"; +import { Redirect, Route, Switch, useHistory, useLocation } from "react-router-dom"; import { getAppBaseUrl, isHomeSite, REFERRAL_CODE_QUERY_PARAM } from "lib/legacy"; @@ -541,7 +541,6 @@ function App() { app = {app}; app = {app}; app = {app}; - app = {app}; app = {app}; app = {app}; app = {app}; diff --git a/src/index.tsx b/src/index.tsx index 7f00c805a1..7f0367aa1c 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,7 +1,7 @@ import React from "react"; import ReactDOM from "react-dom"; import "regenerator-runtime/runtime"; -import { BrowserRouter as Router } from "react-router-dom"; +import { HashRouter as Router } from "react-router-dom"; import App from "./App/App"; import reportWebVitals from "./reportWebVitals"; import WalletProvider from "lib/wallets/WalletProvider";