Skip to content

Commit

Permalink
use react-dom/server.browser.js
Browse files Browse the repository at this point in the history
  • Loading branch information
evantahler committed Apr 2, 2024
1 parent ee3a36b commit d76d22e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion servers/web.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ import { logger, api } from "../api";
import { Connection } from "../classes/Connection";
import path from "path";
import { type HTTP_METHOD } from "../classes/Action";
import { renderToReadableStream } from "react-dom/server";
import type { BunFile } from "bun";
import { ErrorType, TypedError } from "../classes/TypedError";

// @ts-ignore TODO: Hack because react-dom wants to load the node package, but wa want the browser package for some reason
import { renderToReadableStream } from "react-dom/server.browser.js";

type URLParsed = import("url").URL;

const buildHeaders = (connection?: Connection) => {
Expand Down

0 comments on commit d76d22e

Please sign in to comment.