Skip to content

Commit

Permalink
Website: fix SSG
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli committed Oct 11, 2023
1 parent d79b702 commit 437cee9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/theme.config.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export default {
},
useNextSeoProps() {
const { asPath } = useRouter();
console.log(asPath);
if (asPath.length > 1) {
// On SSG the path is `/index` instead of `/` for some reason
if (asPath === '/' || asPath === '/index') {
return {
titleTemplate: '%s – Bref',
openGraph: {
Expand Down

0 comments on commit 437cee9

Please sign in to comment.