Can we use publicPath a relative path and not baseUrl? #1636
Unanswered
iamprobirdey
asked this question in
Q&A
Replies: 3 comments 3 replies
-
@ScriptedAlchemy Any comment on this would be appreciated. :) |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes, you can change the publicPath to "/", you can also try `publicPath: "auto"'. In addition to that , you have three approaches to change the path dynamically at runtime.
similar issue: #577 (reply in thread) |
Beta Was this translation helpful? Give feedback.
2 replies
-
@probir1991 Would you mind to share a minimum reproducible? (either github repo or stackbliz ) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am using module federation with vue 3.
Child:
If I add
publicPath: http:localhost:8082
and run the serverI can get remote file which I exposed to my parent app.
Problem 1:
If I add
publicPath: http:localhost:8082
then on my Child server I noticed it runs onhttp//locahost:8082/http://localhost:8082/
path.Problem 2:
if I don't add the complete baseUrl on the child app
I don't receive remote files.
question
Can I use
publicPath: '/'
and aslo get the remote files.Thanks.
Beta Was this translation helpful? Give feedback.
All reactions