herbst🌵
herbst🌵
NNuxt
Created by herbst🌵 on 8/21/2024 in #❓・help
Can't get relative paths in `nuxi generate`
Updated the issue with more info as well.
13 replies
NNuxt
Created by herbst🌵 on 8/21/2024 in #❓・help
Can't get relative paths in `nuxi generate`
Sure. Just made a new StackBlitz that reproduces the issue. https://stackblitz.com/edit/nuxt-starter-qum3vc
13 replies
NNuxt
Created by herbst🌵 on 8/21/2024 in #❓・help
Can't get relative paths in `nuxi generate`
I guess it could be a Nitro issue and not Nuxt issue, I'm not yet very confident in knowing which thing does what
13 replies
NNuxt
Created by herbst🌵 on 8/21/2024 in #❓・help
Can't get relative paths in `nuxi generate`
No, the resulting files are already broken locally. This is just a static build. E.g. npx serve .output/public will already not work correctly when using baseURL: ".".
13 replies
NNuxt
Created by herbst🌵 on 8/21/2024 in #❓・help
Can't get relative paths in `nuxi generate`
I tried that and added the info to the issue. Using a dot only breaks generated subpages.
13 replies
NNuxt
Created by herbst🌵 on 8/21/2024 in #❓・help
Can't get relative paths in `nuxi generate`
13 replies
NNuxt
Created by herbst🌵 on 8/21/2024 in #❓・help
Can't get relative paths in `nuxi generate`
I found this issue: https://github.com/nuxt/nuxt/issues/13780#issuecomment-1397314850 But using baseURL: "./" does not seem to work in Nuxt 3?
13 replies
NNuxt
Created by herbst🌵 on 8/21/2024 in #❓・help
Can't get relative paths in `nuxi generate`
I tried app.baseUrl: "./", but that doesn't change the output; app.baseUrl: "custom" changes the output (but of course it's still absolute then). I also tried app.buildAssetsDir: "./__custom", but that still results in an absolute path (/__custom/__custom for some reason).
13 replies