mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-02 00:09:48 +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 [
|
||||
"404.html",
|
||||
"/blog",
|
||||
],
|
||||
}
|
||||
|
@ -140,6 +141,7 @@ export default [
|
|||
];
|
||||
",
|
||||
"routesPaths": Array [
|
||||
"404.html",
|
||||
"/docs/hello",
|
||||
"docs/foo/baz",
|
||||
],
|
||||
|
|
|
@ -26,7 +26,7 @@ export async function loadRoutes(pluginsRouteConfigs: RouteConfig[]) {
|
|||
const registry: {
|
||||
[chunkName: string]: ChunkRegistry;
|
||||
} = {};
|
||||
const routesPaths: string[] = [];
|
||||
const routesPaths: string[] = ['404.html'];
|
||||
const routesChunkNames: {
|
||||
[routePath: string]: any;
|
||||
} = {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue