We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd8d817 commit 5e9ad18Copy full SHA for 5e9ad18
src/hooks/useTokenPrices.tsx
@@ -1,9 +1,9 @@
1
import useSWR from 'swr';
2
-
+const X_API_Key = process.env.NEXT_PUBLIC_X_API_KEY;
3
const fetcher = async (url : string) => {
4
const response = await fetch(url, {
5
headers: {
6
- 'x-api-key': 'TestAPIKeyDontUseInCode',
+ 'x-api-key': X_API_Key,
7
},
8
});
9
if (!response.ok) {
0 commit comments