Skip to content

Commit

Permalink
Fixed invalid Open Graph metadata route paths
Browse files Browse the repository at this point in the history
  • Loading branch information
codeaid committed May 6, 2024
1 parent c2fdde6 commit bbf2ae9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Metadata, Viewport } from 'next';
import { type PropsWithChildren } from 'react';
import { Header, Layout, NavigationRail } from 'components';
import { metadataBase } from 'config/app';
import { pageElementId } from 'config/dom';
import { sourceSansPro } from 'fonts';
import styles from './layout.module.css';
Expand All @@ -11,6 +12,7 @@ export const metadata: Metadata = {
title: 'TackleBox',
description:
'Dive into the depths of fishing with this comprehensive web app, your ultimate guide to fish species and their habitats. Explore the information for your perfect catch!',
metadataBase,
};

export const viewport: Viewport = {
Expand Down
5 changes: 5 additions & 0 deletions src/config/app.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
// Detect base URL and path to use when loading assets
export const baseURL = process.env.NEXT_PUBLIC_BASE_URL || '';
export const basePath = process.env.NEXT_PUBLIC_BASE_PATH || '';
export const metadataBase =
process.env.NODE_ENV === 'development' ? undefined : new URL(baseURL + basePath);

0 comments on commit bbf2ae9

Please sign in to comment.