File tree 3 files changed +10
-6
lines changed
3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -9,11 +9,13 @@ import { Footer } from '@repo/components';
9
9
import type { Metadata } from 'next' ;
10
10
import Script from 'next/script' ;
11
11
12
+ const isProduction = true ;
13
+
12
14
export const metadata : Metadata = {
13
15
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' ,
17
19
) ,
18
20
title : {
19
21
template : '%s - Designsystemet' ,
@@ -47,7 +49,9 @@ const menu = [
47
49
} ,
48
50
{
49
51
name : 'Temabygger' ,
50
- href : 'https://next.theme.designsystemet.no' ,
52
+ href : isProduction
53
+ ? 'https://theme.designsystemet.no'
54
+ : 'https://next.theme.designsystemet.no' ,
51
55
} ,
52
56
] ;
53
57
Original file line number Diff line number Diff line change 1
1
export function isProduction ( ) {
2
- return process . env . VERCEL_GIT_COMMIT_REF === 'main' ;
2
+ return true ;
3
3
}
Original file line number Diff line number Diff line change 1
1
export function isProduction ( ) {
2
- return process . env . VERCEL_GIT_COMMIT_REF === 'main' ;
2
+ return true ;
3
3
}
You can’t perform that action at this time.
0 commit comments