hello hello
This file contains 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 { createCookieSessionStorage } from "remix"; | |
let { getSession, commitSession, destroySession } = createCookieSessionStorage({ | |
cookie: { | |
name: "__session", | |
secrets: ["r3m1xr0ck5"] | |
} | |
}); | |
export { getSession, commitSession, destroySession }; |
This file contains 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
const pageMachine = Machine({ | |
id: 'pageTransition', | |
initial: 'idle', | |
context: { | |
location: '/', | |
nextLocation: null, | |
data: {}, | |
forms: new Map(), | |
error: null |
This file contains 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
asdfasdf |
This file contains 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
blah blah |
This file contains 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
hey hey |
hello hello
This file contains 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 type { | |
ActionFunction, | |
LinksFunction, | |
LoaderFunction, | |
MetaFunction | |
} from "@remix-run/react"; | |
import { | |
Meta, | |
Links, | |
Scripts, |
This file contains 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
const path = require("path"); | |
const express = require("express"); | |
const compression = require("compression"); | |
const morgan = require("morgan"); | |
const { createRequestHandler } = require("@remix-run/express"); | |
//////////////////////////////////////////////////////////////////////////////// | |
let app = express(); | |
app.use(compression()); |
This file contains 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
enum State { | |
Idle, | |
LoadingJwt, | |
Success, | |
Error, | |
} | |
type Data = { error?: string; jwt?: string }; | |
function Comp() { |