main.js is basically all browser angular javascript code wrapped into rendering layer (and server)
what you get by using curl is basically the result of running main.js
generally, if you get anything more than , it means that SSR by itself works
in your case it’s probably because the backend server you used has invalid ssl certificate, so node process can’t connecto to it
解決方案
cross-env NODE_TLS_REJECT_UNAUTHORIZED=0 node dist/storefrontapp-server/main.js
或者
process.env.NODE_TLS_REJECT_UNAUTHORIZED = ‘0’;