nuxt-micro-frontend icon indicating copy to clipboard operation
nuxt-micro-frontend copied to clipboard

Running in dev mode works, but in production mode not

Open ilp opened this issue 4 years ago • 2 comments

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 avatar Dec 22 '20 15:12 ilp

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?

ilp avatar Dec 23 '20 02:12 ilp

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

cjfff avatar Feb 27 '21 10:02 cjfff