Probably a dumb question, but why does the asset canister listen on port 8080 in the DFX tutorial? I don’t see any reference to 8080 in the assets canister source or the dfx-generated project source.
It’s the default for webpack dev server
2 Likes
Thanks! Another dumb question - does the webpack dev server forward the HTTP request to the asset canister then? How does it know how to do that?
I configured webpack.config.js under the devServer section to proxy calls to /api
for the replica, and we use environment variables for calling out to canisters, based on the network
2 Likes
Oh man, that’s some intense plumbing.
1 Like