Skip to content

Instantly share code, notes, and snippets.

View georgehenderson's full-sized avatar

George Henderson georgehenderson

View GitHub Profile
app.get(
"*",
createRequestHandler({
useMiddleware() {
return (req, res, next) => {
if (!req.cookies.token && req.path !== '/') {
redirect('/');
}
next();
}
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,
Verifying my Blockstack ID is secured with the address 144tPWtBtMGaqVFh2Wuivkb3zTz4FwsdRw https://explorer.blockstack.org/address/144tPWtBtMGaqVFh2Wuivkb3zTz4FwsdRw