Skip to content

Commit 2cba839

Browse files
committed
chore: force production hack
1 parent 5fb71bf commit 2cba839

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

apps/storefront/app/layout.tsx

+8-4
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,13 @@ import { Footer } from '@repo/components';
99
import type { Metadata } from 'next';
1010
import Script from 'next/script';
1111

12+
const isProduction = true;
13+
1214
export const metadata: Metadata = {
1315
metadataBase: new URL(
14-
process.env.VERCEL_GIT_COMMIT_REF !== 'main'
15-
? 'https://next.designsystemet.no'
16-
: 'https://designsystemet.no',
16+
isProduction
17+
? 'https://designsystemet.no'
18+
: 'https://next.designsystemet.no',
1719
),
1820
title: {
1921
template: '%s - Designsystemet',
@@ -47,7 +49,9 @@ const menu = [
4749
},
4850
{
4951
name: 'Temabygger',
50-
href: 'https://next.theme.designsystemet.no',
52+
href: isProduction
53+
? 'https://theme.designsystemet.no'
54+
: 'https://next.theme.designsystemet.no',
5155
},
5256
];
5357

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export function isProduction() {
2-
return process.env.VERCEL_GIT_COMMIT_REF === 'main';
2+
return true;
33
}

apps/theme/utils/is-production.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export function isProduction() {
2-
return process.env.VERCEL_GIT_COMMIT_REF === 'main';
2+
return true;
33
}

0 commit comments

Comments
 (0)