Skip to content

Commit 8817d89

Browse files
committed
fix linting
1 parent f83c883 commit 8817d89

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/open-next/src/adapters/routing/middleware.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,10 @@ export async function handleMiddleware(
123123
// If the middleware returned a Redirect, we set the `Location` header with
124124
// the redirected url and end the response.
125125
if (res.statusCode >= 300 && res.statusCode < 400) {
126-
resHeaders.location = resHeaders.location?.replace("http://localhost:3000", `https://${req.headers.host}`);
126+
resHeaders.location = resHeaders.location?.replace(
127+
"http://localhost:3000",
128+
`https://${req.headers.host}`,
129+
);
127130
// res.setHeader("Location", location);
128131
return {
129132
body: "",

0 commit comments

Comments
 (0)