Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⚡️ perf: add sitemap and robot.txt to improve seo #1337

Merged
merged 8 commits into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
🐛 fix: fix canonical url
  • Loading branch information
arvinxx committed Feb 20, 2024
commit 08810a64ff606b8c5b59a996323fdce66adde922
1 change: 0 additions & 1 deletion src/app/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ const { BASE_PATH } = getClientConfig();
const noManifest = !!BASE_PATH;

const metadata: Metadata = {
alternates: { canonical: OFFICIAL_URL },
appleWebApp: {
statusBarStyle: 'black-translucent',
title,
Expand Down
8 changes: 8 additions & 0 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
import { Metadata } from 'next';

import { getCanonicalUrl } from '@/const/url';

import Page from './home';
import Redirect from './home/Redirect';

Expand All @@ -9,3 +13,7 @@ const Index = () => (
);

export default Index;

export const metadata: Metadata = {
alternates: { canonical: getCanonicalUrl('/') },
};
Loading