ecommerce-react icon indicating copy to clipboard operation
ecommerce-react copied to clipboard

checkout works on local but dose not work on server

Open jekabso21 opened this issue 2 years ago • 5 comments

When I run the website on my local machine checkout works. But when I run on the server it shows ':( Something went wrong.' does anyone know how to fix the issue?

jekabso21 avatar Dec 01 '23 11:12 jekabso21

same here @jgudo

wadguk avatar Jan 03 '24 15:01 wadguk

@jekabso21 did you managed to solve that problem?

wadguk avatar Jan 03 '24 16:01 wadguk

ok, I managed to solve that problem. just replace this

import PhoneInput from 'react-phone-input-2';

to this

// eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore import RPI from "react-phone-input-2"; const PhoneInput = RPI.default ? RPI.default : RPI;

wadguk avatar Jan 03 '24 17:01 wadguk

@jekabso21 did you managed to solve that problem?

@jgudo No I needed to find the way how to fix that in 24h so at the end I hosted server where I placed on server and set self certified https. Because it dose not work if it is not on https and the website needs premissions to use camera. And the only way to get premmisions to use camera is with https.

jekabso21 avatar Jan 10 '24 12:01 jekabso21

Wadguk's solution above works well for this issue

Wabi888 avatar Jul 30 '24 23:07 Wabi888