Use relative urls #27069
Unanswered
GalaadMoutoz
asked this question in
Questions
Use relative urls
#27069
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Thank you for the amazing framework. :)
I have a little problem generating/routing with ssr:true.
The client required the nuxt app to be embedded in an iframe.
So, all the urls generated by nuxt are broken.
The content has to be hosted on their server, on an url and a path that will change all the time (!), so I can't use prefixing.
It's thousands of generated pages with heavy content, so I can't use an SPA.
So is their a way I can configure nuxt or vite to either :
("img/example.png" instead of "/img/example.png")
("../../img/example.png" if we are in "/article/test" instead of "/img/example.png")
If not, do you have any other idea to deal with this conundrum ?
Thank your very much !
Cheers,
Galaad
Beta Was this translation helpful? Give feedback.
All reactions