Skip to content

fix: normalize the rawPath without locale before attempting to asserting the 404 page #385

fix: normalize the rawPath without locale before attempting to asserting the 404 page

fix: normalize the rawPath without locale before attempting to asserting the 404 page #385

Triggered via pull request June 21, 2024 11:49
Status Failure
Total duration 1m 4s
Artifacts

check.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 10 warnings
validate: packages/open-next/src/core/routingHandler.ts#L33
Replace `·?·new·RegExp(RoutesManifest.locales.map((locale)·=>·`(^/${locale}?/)`).join("|"))` with `⏎··?·new·RegExp(⏎······RoutesManifest.locales.map((locale)·=>·`(^/${locale}?/)`).join("|"),⏎····)⏎·`
validate: packages/open-next/src/core/routingHandler.ts#L75
Replace `⏎······route.test(normalizedRawPath),⏎····` with `·route.test(normalizedRawPath)`
validate: packages/open-next/src/core/routingHandler.ts#L95
Replace `⏎······route.test(normalizedRawPath),⏎····` with `·route.test(normalizedRawPath)`
validate: packages/open-next/src/core/routingHandler.ts#L126
Replace `⏎······route.test(normalizedRawPath),⏎····` with `·route.test(normalizedRawPath)`
validate: packages/open-next/src/core/routingHandler.ts#L129
Replace `⏎······route.test(normalizedRawPath),⏎····` with `·route.test(normalizedRawPath)`
validate
Process completed with exit code 1.
validate: example/components/layout.js#L6
'name' is assigned a value but never used. Allowed unused vars must match /^_/u
validate: examples/app-pages-router/app/api/client/route.ts#L3
'request' is defined but never used. Allowed unused args must match /^_/u
validate: examples/app-pages-router/app/parallel/layout.tsx#L7
'children' is defined but never used. Allowed unused args must match /^_/u
validate: examples/app-pages-router/middleware.ts#L17
Add the missing "else" clause
validate: examples/app-router/app/api/client/route.ts#L3
'request' is defined but never used. Allowed unused args must match /^_/u
validate: examples/app-router/app/api/sse/route.ts#L6
'request' is defined but never used. Allowed unused args must match /^_/u
validate: examples/app-router/app/parallel/layout.tsx#L7
'children' is defined but never used. Allowed unused args must match /^_/u
validate: examples/app-router/middleware.ts#L16
Add the missing "else" clause
validate: examples/shared/api/index.ts#L17
'key' is defined but never used. Allowed unused args must match /^_/u
validate: packages/open-next/src/adapters/cache.ts#L285
Add the missing "else" clause