fix(build): Fix netlify build
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
import { navigate } from 'gatsby';
|
||||
|
||||
const Redirecthome = () => {
|
||||
navigate('/');
|
||||
if (typeof window !== 'undefined') {
|
||||
navigate('/');
|
||||
}
|
||||
return null;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user