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

View File

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

View File

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