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;
|
||||
};
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 21 KiB |
BIN
client/src/images/square_puck.png
Normal file
BIN
client/src/images/square_puck.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
@@ -1,7 +1,7 @@
|
||||
import React, { Component } from 'react';
|
||||
import { Router } from '@reach/router';
|
||||
|
||||
import Redirecthome from '../components/RedirectHome';
|
||||
import RedirectHome from '../components/RedirectHome';
|
||||
import ShowCertification from '../client-only-routes/ShowCertification';
|
||||
|
||||
import './certification.css';
|
||||
@@ -12,7 +12,7 @@ class Certification extends Component {
|
||||
return (
|
||||
<Router>
|
||||
<ShowCertification path='/certification/:username/:certName' />
|
||||
<Redirecthome default={true} />
|
||||
<RedirectHome default={true} />
|
||||
</Router>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user