Date: Fri, 29 Mar 2024 09:03:50 +0000 (UTC) Message-ID: <148908349.5.1711703030477@591f5d7b35f4> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_4_216288792.1711703030477" ------=_Part_4_216288792.1711703030477 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
My web app is hosted with the Aerobatic add-on for Bitbucket, an= d now I'd like to add a custom error page such as a 404 Page Not Found.
404.html
. You can have t=
his file in your root or in a folder such as /errors
, for exam=
ple. 404.ht=
ml
file.package.json
file or, in your existin=
g package.json
, add the following code block. Make sure your&n=
bsp;package.json
is in the root level of your repository.{ "_virtualApp": { "router": [ { "module": "custom-errors", "options": { "errors": { "500": "errors/500.html", "404": "errors/404.html", "401": "errors/401.html" } } }, { "module": "webpage" } ] } }
custom-e=
rrors
plugin. http://custom-errors.aerobatic.io/=
a>Full documentation on custom errors can be found on 4front.io which is the open-source project that Aerobatic is built on.
http://4front.io/docs/plugins/custom-errors.h= tml