fix(build): Fix netlify build

This commit is contained in:
Bouncey
2018-09-05 14:00:48 +01:00
committed by Stuart Taylor
parent 4c73ebbfef
commit aefb63aa7c
6 changed files with 13 additions and 10 deletions

View File

@@ -1,7 +1,9 @@
import { navigate } from 'gatsby';
const Redirecthome = () => {
navigate('/');
if (typeof window !== 'undefined') {
navigate('/');
}
return null;
};