mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-06 10:20:09 +02:00
feat(v2): render 404 html page (#1652)
This commit is contained in:
parent
ca67cad2a7
commit
1f5f06134f
2 changed files with 3 additions and 1 deletions
|
@ -55,6 +55,7 @@ export default [
|
||||||
];
|
];
|
||||||
",
|
",
|
||||||
"routesPaths": Array [
|
"routesPaths": Array [
|
||||||
|
"404.html",
|
||||||
"/blog",
|
"/blog",
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
@ -140,6 +141,7 @@ export default [
|
||||||
];
|
];
|
||||||
",
|
",
|
||||||
"routesPaths": Array [
|
"routesPaths": Array [
|
||||||
|
"404.html",
|
||||||
"/docs/hello",
|
"/docs/hello",
|
||||||
"docs/foo/baz",
|
"docs/foo/baz",
|
||||||
],
|
],
|
||||||
|
|
|
@ -26,7 +26,7 @@ export async function loadRoutes(pluginsRouteConfigs: RouteConfig[]) {
|
||||||
const registry: {
|
const registry: {
|
||||||
[chunkName: string]: ChunkRegistry;
|
[chunkName: string]: ChunkRegistry;
|
||||||
} = {};
|
} = {};
|
||||||
const routesPaths: string[] = [];
|
const routesPaths: string[] = ['404.html'];
|
||||||
const routesChunkNames: {
|
const routesChunkNames: {
|
||||||
[routePath: string]: any;
|
[routePath: string]: any;
|
||||||
} = {};
|
} = {};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue