Skip to content

Commit b31e02f

Browse files
committed
Update comments, fix default
1 parent d2e5c33 commit b31e02f

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

packages/react-router-dev/config/config.ts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -159,17 +159,14 @@ export type ReactRouterConfig = {
159159
*/
160160
presets?: Array<Preset>;
161161
/**
162-
* Control the "Lazy Route Discovery" behavior.
162+
* Control the "Lazy Route Discovery" behavior
163163
*
164164
* - `routeDiscovery.mode`: By default, this resolves to `lazy` which will
165165
* lazily discover routes as the user navigates around your application.
166166
* You can set this to `initial` to opt-out of this behavior and load all
167167
* routes with the initial HTML document load.
168168
* - `routeDiscovery.manifestPath`: The path to serve the manifest file from.
169169
* Only applies to `mode: "lazy"` and defaults to `/__manifest`.
170-
*
171-
* If you do not need to control the manifest, you can specify the mode
172-
* directly on the `routeDiscovery` config.
173170
*/
174171
routeDiscovery?:
175172
| {
@@ -227,10 +224,14 @@ export type ResolvedReactRouterConfig = Readonly<{
227224
*/
228225
prerender: ReactRouterConfig["prerender"];
229226
/**
230-
* Control the "Lazy Route Discovery" behavior. By default, this resolves to
231-
* `lazy` which will lazily discover routes as the user navigates around your
232-
* application. You can set this to `initial` to opt-out of this behavior and
233-
* load all routes with the initial HTML document load.
227+
* Control the "Lazy Route Discovery" behavior
228+
*
229+
* - `routeDiscovery.mode`: By default, this resolves to `lazy` which will
230+
* lazily discover routes as the user navigates around your application.
231+
* You can set this to `initial` to opt-out of this behavior and load all
232+
* routes with the initial HTML document load.
233+
* - `routeDiscovery.manifestPath`: The path to serve the manifest file from.
234+
* Only applies to `mode: "lazy"` and defaults to `/__manifest`.
234235
*/
235236
routeDiscovery: ReactRouterConfig["routeDiscovery"];
236237
/**

packages/react-router/lib/dom/ssr/fog-of-war.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ export function getManifestPath(
199199
_manifestPath: string | undefined,
200200
basename: string | undefined
201201
) {
202-
let manifestPath = _manifestPath || "/_manifest";
202+
let manifestPath = _manifestPath || "/__manifest";
203203

204204
if (basename == null) {
205205
return manifestPath;

0 commit comments

Comments
 (0)