This commit is contained in:
ポール ウェッブ 2018-11-30 15:02:57 -06:00
parent 4ba5ec49dd
commit 8609918d95
2 changed files with 7 additions and 8 deletions

View file

@ -2,21 +2,20 @@
// P A C K A G E S // I M P O R T
import html from "choo/html"; import html from "choo/html";
import { require as local } from "app-root-path";
// U T I L S // U T I L S
const page404 = local("/app/views/404.js"); import page404 from "../views/404";
const redirects = local("/app/data/redirects.json"); import redirects from "../data/redirects.json";
// E X P O R T // E X P O R T
module.exports = exports = state => { export default state => {
const redirectUrl = redirects[state.href]; const redirectUrl = redirects[state.href];
if (redirectUrl) { if (redirectUrl) {
@ -43,7 +42,7 @@ module.exports = exports = state => {
}, 2000); }, 2000);
</script> </script>
`; `;
} else {
return page404();
} }
return page404();
}; };

View file

@ -97,5 +97,5 @@
"app/dist" "app/dist"
] ]
}, },
"version": "2.0.1" "version": "2.1.0"
} }