Skip to content

Commit 9701ecd

Browse files
committed
fix: change DEPLOYURL constant and disable metadataBase
1 parent f00a48b commit 9701ecd

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

src/app/[locale]/layout.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const metadata: Metadata = {
2929
default: 'IslamicCoin',
3030
},
3131
referrer: 'origin-when-cross-origin',
32-
metadataBase: new URL(DEPLOY_URL),
32+
// metadataBase: new URL(DEPLOY_URL),
3333
other: {
3434
google: 'notranslate',
3535
},

src/app/sitemap.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { MetadataRoute } from 'next';
2-
import { SITE_URL } from '@/constants';
3-
import { SUPPORTED_LOCALES } from '@/constants';
2+
import { SITE_URL, SUPPORTED_LOCALES } from '@/constants';
43
import { academyModules } from '@/lib/academy-modules';
54

65
export interface SitemapUrl {

src/constants.ts

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
export const VERCEL_ENV = process.env['VERCEL_ENV'];
22
export const SITE_URL = 'https://islamiccoin.net';
3-
export const DEPLOY_URL =
4-
VERCEL_ENV === 'production'
5-
? SITE_URL
6-
: process.env['VERCEL_URL']
7-
? `https://${process.env['VERCEL_URL']}`
8-
: process.env['NEXT_PUBLIC_VERCEL_URL']
9-
? `https://${process.env['NEXT_PUBLIC_VERCEL_URL']}`
10-
: 'http://localhost:3000';
3+
export const DEPLOY_URL = process.env['VERCEL_URL']
4+
? `https://${process.env['VERCEL_URL']}`
5+
: process.env['NEXT_PUBLIC_VERCEL_URL']
6+
? `https://${process.env['NEXT_PUBLIC_VERCEL_URL']}`
7+
: 'http://localhost:3000';
118
export const REVALIDATE_TIME = 300;
129
export const FALCONER_ENDPOINT = 'https://falconer.haqq.sh' as const;
1310
export const SUPPORTED_LOCALES: string[] = ['en'];

0 commit comments

Comments
 (0)