Skip to content

Commit 34381a3

Browse files
committed
Add build debug
1 parent 4cea2f7 commit 34381a3

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

src/lib/api/index.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,12 @@ const CITIES_LOCATION = {
213213

214214
const API = {
215215
getAirData(city) {
216+
if (API_TOKEN) {
217+
console.log("API_TOKEN is set");
218+
}
219+
if (API_BASE_URL) {
220+
console.log("API_BASE_URL is set");
221+
}
216222
return fetch(`${API_BASE_URL}/data/stats/air/?city=${city}`, {
217223
headers: {
218224
Authorization: `Token ${API_TOKEN}`,
@@ -221,6 +227,12 @@ const API = {
221227
});
222228
},
223229
getWeeklyP2Data(city) {
230+
if (API_TOKEN) {
231+
console.log("API_TOKEN is set");
232+
}
233+
if (API_BASE_URL) {
234+
console.log("API_BASE_URL is set");
235+
}
224236
const fromDate = new Date(Date.now() - 7 * 24 * 3600 * 1000)
225237
.toISOString()
226238
.substring(0, 10);

0 commit comments

Comments
 (0)