handleRequest (app/entry.server.tsx)

remix · templates/classic-remix-compiler/arc/app/entry.server.tsx · typescript · MIT
integration, Integration / API

Remix server entry handling bot and browser requests with streaming rendering.

// Source: https://github.com/nerdy-tech-com-gitub/remix | License: MIT | Copyright Remix Software Inc. 2020-2021
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * By default, Remix will handle generating the HTTP Response for you.
 * You are free to delete this file if you'd like to, but if you ever want it revealed again, you can run `npx remix reveal` ✨
 * For more information, see https://remix.run/file-conventions/entry.server
 */

import { PassThrough } from "node:stream";

import type { AppLoadContext, EntryContext } from "@remix-run/node";
import { createReadableStreamFromReadable } from "@remix-run/node";
import { RemixServer } from "@remix-run/react";
import { isbot } from "isbot";
import { renderToPipeableStream } from "react-dom/server";

const ABORT_DELAY

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key