Skip to content

Commit

Permalink
api key hide
Browse files Browse the repository at this point in the history
  • Loading branch information
Ex-Machin committed Jan 5, 2025
1 parent 890da79 commit dc97e9a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
.env.development.local
.env.test.local
.env.production.local
.env

npm-debug.log*
yarn-debug.log*
Expand Down
4 changes: 2 additions & 2 deletions src/api/api.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import axios, { AxiosResponse } from "axios";
import axios from "axios";
import { ProfileType } from "../types/types";

const instance = axios.create({
withCredentials: true,
baseURL: "https://social-network.samuraijs.com/api/1.0/",
headers: {
"API-KEY": "5d8a7eff-a740-483e-8ca3-78892103be5c",
"API-KEY": process.env.REACT_APP_API_KEY as string,
},
});

Expand Down

0 comments on commit dc97e9a

Please sign in to comment.