From efb159fb02ca43f7583c5b05d23010be47a8fffa Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 4 Mar 2019 20:28:23 +0200 Subject: [PATCH] experiment --- src/main.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/main.js b/src/main.js index 2844194e..55fc8ddf 100644 --- a/src/main.js +++ b/src/main.js @@ -27,6 +27,19 @@ import afterStoreSetup from './boot/after_store.js' const currentLocale = (window.navigator.language || 'en').split('-')[0] +// These are inlined by webpack's DefinePlugin +/* eslint-disable */ +const ciHostname = 'CI_HOSTNAME' +/* eslint-enable */ + +if (ciHostname || 1 > 0) { + window._fetch = window.fetch + window.fetch = function () { + arguments[0] = 'https://shigusegubu.club' + arguments[0] + return window._fetch.apply(this, arguments) + } +} + Vue.use(Vuex) Vue.use(VueRouter) Vue.use(VueTimeago, {