FEMessage / nuxt-micro-frontend

🎳Nuxt module for micro-frontend solution
https://deep-han.github.io/qiankun
MIT License
130 stars 27 forks source link

Running in dev mode works, but in production mode not #35

Open ilp opened 3 years ago

ilp commented 3 years ago

I have two projects in different repositories: main-app and sub-app (both nuxt app).

I already configurated based on your examples, but when building and start the applications the resources of the sub-app are not found from the main-app, look below the image. In dev mode works perfectly.

Is there some configuration about the path?

Screen Shot 2020-12-22 at 12 10 51
ilp commented 3 years ago

For some reason running the application built (/dist) doesn't work. The main app tries to get nuxt files of sub-app from itself. Running in dev this doesn't happen. I tested the example nuxt-main-self-load-demo in production mode this issue also occurs, I thought that was some problem with my configuration, but is not. Do you have any idea how to solve that problem?

cjfff commented 3 years ago

i think you quesition is how to deploy nuxt project in prod ?