My web app is hosted with the Aerobatic add-on for Bitbucket, and now I'd like to add a custom error page such as a 404 Page Not Found.
404.html
. You can have this file in your root or in a folder such as /errors
, for example. 404.html
file.package.json
file or, in your existing package.json
, add the following code block. Make sure your 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-errors
plugin. http://custom-errors.aerobatic.io/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.html
Related articles appear here based on the labels you select. Click to edit the macro and add or change labels.
|