Skip to content

Commit

Permalink
fix: switched app.render signature because old one was deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
alexvuka1 committed Dec 12, 2023
1 parent 17c42fd commit 21c3429
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/entrypoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function createExports(manifest: SSRManifest) {
const handler = async (request: Request): Promise<Response> => {
const routeData = app.match(request);
Reflect.set(request, clientAddressSymbol, request.headers.get('x-forwarded-for'));
const response = await app.render(request, routeData);
const response = await app.render(request, { routeData });
if (app.setCookieHeaders) {
for (const setCookieHeader of app.setCookieHeaders(response)) {
response.headers.append('Set-Cookie', setCookieHeader);
Expand Down

0 comments on commit 21c3429

Please sign in to comment.