fix(build): Fix netlify build
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"semi": false,
|
"semi": true,
|
||||||
"singleQuote": true,
|
"singleQuote": true,
|
||||||
"trailingComma": "es5"
|
"trailingComma": "es5"
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
siteMetadata: {
|
siteMetadata: {
|
||||||
title: 'Gatsby Default Starter'
|
title: 'freeCodeCamp',
|
||||||
|
siteUrl: 'https://www.freecodecamp.org'
|
||||||
},
|
},
|
||||||
proxy: {
|
proxy: {
|
||||||
prefix: '/internal',
|
prefix: '/internal',
|
||||||
@ -15,13 +16,13 @@ module.exports = {
|
|||||||
{
|
{
|
||||||
resolve: 'gatsby-plugin-manifest',
|
resolve: 'gatsby-plugin-manifest',
|
||||||
options: {
|
options: {
|
||||||
name: 'gatsby-starter-default',
|
name: 'freeCodeCamp',
|
||||||
short_name: 'starter',
|
short_name: 'fCC',
|
||||||
start_url: '/',
|
start_url: '/',
|
||||||
background_color: '#663399',
|
background_color: '#fff',
|
||||||
theme_color: '#663399',
|
theme_color: '#006400',
|
||||||
display: 'minimal-ui',
|
display: 'minimal-ui',
|
||||||
icon: 'src/images/gatsby-icon.png' // This path is relative to the root of the site.
|
icon: 'src/images/square_puck.png' // This path is relative to the root of the site.
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'gatsby-plugin-sitemap'
|
'gatsby-plugin-sitemap'
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
import { navigate } from 'gatsby';
|
import { navigate } from 'gatsby';
|
||||||
|
|
||||||
const Redirecthome = () => {
|
const Redirecthome = () => {
|
||||||
|
if (typeof window !== 'undefined') {
|
||||||
navigate('/');
|
navigate('/');
|
||||||
|
}
|
||||||
return null;
|
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 React, { Component } from 'react';
|
||||||
import { Router } from '@reach/router';
|
import { Router } from '@reach/router';
|
||||||
|
|
||||||
import Redirecthome from '../components/RedirectHome';
|
import RedirectHome from '../components/RedirectHome';
|
||||||
import ShowCertification from '../client-only-routes/ShowCertification';
|
import ShowCertification from '../client-only-routes/ShowCertification';
|
||||||
|
|
||||||
import './certification.css';
|
import './certification.css';
|
||||||
@ -12,7 +12,7 @@ class Certification extends Component {
|
|||||||
return (
|
return (
|
||||||
<Router>
|
<Router>
|
||||||
<ShowCertification path='/certification/:username/:certName' />
|
<ShowCertification path='/certification/:username/:certName' />
|
||||||
<Redirecthome default={true} />
|
<RedirectHome default={true} />
|
||||||
</Router>
|
</Router>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user