Skip to content

Commit

Permalink
fix: fix partnerSaga and add .env.sample
Browse files Browse the repository at this point in the history
  • Loading branch information
whalekiller03 committed Jan 16, 2024
1 parent 08c38b2 commit b0df1aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NEXT_PUBLIC_API_URL=
4 changes: 2 additions & 2 deletions redux/sagas/partnersSaga.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ function* fetchPartnersResource(action) {
}, startParams);

try {
const baseUrl = process.env.NEXT_PUBLIC_API_URL || BASEURL;
const baseUrl = process.env.NEXT_PUBLIC_API_URL || BASE_URL;
const URL = `${baseUrl}/user?${queryStr}`;
const result = yield fetch(URL).then((res) => res.json());
yield put({
Expand All @@ -36,7 +36,7 @@ function* fetchPartnersResource(action) {
function* fetchPartnerById(action) {
const { id } = action.payload;
try {
const baseUrl = process.env.NEXT_PUBLIC_API_URL || BASEURL;
const baseUrl = process.env.NEXT_PUBLIC_API_URL || BASE_URL;
const URL = `${baseUrl}/user/${id}`;
const result = yield fetch(URL).then((res) => res.json());
yield put({
Expand Down

1 comment on commit b0df1aa

@vercel
Copy link

@vercel vercel bot commented on b0df1aa Jan 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

daodao-f2e – ./

daodao-f2e-daodaoedu.vercel.app
daodao-f2e-git-dev-daodaoedu.vercel.app
daodao-f2e.vercel.app

Please sign in to comment.