I try to prepare everything for non-rust-savvy and not-too-icp-savvy frontend devs to continue wire their react app with a canister.
I have a setup where it works on my machine So on a local network with a local canister i can run npm run dev
with ic2connect
and everything works.
However, I cannot wire the local react app (using vite ic2connect and a lot of defaults) to run against a mainnet canister.
Somehow it keeps connecting to local and I wonder what I’m doing wrong. The documentation is somewhat sparse. I set all kinds of env vars.
GitHub - deep-ink-ventures/blend-safe is my repo.
I as well have a __dirname
error on deploying the frontend to a canister, but haven’t looked into that yet and have some ideas on how to debug it already, but if someone came across that it would save me some hours