We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f83c883 commit 8817d89Copy full SHA for 8817d89
packages/open-next/src/adapters/routing/middleware.ts
@@ -123,7 +123,10 @@ export async function handleMiddleware(
123
// If the middleware returned a Redirect, we set the `Location` header with
124
// the redirected url and end the response.
125
if (res.statusCode >= 300 && res.statusCode < 400) {
126
- resHeaders.location = resHeaders.location?.replace("http://localhost:3000", `https://${req.headers.host}`);
+ resHeaders.location = resHeaders.location?.replace(
127
+ "http://localhost:3000",
128
+ `https://${req.headers.host}`,
129
+ );
130
// res.setHeader("Location", location);
131
return {
132
body: "",
0 commit comments