From 8b2c4a38a461ff5ecc95972291bc711e2c5dec9a Mon Sep 17 00:00:00 2001
From: 简律纯 <hsiangnianian@outlook.com>
Date: Fri, 28 Apr 2023 01:47:57 +0800
Subject:

---
 examples/kitchen-sink/apps/blog/app/entry.server.tsx | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 examples/kitchen-sink/apps/blog/app/entry.server.tsx

(limited to 'examples/kitchen-sink/apps/blog/app/entry.server.tsx')

diff --git a/examples/kitchen-sink/apps/blog/app/entry.server.tsx b/examples/kitchen-sink/apps/blog/app/entry.server.tsx
new file mode 100644
index 0000000..5112e09
--- /dev/null
+++ b/examples/kitchen-sink/apps/blog/app/entry.server.tsx
@@ -0,0 +1,18 @@
+import handleRequest from "@vercel/remix-entry-server";
+import { RemixServer } from "@remix-run/react";
+import type { EntryContext } from "@remix-run/server-runtime";
+
+export default function (
+  request: Request,
+  responseStatusCode: number,
+  responseHeaders: Headers,
+  remixContext: EntryContext
+) {
+  const remixServer = <RemixServer context={remixContext} url={request.url} />;
+  return handleRequest(
+    request,
+    responseStatusCode,
+    responseHeaders,
+    remixServer
+  );
+}
-- 
cgit v1.2.3-70-g09d2

