Skip to content

Commit

Permalink
Merge branch 'dev' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
ludchieng committed Nov 23, 2022
2 parents 93ca575 + 4f9dc49 commit decb7d9
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 @@ -4,6 +4,7 @@ node_modules


# local env files
.env
.env.local
.env.*.local

Expand Down
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default Vue.extend({
})
}
// Ping server to wake it up
fetch('https://idfm-prim.herokuapp.com/')
fetch(process.env.VUE_APP_API_URL)
},
watch: {
'$route.params.tab': {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const fetchTimetables = async (
return new Promise((resolve) => {
for (const mref of mrefs) {
// TODO Cancel fetch on stop change
fetch(`https://idfm-prim.herokuapp.com/stop-monitoring?MonitoringRef=STIF:StopPoint:Q:${mref}:`, {
fetch(`${process.env.VUE_APP_API_URL}/stop-monitoring?MonitoringRef=STIF:StopPoint:Q:${mref}:`, {
...(abortSignal && { signal: abortSignal }),
})
.then(res => {
Expand Down

0 comments on commit decb7d9

Please sign in to comment.