Skip to content

Instantly share code, notes, and snippets.

import React from "react";
import { renderToNodeStream } from "react-dom/server";
import Remix, { loadRouteData } from "remix/RemixNode";
// same App as entry-web!
import App from "./App";
export default async (req, res, assets, matches) => {
// @remix-run/firebase is calling this function and passing
// the arguments in, @remix-run/aws or @remix-run/azure will
// pass in whatever APIs those platforms use
// you have total control over the server rendering, here we