Skip to content

Commit

Permalink
Disable SSR for now
Browse files Browse the repository at this point in the history
  • Loading branch information
kossnocorp committed Nov 16, 2023
1 parent 2ec125d commit 435fe9e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/server/ssr/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@ const ServerUI: FunctionComponent<{ url: string }> = ({ url }) => {

ssr.get('*', (req, res) => {
const url = req.protocol + '://' + req.get('host') + req.url
const body = render(<ServerUI url={url} />)
const body = ssrEnabled ? render(<ServerUI url={url} />) : ''

res.send(
template({
body,
})
)
})

const ssrEnabled = false

0 comments on commit 435fe9e

Please sign in to comment.