Skip to content

Commit

Permalink
add basename /knit-website to production deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
suejinkim20 committed Jul 11, 2024
1 parent 5bd010c commit 2516a15
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,16 @@ const root = createRoot(container)

const ProvisionedApp = () => (
<CssVarsProvider theme={ theme }>
<BrowserRouter>
<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'
}>
<App />
</BrowserRouter>
</CssVarsProvider>
Expand Down

0 comments on commit 2516a15

Please sign in to comment.