fix: remove Gatsby proxy (#37364)
Direct ajax calls to the server directly, rather than a proxy to reduce redirects while still allowing the server to be used in development.
This commit is contained in:
committed by
mrugesh
parent
e08ed1ef80
commit
4896e45eea
@@ -124,7 +124,7 @@ class DonateForm extends Component {
|
||||
}));
|
||||
|
||||
const chargeStripePath = isSignedIn
|
||||
? '/internal/donate/charge-stripe'
|
||||
? `${apiLocation}/internal/donate/charge-stripe`
|
||||
: `${apiLocation}/unauthenticated/donate/charge-stripe`;
|
||||
return postJSON$(chargeStripePath, {
|
||||
token,
|
||||
|
Reference in New Issue
Block a user