Yes, or feature request.
GItHub pages and Netlify treat 404.html as special url.
Current docusaurus can not output /404.html.
Yes
/website/pages/404.jsconst React = require("react");
class Index extends React.Component {
render() {
return <div>>404</div>;
}
}
module.exports = Index;
npm run buildThrow following error:
/Users/azu/.ghq/github.com/almin/almin/website/node_modules/docusaurus/lib/server/generate.js:360
var langParts = match[1].split('/');
^
TypeError: Cannot read property '1' of null
at /Users/azu/.ghq/github.com/almin/almin/website/node_modules/docusaurus/lib/server/generate.js:422:25
at Array.forEach (<anonymous>)
at execute (/Users/azu/.ghq/github.com/almin/almin/website/node_modules/docusaurus/lib/server/generate.js:401:9)
at Object.<anonymous> (/Users/azu/.ghq/github.com/almin/almin/website/node_modules/docusaurus/lib/build-files.js:31:1)
at Module._compile (module.js:641:30)
at Object.Module._extensions..js (module.js:652:10)
at Module.load (module.js:560:32)
at tryModuleLoad (module.js:503:12)
at Function.Module._load (module.js:495:3)
at Function.Module.runMain (module.js:682:10)
Create build/<site>/404.html
Throw error.
TypeError: Cannot read property '1' of null
Ah, I've noticed that docusaurus create from en/404.js to build/<site>/404.html if default lang is en.

This issue has been resolved. I'm close this issue.
@azu Thank you for the detailed issue description.
Another option is to put a raw HTML page (e.g., 404.html) into the website/static directory as well. And that file will get copied over to the root of the site upon build/generation.
bo teta de resolver:
crie o arquivo 404.js nas pages
copie e cole o conteudo do help.js
build e seja feliz
Most helpful comment
@azu Thank you for the detailed issue description.
Another option is to put a raw HTML page (e.g.,
404.html) into thewebsite/staticdirectory as well. And that file will get copied over to the root of the site upon build/generation.