animation broken thanks to GH pages

This commit is contained in:
micah rich 2019-08-29 19:26:22 -04:00
parent 37e8a45204
commit 7167e40825
3 changed files with 10 additions and 8 deletions

View File

@ -44,7 +44,7 @@ export default () => {
const [hoverRef, hovering] = useHover(); const [hoverRef, hovering] = useHover();
return ( return (
<Logo hovering={hovering}> <Logo>
<motion.a <motion.a
href="#download" href="#download"
ref={hoverRef} ref={hoverRef}

View File

@ -1,9 +1,8 @@
const withMDX = require('@zeit/next-mdx')({ const withMDX = require("@zeit/next-mdx")({
extension: /\.mdx?$/ extension: /\.mdx?$/
}) });
module.exports = withMDX({ module.exports = withMDX({
pageExtensions: ['js', 'jsx', 'mdx'], pageExtensions: ["js", "jsx", "mdx"],
assetPrefix: process.env.NODE_ENV === 'production' ? '/lexend' : '' assetPrefix: process.env.NODE_ENV === "production" ? "/lexend" : ""
}) });

View File

@ -1,4 +1,7 @@
{ {
"version": 2, "version": 2,
"builds": [{ "src": "package.json", "use": "@now/static-build" }] "builds": [{ "src": "package.json", "use": "@now/static-build" }],
"env": {
"ASSETPREFIX": ""
}
} }