Skip to content

Commit dcb5ea0

Browse files
committed
fix: use prod api
1 parent afb5ac3 commit dcb5ea0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/hooks/use-api.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as statsfm from '@statsfm/statsfm.js';
22
import Cookies from 'js-cookie';
33

4-
let apiUrl = 'https://beta-api.stats.fm/api';
4+
let apiUrl = 'https://api.stats.fm/api';
55

66
if (process.env.NODE_ENV === 'development')
77
apiUrl = 'https://beta-api.stats.fm/api';

src/pages/user/[id]/[[...deeplink]].tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export const getServerSideProps: GetServerSideProps<Props> = async (ctx) => {
110110
const oembedUrl = encodeURIComponent(`https://stats.fm${ctx.resolvedUrl}`);
111111
ctx.res.setHeader(
112112
'Link',
113-
`<https://beta-api.stats.fm/api/v1/oembed?url=${oembedUrl}&format=json>; rel="alternate"; type="application/json+oembed"; title=""`
113+
`<https://api.stats.fm/api/v1/oembed?url=${oembedUrl}&format=json>; rel="alternate"; type="application/json+oembed"; title=""`
114114
);
115115

116116
return {

src/utils/ssrUtils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const getApiInstance = (accessToken?: string) => {
1111
accessToken,
1212
},
1313
http: {
14-
apiUrl: 'https://beta-api.stats.fm/api',
14+
apiUrl: 'https://api.stats.fm/api',
1515
},
1616
});
1717
};

0 commit comments

Comments
 (0)