fix: Revert to relative ajax urls

This commit is contained in:
Bouncey
2019-02-15 20:52:11 +00:00
committed by mrugesh mohapatra
parent 33a61fe074
commit ca298e9bde
3 changed files with 4 additions and 9 deletions

View File

@ -5,7 +5,7 @@ node_js:
cache: cache:
directories: directories:
- "$HOME/.npm" - '$HOME/.npm'
env: env:
global: global:
@ -24,13 +24,10 @@ before_script:
jobs: jobs:
include: include:
- stage: Unit and Integration tests - stage: Unit and Integration tests
script: script: test
- npm run ensure-env
- npm test
- stage: Artifacts builds - stage: Artifacts builds
if: branch = master && type != pull_request if: branch = master && type != pull_request
script: bash tools/ci-scripts/trigger-build.sh script: bash tools/ci-scripts/trigger-build.sh
install: skip install: skip
before_script: skip before_script: skip

View File

@ -121,7 +121,7 @@ class DonateForm extends Component {
})); }));
const chargeStripePath = isSignedIn ? const chargeStripePath = isSignedIn ?
`${apiLocation}/internal/donate/charge-stripe` : `/internal/donate/charge-stripe` :
`${apiLocation}/unauthenticated/donate/charge-stripe`; `${apiLocation}/unauthenticated/donate/charge-stripe`;
return postJSON$(chargeStripePath, { return postJSON$(chargeStripePath, {
token, token,

View File

@ -1,8 +1,6 @@
import axios from 'axios'; import axios from 'axios';
import { apiLocation } from '../../config/env.json'; const base = `/internal`;
const base = `${apiLocation}/internal`;
function get(path) { function get(path) {
return axios.get(`${base}${path}`); return axios.get(`${base}${path}`);