theplay3r
theplay3r
Explore posts from servers
NNuxt
Created by theplay3r on 8/7/2024 in #❓・help
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:
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
ssr: false,
app: {
baseURL: './'
}
})
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
devtools: { enabled: true },
ssr: false,
app: {
baseURL: './'
}
})
I have a brand new Nuxt project with nothing added to it.
3 replies