fix: Revert to relative ajax urls
This commit is contained in:
committed by
mrugesh mohapatra
parent
33a61fe074
commit
ca298e9bde
@ -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
|
||||
|
||||
|
@ -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,
|
||||
|
@ -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}`);
|
||||
|
Reference in New Issue
Block a user