qiankun front-end microservice framework - the same port on the same server


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
insert image description here

sub application

Step 1: Configure Historyinsert image description here

Step 2: Configure publicPath

insert image description here

Step 3: Unify the library name, which needs to be consistent with the name configured in the main application

insert image description here

Nginx

nginx configuration

insert image description here
insert image description here

Directory Structure

insert image description here

Guess you like

Origin blog.csdn.net/r657225738/article/details/119570973