Points to pay attention to when deploying on the same port on the same server based on vue3 coding
Official document: qiankun
main application
The entry
corresponds to the name in package.json,
the route setting (history) in main.js,
the activeRule
index.html
, and the matching value in main.js, referring to the matching id
sub application
Step 1: Configure History
Step 2: Configure publicPath
Step 3: Unify the library name, which needs to be consistent with the name configured in the main application
Nginx
nginx configuration