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 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 |