Skip to content

Commit

Permalink
feat: #12 added utils and axios
Browse files Browse the repository at this point in the history
  • Loading branch information
pablitoo1 committed Mar 27, 2024
1 parent 1a6a361 commit eb6e293
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 0 deletions.
91 changes: 91 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"lint": "next lint"
},
"dependencies": {
"axios": "^1.6.8",
"next": "^14.1.3",
"react": "^18",
"react-dom": "^18",
Expand Down
Empty file added src/hooks/user.ts
Empty file.
5 changes: 5 additions & 0 deletions src/utils/appAPI.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import axios from "axios";

export const NEXT_PUBLIC_API_BASE_URL = process.env.NEXT_PUBLIC_API_BASE_URL;

export const appAPI = axios.create({baseURL: NEXT_PUBLIC_API_BASE_URL});

0 comments on commit eb6e293

Please sign in to comment.