Skip to content

Commit b6f1bb6

Browse files
committed
chore: log manifest
1 parent 0ad7f82 commit b6f1bb6

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

packages/runtime/src/templates/edge-shared/router.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -222,10 +222,6 @@ export function applyRewriteRules({
222222
checkStaticRoutes?: boolean
223223
staticRoutes?: Set<string>
224224
}): Request | false {
225-
if (!rules?.length) {
226-
return false
227-
}
228-
229225
let result: Request | false = false
230226

231227
if (checkStaticRoutes && !staticRoutes) {

packages/runtime/src/templates/edge/router-post-middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { runPostMiddleware } from '../edge-shared/router.ts'
66
import type { RoutesManifest } from '../edge-shared/next-utils.ts'
77

88
/**
9-
* Stage 1 routing
9+
* Stage 2 routing
1010
*/
1111

1212
// deno-lint-ignore require-await

packages/runtime/src/templates/edge/router-pre-middleware.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,15 @@ globalThis.NETLIFY_NEXT_EDGE_ROUTER = true
1717

1818
const handler = async (request: Request, context: Context) => {
1919
const manifest: RoutesManifest = routesManifest as unknown as RoutesManifest
20+
console.log({ manifest })
2021

2122
// Get changed response headers
2223
const extraHeaders = applyHeaderRules(request, manifest.headers)
2324

2425
const redirect = applyRedirectRules(request, manifest.redirects)
2526
let response: Response
2627
if (redirect) {
28+
console.log({ redirect })
2729
response = redirect
2830
} else if (extraHeaders.length === 0) {
2931
// No redirect and no new headers, so we can skip to the next function

0 commit comments

Comments
 (0)