Skip to content

Commit 905317e

Browse files
committed
fix format
1 parent 0109afc commit 905317e

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

.changeset/light-donuts-reply.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
"emdash": patch
32

43
Avoid accessing sessions on prerendered public routes.

packages/core/tests/unit/astro/middleware-prerender.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,7 @@ describe("astro middleware prerendered routes", () => {
6161
get: vi.fn(() => undefined),
6262
};
6363
const redirect = vi.fn(
64-
(location: string) =>
65-
new Response(null, { status: 302, headers: { Location: location } }),
64+
(location: string) => new Response(null, { status: 302, headers: { Location: location } }),
6665
);
6766

6867
const context: Record<string, unknown> = {

0 commit comments

Comments
 (0)