Skip to content

Commit

Permalink
remove gh-pages support
Browse files Browse the repository at this point in the history
remove base route for gh-pages

remove gh-pages-specific script
  • Loading branch information
mbwatson committed Aug 1, 2024
1 parent 1c7fb7f commit 2ad57c7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
11 changes: 0 additions & 11 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,6 @@
<title>FABRIC KNIT Workshop</title>
</head>
<body>
<!-- The purpose of this script is only for deployment at gh pages. -->

<script>
(function(){
var redirect = sessionStorage.redirect;
delete sessionStorage.redirect;
if (redirect && redirect != location.href) {
history.replaceState(null, null, redirect);
}
})();
</script>
<div id="root"></div>
</body>
</html>
11 changes: 1 addition & 10 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,7 @@ const root = createRoot(container)

const ProvisionedApp = () => (
<CssVarsProvider theme={ theme }>
<BrowserRouter basename={
// include basename in production deployment
// this is due to the way github pages deploys
// the base url for this site should be the
// following for the purposes of DNS records.
// https://fabric-testbed.github.io/knit-website
// this step is not necessary in development
process.env.NODE_ENV !== 'production'
? '' : '/knit-website'
}>
<BrowserRouter>
<App />
</BrowserRouter>
</CssVarsProvider>
Expand Down

0 comments on commit 2ad57c7

Please sign in to comment.