app.baseURL being ignored
Hey,
I'm trying to generate a static page using Nuxt 3.12.4, but by default, it uses links with
href=/_nuxt/..
and this doesn't work for me.
What I'm trying to get are relative paths - eg. href=./_nuxt/..
and upon some researching, I found out about the app.baseURL
config property.
Setting this property for example to /test/
works fine, my links look like href=/test/_nuxt/..
.
However, setting this property to ./
seems to get ignored and I end up with the default links href=/_nuxt/..
.
Why is that?
Is there any other way for me to achieve my goal?
This is my config:
I have a brand new Nuxt project with nothing added to it.1 Reply
Ok, actually after investigating this further, it seems that using the
./
value only works with the rel="preload"
link, there it it's correctly prefixed with ./
, but all other links seem to ignore this and are just defaulting to /nuxt/
.
(This doesn't solve anything for me though, as I want to have ssr disabled)
Is that a bug?
https://github.com/nuxt/nuxt/issues/28474