This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app.get( | |
"*", | |
createRequestHandler({ | |
useMiddleware() { | |
return (req, res, next) => { | |
if (!req.cookies.token && req.path !== '/') { | |
redirect('/'); | |
} | |
next(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import ReactDOMServer from "react-dom/server"; | |
import type { EntryContext } from "@remix-run/core"; | |
import Remix from "@remix-run/react/server"; | |
import { ServerStyleSheet } from "styled-components"; | |
import App from "./App"; | |
export default function handleRequest( | |
request: Request, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying my Blockstack ID is secured with the address 144tPWtBtMGaqVFh2Wuivkb3zTz4FwsdRw https://explorer.blockstack.org/address/144tPWtBtMGaqVFh2Wuivkb3zTz4FwsdRw |