This is a very simply Origami plugin that serves a HTML file as a fallback for routes not found.
yarn add origami-plugin-spa
In your .origami
file, add this to your plugins
:
{
...
"plugins": {
"spa": {
"fallback": "./dist/index.html"
}
}
...
}
String path value pointing to the location of the HTML file to fallback to (relative to project).