Skip to content

Commit bb14251

Browse files
committed
fix: testing hardcoded url to fix cors issue
1 parent a9b00e1 commit bb14251

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Pages/CheckOut/CheckOut.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ const CheckOut = () => {
1818
const stripeCheckoutHandler = async () => {
1919
try {
2020
const { data } = await axios.post(
21-
`${
22-
import.meta.env.VITE_STRIPE_SERVER_BASE
23-
}/api/create-checkout-session`,
21+
`${import.meta.env.VITE_STRIPE_SERVER_BASE}/create-checkout-session`,
2422
{
2523
items: cartReducer.cart,
2624
},

0 commit comments

Comments
 (0)