Commit b4730e28 authored by Andrea Ida Malkah Klaura's avatar Andrea Ida Malkah Klaura
Browse files

moved config strings to dev.env.js according to webpack docs

parent d7225ad5
......@@ -3,5 +3,6 @@ const merge = require('webpack-merge')
const prodEnv = require('./prod.env')
module.exports = merge(prodEnv, {
NODE_ENV: '"development"'
NODE_ENV: '"development"',
API_STEERING: '"https://autoradio-testing.o94.at/api.php"'
})
......@@ -4,6 +4,7 @@
<div class="content-width">
<router-view/>
</div>
<div v-on:click="consoleLog" style="background: #ad7fa8; border: 2px solid #5c3566;">debug</div>
<app-footer></app-footer>
</div>
</template>
......@@ -35,6 +36,11 @@ export default {
logged_in: true
}
}
},
methods: {
consoleLog: function () {
console.log(process.env)
}
}
}
</script>
......
......@@ -92,7 +92,6 @@
</template>
<script>
import config from '../config'
import episodeSort from '../mixins/episodeSort'
function leadingZero (num) {
......@@ -147,7 +146,7 @@ export default {
this.episodesLoaded = false
this.currentShowID = this.shows[this.currentShow].id
// fetch single episodes for a given show from PV backend
this.$http.post(config.api_pv, {
this.$http.post(process.env.API_STEERING, {
action: 'query',
query: 'episodes',
show_id: this.currentShowID,
......@@ -193,7 +192,7 @@ export default {
},
created () {
// fetch sendereihen from PV backend
this.$http.post(config.api_pv, {
this.$http.post(process.env.API_STEERING, {
action: 'query',
query: 'shows',
api_key: 'D1EB23A42F'
......
export default {
api_pv: 'https://autoradio-testing.o94.at/api.php'
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment