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 1a92864 commit 3bfb897Copy full SHA for 3bfb897
src/index.ts
@@ -86,7 +86,6 @@ export const pluginReactRouter = (
86
basename = '/',
87
buildDirectory = 'build',
88
ssr = true,
89
- routeDiscovery = { mode: 'lazy', manifestPath: '/__manifest' },
90
} = await jiti
91
.import<Config>('./react-router.config.ts', {
92
default: true,
@@ -98,6 +97,9 @@ export const pluginReactRouter = (
98
97
return {} as Config;
99
});
100
+ // Set default routeDiscovery configuration
101
+ const routeDiscovery = { mode: 'lazy', manifestPath: '/__manifest' } as const;
102
+
103
const routesPath = findEntryFile(resolve(appDirectory, 'routes'));
104
105
// Then read the routes
0 commit comments