File tree 5 files changed +11
-12
lines changed
5 files changed +11
-12
lines changed Original file line number Diff line number Diff line change 1
1
import Head from 'next/head' ;
2
2
import React from 'react' ;
3
3
4
- import { URL } from '../utils/cangeURL' ;
5
-
6
4
type Props = {
7
5
title : string ;
8
6
postId : number ;
@@ -18,7 +16,10 @@ const CustomHead: React.FC<Props> = (props) => {
18
16
19
17
< meta property = "og:title" content = "OmnisCode" />
20
18
< meta property = "og:type" content = "website" />
21
- < meta property = "og:url" content = { URL + '/post/' + props . postId } />
19
+ < meta
20
+ property = "og:url"
21
+ content = { process . env . baseUrl + '/post/' + props . postId }
22
+ />
22
23
< meta property = "og:image" content = { props . image } />
23
24
< meta property = "og:site_name" content = "OmnisCode" />
24
25
< meta property = "og:description" content = { props . title } />
Original file line number Diff line number Diff line change 1
1
import Head from 'next/head' ;
2
2
import React from 'react' ;
3
3
4
- import { URL } from '../utils/cangeURL' ;
5
-
6
4
type Props = {
7
5
pageName : string ;
8
6
} ;
@@ -15,8 +13,10 @@ const DefaultHead: React.FC<Props> = (props) => {
15
13
< link rel = "icon" href = "/favicon.ico" />
16
14
< meta property = "og:title" content = "OmnisCode" />
17
15
< meta property = "og:type" content = "website" />
18
- { /* URL = https://omniscode.one */ }
19
- < meta property = "og:url" content = { URL + '/' + props . pageName } />
16
+ < meta
17
+ property = "og:url"
18
+ content = { process . env . baseUrl + '/' + props . pageName }
19
+ />
20
20
< meta
21
21
property = "og:image"
22
22
content = "https://omniscode-og-image.vercel.app/package%20main%0A%0Aimport%20%22fmt%22%0A%0Afunc%20main()%20%7B%0A%20%20%20%20fmt.Println(%22hello%20world%22)%0A%7D.jpeg?theme=gradient-dark& lang = go "
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ const dev = process.env.NODE_ENV !== "production";
3
3
module . exports = {
4
4
env : {
5
5
baseUrl : dev
6
- ? 'http://localhost:3000/api/v1 '
7
- : 'https://omniscode.one/api/v1 ' ,
6
+ ? 'http://localhost:3000'
7
+ : 'https://omniscode.one' ,
8
8
} ,
9
9
} ;
Original file line number Diff line number Diff line change 1
1
import axios from 'axios' ;
2
2
3
3
const myAxios = axios . create ( {
4
- baseURL : process . env . baseUrl ?? 'http://localhost:3000/api/v1' ,
4
+ baseURL : ( process . env . baseUrl ?? 'http://localhost:3000' ) + ' /api/v1',
5
5
} ) ;
6
6
7
7
export default myAxios ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments