Skip to content

Commit

Permalink
Merge pull request #45 from Bamdoliro/feat/#39
Browse files Browse the repository at this point in the history
ADD :: env
  • Loading branch information
seonghoon07 authored Feb 24, 2024
2 parents cae19da + 68bb0f4 commit 72fe8a9
Show file tree
Hide file tree
Showing 3 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
2 changes: 1 addition & 1 deletion src/pages/Layouts/Member/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const Member = () => {
useEffect(() => {
const getMemberData = async () => {
try {
const res = await axios.get("https://teampage.bamdoliro.com/position/list")
const res = await axios.get(`${process.env.REACT_APP_BASEURL}/position/list`)
setMember(res.data);
console.log(res.data)
} catch (err) {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Layouts/Wind/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const Wind = () => {
const getWindData = async () => {
try {
const res = await axios.get(
"https://teampage.bamdoliro.com/randomList"
`${process.env.REACT_APP_BASEURL}/randomList`
);
setWind(res.data);
console.log(res.data);
Expand Down

0 comments on commit 72fe8a9

Please sign in to comment.