svelte-capacitor
svelte-capacitor copied to clipboard
[Question] Using https with live reload
Hello,
I'm not directly using this template but since you guys say it's production ready, I'd like to ask for advice on how to use https with the live reload functionality.
I need https because I'm using auth0 libs, which will throw when window.crypto.subtle
is undefined (due to not being on a secure origin).
I set server.https: true
in vite.config.ts
.
Then I tried all possible flags in ionic cap run android
to no avail. If I use --livereload-url=https://192.168.1.245:3000
, the Android webview says it cannot load due to a net error. The html is empty and the network tab in Chrome devtools shows no traffic at all when reloading.
I'm out of ideas. I can ofc develop on the web and just bundle the android/ios final apps, 99% of the things should be the same, but even for small functionalities it's very time consuming to rerun cap run android
every time, when you don't have live reload...
Thanks in advance and thanks for this template which served as inspiration! 👍