Commit c45ba9d9 authored by Tim Neutkens's avatar Tim Neutkens

Remove createClientRouterFilter from setup-dev-bundler

parent 35e42ca3
...@@ -33,7 +33,6 @@ import { normalizeAppPath } from '../../../shared/lib/router/utils/app-paths' ...@@ -33,7 +33,6 @@ import { normalizeAppPath } from '../../../shared/lib/router/utils/app-paths'
import { buildDataRoute } from './build-data-route' import { buildDataRoute } from './build-data-route'
import { getRouteMatcher } from '../../../shared/lib/router/utils/route-matcher' import { getRouteMatcher } from '../../../shared/lib/router/utils/route-matcher'
import { normalizePathSep } from '../../../shared/lib/page-path/normalize-path-sep' import { normalizePathSep } from '../../../shared/lib/page-path/normalize-path-sep'
import { createClientRouterFilter } from '../../../lib/create-client-router-filter'
import { absolutePathToPage } from '../../../shared/lib/page-path/absolute-path-to-page' import { absolutePathToPage } from '../../../shared/lib/page-path/absolute-path-to-page'
import { generateInterceptionRoutesRewrites } from '../../../lib/generate-interception-routes-rewrites' import { generateInterceptionRoutesRewrites } from '../../../lib/generate-interception-routes-rewrites'
...@@ -376,7 +375,6 @@ async function startWatcher( ...@@ -376,7 +375,6 @@ async function startWatcher(
}) })
const fileWatchTimes = new Map() const fileWatchTimes = new Map()
let enabledTypeScript = await verifyTypeScript(opts) let enabledTypeScript = await verifyTypeScript(opts)
let previousClientRouterFilters: any
let previousConflictingPagePaths: Set<string> = new Set() let previousConflictingPagePaths: Set<string> = new Set()
const routeTypesFilePath = path.join(distDir, 'types', 'routes.d.ts') const routeTypesFilePath = path.join(distDir, 'types', 'routes.d.ts')
...@@ -782,28 +780,6 @@ async function startWatcher( ...@@ -782,28 +780,6 @@ async function startWatcher(
previousConflictingPagePaths = conflictingAppPagePaths previousConflictingPagePaths = conflictingAppPagePaths
let clientRouterFilters: any
if (nextConfig.experimental.clientRouterFilter) {
clientRouterFilters = createClientRouterFilter(
Object.keys(appPaths),
nextConfig.experimental.clientRouterFilterRedirects
? ((nextConfig as any)._originalRedirects || []).filter(
(r: any) => !r.internal
)
: [],
nextConfig.experimental.clientRouterFilterAllowedRate
)
if (
!previousClientRouterFilters ||
JSON.stringify(previousClientRouterFilters) !==
JSON.stringify(clientRouterFilters)
) {
envChange = true
previousClientRouterFilters = clientRouterFilters
}
}
if (envChange || tsconfigChange) { if (envChange || tsconfigChange) {
if (envChange) { if (envChange) {
writeEnvDefinitions = true writeEnvDefinitions = true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment