2.1.0
This commit is contained in:
parent
4ba5ec49dd
commit
8609918d95
2 changed files with 7 additions and 8 deletions
|
@ -2,21 +2,20 @@
|
|||
|
||||
|
||||
|
||||
// P A C K A G E S
|
||||
// I M P O R T
|
||||
|
||||
import html from "choo/html";
|
||||
import { require as local } from "app-root-path";
|
||||
|
||||
// U T I L S
|
||||
|
||||
const page404 = local("/app/views/404.js");
|
||||
const redirects = local("/app/data/redirects.json");
|
||||
import page404 from "../views/404";
|
||||
import redirects from "../data/redirects.json";
|
||||
|
||||
|
||||
|
||||
// E X P O R T
|
||||
|
||||
module.exports = exports = state => {
|
||||
export default state => {
|
||||
const redirectUrl = redirects[state.href];
|
||||
|
||||
if (redirectUrl) {
|
||||
|
@ -43,7 +42,7 @@ module.exports = exports = state => {
|
|||
}, 2000);
|
||||
</script>
|
||||
`;
|
||||
} else {
|
||||
return page404();
|
||||
}
|
||||
|
||||
return page404();
|
||||
};
|
||||
|
|
|
@ -97,5 +97,5 @@
|
|||
"app/dist"
|
||||
]
|
||||
},
|
||||
"version": "2.0.1"
|
||||
"version": "2.1.0"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue